Managing NerveCenter - Controlling NerveCenter from the Command Line - NerveCenter Command Line Interface - Entering a Single Command in a UNIX Shell or a DOS Prompt -
Previous: NerveCenter Command Line Interface     Next: Entering Multiple Commands in an Interactive Session

Entering a Single Command in a UNIX Shell or a DOS Prompt

 
  To issue a single command in a UNIX shell or at a DOS prompt, follow these steps:

  1. Open a UNIX shell or a DOS Command Prompt window.
  2. Type
       nccmd -s ServerName -u UserName -p Password -n Port Command

    where ServerName is the name of the NerveCenter server you want to contact, UserName and Password are a valid user name and password for that NerveCenter server, Port is the command-line-interface port for the server (32506 by default), and Command is the command you want to run. Then press Return.

    If you are already connected to a server via a previous connect or select server command, the command you issue is directed to that server, and the-
    -s switch is unnecessary.

The syntax for the commands is specified in Command line interface reference.

The command is executed and informs you if an error was encountered.

In the following example, a user named John lists all the polls that are suppressed. For this example, the server is named sales, John's user ID is johndoe, and his password is anytown.


   nccmd -s sales -u johndoe -p anytown -n 32506 list poll -S yes


Previous: NerveCenter Command Line Interface Next: Entering Multiple Commands in an Interactive Session
Please send comments or corrections to Information Development
This file was last updated on 14 November © 2002