How To Use the Network Control Language (NCL) Commands To Manage a Router
Accessing the Management Information Base
How To Use the Get Command
Use the NCL Get command to display the value of MIB variables on the router. You can obtain the pathname by using the List command (page
Syntax
get MIB identifier
get MIB identifier [*]
where:
MIB identifier is a pathname identifying a specific MIB variable. The identifier must be a pathname from one the router’s
*is a ‘‘wild card’’ specifying all in the branch beyond the object immediately preceding the *.
ExamplesTo get the value for all MIB variables in a branch, use Get with the
get buf.* | Displays all MIB variable values for |
| buffers |
To get the value for all MIB variables in an intermediate branch, use Get with an
get | buf.msg.* | Either command displays the values for |
get | 11.1.0.* | the message variables under buffers |
To get the value for a single MIB variable, use Get with the complete pathname to the variable. For example:
get | buf.1.msg.size | Either command displays the value for the |
get | 11.1.0.5 | message size buffer |
For more information on the Get command, refer to the Operator’s Reference.