NET/MASTER Management Services (MS) Operator's Guide
10 Automating Operations Tasks
With NCL Procedures
106379 Tandem Computers Incorporated 10–1
What Is in This Section The NonStop NET/MASTER Network Control Language (NCL) is a structured,
high-level language that is ideally suited to writing procedures that perform system
and network operations tasks.
The discussion in this section assumes that you have minimal programming
experience. Its focus is on creating simple NCL procedures to execute a series of
NonStop NET/MASTER Management Services (MS) commands. The discussion is
limited to a small subset of NCL core statements, verbs, and system variables.
For a complete description of NCL, refer to the NonStop NET/MASTER NCL
Programmer’s Guide and the NonStop NET/MASTER NCL Reference Manual.
Creating NCL
Procedures
An NCL procedure is a sequence of NCL statements.
Use the Edit Services facility to create, list, edit, perform test compilations on, and
delete NCL procedure source files. The Edit Services facility is described in Section 9,
“Using Edit Services.”
Executing NonStop
NET/MASTER MS
Commands From an
NCL Procedure
You can execute most NonStop NET/MASTER MS commands from an NCL
procedure. This includes timer commands, informational commands, and commands
routed to remote systems.
Command authority level checking applies to all commands executed from NCL
procedures invoked under your user ID. In other words, if your NonStop
NET/MASTER MS user ID definition record allows you to perform a task, any NCL
procedure that executes under your control can also perform the task. An NCL
procedure that executes under your control cannot perform tasks that your user ID
definition record does not allow you to perform.
You can issue a NonStop NET/MASTER MS command from within an NCL
procedure in two ways:
With a CMD statement, so results of the command are sent to the environment
from which the executing procedure is invoked
With the INTCMD verb, so results of the command are sent to the executing
procedure
Executing a NonStop
NET/MASTER MS
Command With an NCL
CMD Statement
When you issue a NonStop NET/MASTER MS command from within an NCL
procedure by using a CMD core statement, the results of the command are passed to
the owner of the current processing environment from which the NCL procedure is
invoked. Results of the command are not sent to the executing procedure.
The current processing environment is the environment (either primary or
background) from which a command or NCL procedure is initiated, such as an OCS
window.