Professional Documents
Culture Documents
Command-Line Interface
This chapter provides information for understanding and using the Network Analysis Module (NAM)
software by using the command-line interface (CLI). This chapter includes the following sections:
• Logging in to the NAM, page 1-1
• Getting Help, page 1-2
• Command Mode, page 1-3
• Subcommand Mode, page 1-3
• Creation and Edit Modes, page 1-4
For an overview of the Catalyst 6500 series IOS configuration, refer to the Catalyst 6500 Series Switch
Cisco IOS Software Configuration Guide. For Catalyst 6500 series switch IOS commands, refer to the
Catalyst 6500 Series Switch Cisco IOS Command Reference.
For an overview of the Catalyst 6500 series operating system software configuration, refer to the
Catalyst 6500 Series Switch Configuration Guide. For Catalyst 6500 series switch operating system
software commands, refer to the Catalyst 6500 Series Switch Command Reference.
For information about supported platforms, IOS releases, and CatOS releases, refer to this URL:
http://www.cisco.com/en/US/products/sw/cscowork/ps5401/index.html
Note The root account uses the # prompt; the guest account uses the > prompt.
Step 1 Log into the Catalyst 6500 series switch using the Telnet connection or the console port connection.
Step 2 Establish a console session with the NAM at the CLI prompt, using the session mod command:
Console> (enable) session 2
Trying NAM-2...
Connected to NAM-2.
Escape character is '^]'.
Step 3 Log into the NAM by typing root to log in as the root user or guest to log in as a guest user at the login
prompt.
login: root
Step 4 At the password prompt, enter the password for the account. The default password for the root account
is “root,” and the default password for the guest account is “guest.”
Password:
root@localhost.cisco.com#
Getting Help
When you have successfully logged in, type a ? and press Return or enter the help command for a list
of commands used to configure the NAM. For example:
root@localhost.cisco.com# ?
? - display help
alarm - configure NAM MIB/voice alarms
autostart - enable/disable autostart collections
clear - clear access log / system alerts
config - configure NAM
coredump - retrieve the coredump file
custom-filter - configure capture/decode custom filters
diffserv - differentiated service related configurations
exit - log out of system
exsession - enable/disable outside logins
help - display help
ip - set ip parameters
logout - log out of system
mfgtest - Manufacturing only tests
monitor - enable collections
no - delete various configurations
nslookup - query nameservers
password - set new password
patch - download and install new patch
ping - ping a network device
preferences - configure web interface preferences for all users
Command Mode
The Network Analysis Module provides a configurable command mode accessible when you log into the
NAM as “root.” Certain commands enter into a subcommand mode. In all command and subcommand
modes, the asterisk (*) specifies that the subcommand is mandatory.
Subcommand Mode
Some commands enter into a subcommand mode, which provides additional configuration commands
that you can use in that mode. For example:
root@localhost.cisco.com# monitor host
Entering into subcommand mode for this command.
Type 'exit' to come out of this mode.
Type 'cancel' to discard changes and to come out of this mode.
root@localhost.cisco.com(sub-monitor-host)#
When you have entered the subcommand mode, type a ? or enter the help command for a list of
commands available in that subcommand mode. For example:
root@localhost.cisco.com(sub-monitor-host)# ?
? - display help
cancel - discard changes and exit from sub-command mode
control-index - specify the collection control index
data-source - specify the collection data source (*)
exit - exit from the sub-command mode
help - display help
owner - specify the collection owner
Note For the commands that enter into a subcommand mode, the actual configuration is completed only when
you enter the Exit command.