ContentsIndexPreviousNext

7.2.6 acuserve -query

"acuserve -query" is for Windows NT and Windows 2000 servers only. It allows you to query whether or not the specified Windows service is installed.

Optional arguments to "-query" include:

Option
Description
server
Specifies the name of the server machine. If no server is specified, the server is assumed to be the local host.
-n
Identifies a particular instance of the acuserve program by port number. The "-n" must be followed by a space and then an integer, e.g., "6524". If no port number is specified, then the default port (which has the service name "Acuserve") is removed.

When you enter this option, you receive a message stating whether or not the service is installed, and if it is, whether or not the service is currently running. The "-query" command also displays the start-up parameters that have been stored for the service, if any. For example:

C:> acuserve -query
Service AcuServer (AcuServer 5.0 on the default port (6523)) exists
Start Up: Automatic
Program: C:\AcucblGT\bin\acuserve.exe
Startup arguments: '-c c:\etc\server1.cfg -le c:\tmp\server1.log'
Status: running
C:>

Note that the startup arguments listed are the arguments used to install the service, and not the arguments given to the currently running server.