Store | Contact Us | Careers
 
  • Home
  • Industries
  • Products
  • Training
  • Support
  • Services
  • Events
  • News
  • About
    • About Esri
    • Careers
    • Esri Video
    • Partners

Support

Search Support
You are here: > ArcScripts > Search Results > Script Details Login | Feedback | Help

AGSSOM



contact author | download help | report inappropriate content
Author ESRI Boston
File Name AGSSOM_2010_06_22b.zip
Language C#
Last Modified Jun 22 2010
Status of work ESRI Attribution and Licensing Agreement
Software ArcGIS Server (10.0 and prior)
File Size 46 bytes
Downloads 3843

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
ESRI
Boston and Indiana Project Office
6/2010

AGSSOM.exe is a sample command line utility for starting, stopping, and restarting ArcGIS Server services.

It was built with C#.NET.

Version 1.0, 01/15/08- initial release.
Version 1.1, 01/22/08- update provided by ESRI Indiana Project Office which:
* works with remote servers. It will default to localhost so any existing batch file syntax will still work.
* adds a listtypes command that lists all the server types and their extensions on the machine.
* expands the describe command. It now lists all properties and enabled extensions and their properties.
Version 1.2, 02/04/08- update provided by ESRI Indiana Project Office to support the *all* parameter to now work with the -r (restart) and -s (start) as well as the -x (stop) commands.
Version 2.0 03/10/09 - update includes "Instances Running" and "Instances In Use" status on the Describe command, and a new "Publish" command which will accept a path to an MXD to base a new service from which will be located at the root of the server. A "PublishAGSResource.bat" is included which could be use as the target of a Windows Send To command to send MXDs directly to AGSSOM.
Version 2.1 02/17/10 - compiled to target "x86" to allow support for 64bit OS
Version 9.3.1 04/13/2010 - QA recompile for ArcGIS 9.3.1
Version 10.0 04/14/2010 - compiled for ArcGIS 10.0 prerelease
Version 10.0 06/22/2010 - compiled for ArcGIS 10 release

The arguments to the utility are:
AGSSOM [usage]: {server} [-s|start, -x|stop, -r|restart -list|list_services -listtypes|list_server_types -describe|describe -publish|publish resources] [servicename (or *all* for stop, or MXD path for publish)] {servicetype|default:MapServer, GeocodeServer, GPServer, GlobeServer}

If omitted the {server} argument will default to localhost.
Use the short versions of the commands (ie. "-s, -x, -r, -list", etc.).

The commands provided are:
START
STOP
RESTART
LIST
LISTTYPES
DESCRIBE
PUBLISH

For all service types other than MapServer, the Service Type parameter must be included.

Example usage:
AGSSOM.exe -s USABasemapService
AGSSOM.exe -s USGeocoder1 GeocodeServer
AGSSOM.exe -x USABasemapService
AGSSOM.exe -r USABasemapService
AGSSOM.exe -r USGeocoder1 GeocodeServer
AGSSOM.exe -x *all*
AGSSOM.exe -describe USABasemapService
AGSSOM.exe -list
AGSSOM.exe RemoteGISServer -s USABasemapService
AGSSOM.exe -publish "e:\maps\USABasemap.mxd" MAPSERVER BasemapName //note quotes around path may be necessary
AGSSOM.exe -publish "USABasemap.mxd" MAPSERVER //takes default name for map service ("USABasemap")

Note:

By placing the EXE in a folder which is within the System Path variable of Windows, for example, c:\windows\system32, you will be able run the command from the command window directly without needing to specify the full path to the EXE.

Similiarly, you can also run the command from within a batch file by inserting the comman...

  the complete description can be found in the readme.txt file included in the zipfile download.
Contact Us | Privacy | Legal | Site Map