How to automate serving an image service definition

Typically, you configure your ArcGIS Image Server and serve the image service using the Image Server Manager; however, to automate this process you can use the ServerManager ISCommand. In either case there is a typical workflow to follow, such as:

1. Set up the server by defining the server's configuration and start the server.
Use the ServerManager ISCommand, followed by the StartServer action
2. Set up one or more service providers by defining the service provider's configuration and starting it.
Use the ServerManager ISCommand, followed by the AddServiceProvider and StartServiceProvider actions
3. Serve the image service by adding a compiled image service definition to the service provider.
Use the ServerManager ISCommand, followed by the AddService and StartService actions

When using the ISCommands you can run each individually (one after the other) or list them together in a batch file (such as PublishService.bat). The following shows how the ServerManager ISCommand can be used to serve an image service definition:

ISCommand ServerManager --Action=StartServer --ServerHost=MachineABC

ISCommand ServerManager --Action=AddServiceProvider --ServerHost=MachineABC --Endpoint=3982 --ISP=Test_SP --ISPEndpoint=3983

ISCommand ServerManager --Action=StartServiceProvider --ServerHost=MachineABC --Endpoint=3982 --ISP=Test_SP --ISPEndpoint=3983

ISCommand ServerManager --Action=AddService --ServerHost=MachineABC --Endpoint=3982 --ServiceName=Amberg_Auto --ServicePath=D:\Tech_Workshop_2008\Services\Amberg_Auto.ISCDef --ISPList=Test_SP

ISCommand ServerManager --Action=StartService --ServerHost=MachineABC --Endpoint=3982 --ServiceName=Amberg_Auto --ISPList=Test_SP

In this example the server's machine name is MachineABC. The server was configured and started on MachineABC. The service provider was also configured and started on MachineABC and named Test_SP. Finally, the compiled image service definition (Amberg_Auto.ISCDef) was published as an image service named Amberg_Auto.