Get: Displaying the Value of a MIB Variable
Use NCL’s Get command to display the value of a MIB variable on the
router. You need to specify the path to the variable. You can obtain the
pathname using the List command (see page 16-35). To output the
display to a printer or file instead of the screen, place the get command
within the Print command (described on page 16-19).
Syntax
get identifier
identifier is the pathname identifying a specific variable.
You must provide the pathname from the router’s highest-level
objects, using object identification codes and/or object names.
You can use the asterisk (
*
) as a wild card at the end of your
identifier. It specifies all variables in the branch descending from
the object specified in front of it.
Examples
get telnet.tx_bytes Displays the value of the Telnet
variable “tx_bytes”.
get svc.
*
Displays values of all system service
variables.
get svc[3].* Displays values of all system-service
variables for slot 3 in the router 650.
get config.version[0] Displays version number of the
operating code.
Using the Network Control Language
Accessing the Management Information Base
16-34