PSERVER

Used in

Application Server Administration  

Parent elements

PSERVERS  VSERVER 

Syntax

<PSERVERAttribute Description Table

     When parent element is PSERVERS and adding a Spatial Server:
     (r)machine="string"
     type="add"

     When parent element is PSERVERS and deleting a Spatial Server:
     (r)id="string"
     (r)machine="string"
     type="remove"

     When parent element is VSERVER and associating the Spatial Server to a Virtual Server:
     (r)id="string"
     (r)threads="integer"
>

     No Child Elements
</PSERVER >
(r): Attribute or child element is required.

Description

Allows adding, removing, and setting the number of instances for an ArcIMS Spatial Server using the command line.

Notes


Attribute Descriptions for PSERVER


When parent element is PSERVERS and adding a Spatial Server:
AttributeUsage
machineMachine name where Spatial Server resides. Include the domain (mymachine.domain.com) if applicable.
typeUse "add" to specify adding a Spatial Server.

When parent element is PSERVERS and deleting a Spatial Server:
AttributeUsage
idSpatial Server name to remove such as mymachine.domain.com_5.
machineMachine name where Spatial Server resides. Include the domain (mymachine.domain.com) if applicable.
typeUse "remove" to specify removing a Spatial Server.

When parent element is VSERVER and associating the Spatial Server to a Virtual Server:
AttributeUsage
idSpatial Server name to add to a Virtual Server such as mymachine.domain.com_5.
threadsNumber of instances (or threads) to assign to the Spatial Server.
Back to top 

Examples for PSERVER

Example 1: When adding a new Spatial Server (PSERVER) or to associate one or more Spatial Servers with a Virtual Server (VSERVER)
<?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 Spatial 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