The command syntax has four parts: a command keyword, a component keyword(s), one or more parameters, and, optionally, one or more qualifiers. The command keywords are: SET Change parameters in the volatile database. DEFINE Change parameters in the permanent database. CLEAR Remove components or parameters from the PURGE volatile or permanent databases. SHOW Display information about components in the LIST volatile or permanent databases. CONNECT Connect local terminal to remote node console interface. DISCONNECT Disconnect logical links with processes. COPY Copy one node database to another. LOOP Test lines or connections to nodes. LOAD Downline load nodes. TRIGGER Initiate bootstrap sequence of a node. TELL Establish temporary executor node. ZERO Zero counters for the specified entity. All underscores found in parameters must be replaced with spaces when parameters are used in NCP commands.
1 – Syntax
The command syntax has four parts: a command keyword, a component keyword(s), one or more parameters, and, optionally, one or more qualifiers. For example, Command Keyword Component Parameter Qualifier SHOW ACTIVE CIRCUITS CHARACTERISTICS TO file-id KNOWN CIRCUITS COUNTERS CIRCUIT line-id STATUS SUMMARY For each command, you must supply a keyword, a component, and one or more parameters from the parameter list. In general, the order in which you specify parameters makes no difference. Braces around keywords and parameters indicate that you must choose one of the options. Lowercase letters indicate user-supplied component and parameter values.
2 – Issuing commands
You enter NCP commands as keywords and parameters separated by spaces or tabs. Use the standard continuation line convention--a hyphen as the last character in the line--to continue a long command to the next line. If the first character of a line is an exclamation point (!), the line is ignored by NCP as a comment line. Hyphens within and at the end of a comment line are ignored. Lines beginning with an exclamation point, however, are not ignored if they follow a command line ending with a hyphen. When entering an NCP command, you can abbreviate any command verb, component keyword, or parameter name to its fewest unique letters.