VSERVER

Used in

Application Server Administration  

Parent elements

VSERVERS 

Syntax

<VSERVERAttribute Description Table

     When adding a Virtual Server:
     (r)access="PUBLIC | PRIVATE"
     (r)name="string"
     (r)servicetype="ImageServer | FeatureServer | MetadataServer | QueryServer | ExtractServer | GeocodeServer"
     (r)version="[blank]"
     description="string"
     frequency="1 | 2 | 3 | 4 | 6 | 8 | 12 | 24" [2]
     referencehour="0 .. 23" [0]
     referenceminute="0 | 15 | 30 | 45" [0]
     type="add"

     When deleting a Virtual Server:
     (r)name="string"
     type="remove"
>

     (m)<PSERVER... />

</VSERVER >
(r): Attribute or child element is required.
(m):  Child element can be used multiple times.

Description

Allows adding and removing an ArcIMS Virtual Server using the command line.

Notes


Attribute Descriptions for VSERVER


When adding a Virtual Server:
AttributeUsage
accessSpecifies whether a Virtual Server is public or private. In general, you should use "PUBLIC" for Image, Feature, and Metadata Servers. You should use "PRIVATE" for Query, Geocode, and Extract Servers.
descriptionProvides a description of the Virtual Server.
frequencyNumber of times per each 24 hour period to recycle all Spatial Servers associated with this Virtual Server. Used only with Virtual Servers that are capable of recycling.
nameSpecifies the Virtual Server name.
referencehourStarting hour to begin the first recycling period each day using a 24 hour clock. "0" is midnight. Used only with Virtual Servers that are capable of recycling.
referenceminuteStarting minute to begin the first recycling period each day using a 24 hour clock. Used only with Virtual Servers that are capable of recycling.
servicetypeThe Virtual Server type: ImageServer, FeatureServer, MetadataServer, ExtractServer, GeocodeServer, QueryServer.
typeUse "add" to specify adding a Virtual Server.
versionFor all server types, use "".

When deleting a Virtual Server:
AttributeUsage
nameSpecifies the Virtual Server name.
typeUse "remove" to specify removing a Virtual Server.
Back to top 

Examples for VSERVER

Example 1: When adding a new Virtual Server. This example adds two Image Spatial Servers to the new Virtual Server.
<?xml version="1.0"?>
<ADMINCMD version="1.0">
<!--Add two new Spatial Servers-->
<PSERVERS>
      <PSERVER type="add" machine="mymachine"/>
      <PSERVER type="add" machine="mymachine"/>
</PSERVERS>
<!--Create a new Image Server-->
<VSERVERS>
      <VSERVER type="add" name="ImageServer2" access="Public" description="ImageServer Example" servicetype="ImageServer" version="" >
            <!--Associate the new Spatial Servers to the new Image Server-->
            <PSERVER id="mymachine_4" threads="2"/>
            <PSERVER id="mymachine_5" threads="2"/>
      </VSERVER>
</VSERVERS>

<!--Add and start an Image Service-->


<SERVICES>

<SERVICE type="add" name="world_image" axl="c:\arcims\axl\myworldservice.axl" vsname="ImageServer2" imgloc="c:\arcims\output" imgurl="http://mymachine.domain.com/output" imagememory="4" cleanup="20" imgtype="GIF" />
<SERVICE type="start" name="world_image" />
</SERVICES>


</ADMINCMD>

Example 2: When removing a Virtual Server.
<?xml version="1.0"?>
<ADMINCMD version="1.0">
  <VSERVERS>
    <VSERVER type="remove" name="ImageServer2"/>
  </VSERVERS>

  <PSERVERS>
    <PSERVER type="remove" machine="mymachine.domain.com" id="mymachine.domain.com_4"/>
    <PSERVER type="remove" machine="mymachine.domain.com" id="mymachine.domain.com_5"/>
  </PSERVERS>
</ADMINCMD>

Back to top