Table Of Contents
22terminal
To set the number of lines on a screen for this session, use the terminal command.
terminal length
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set the number of lines on a session's screen:
root@localhost# terminal length 24Terminal length for this session set to 24.Related Commands
time
To enter the time configuration subcommand mode, and then configure NAM system time settings, use the time command.
time
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Types
Switch command
Command Modes
Privileged
Usage Guidelines
When you enter the time submode, the following commands are available:
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•sync ntp | switch—(Optional) Synchronizes the NAM system time with the Network Time Protocol (NTP) or with the switch.
•zone—region-name [zone-name]—Synchronizes the time zone with the NAM for use with NTP.
•sync router—Synchronizes the NAM time with the router.
This command is specific to the NAM software release running on network modules in the Cisco 2600, 3600, 3700 routers.
Examples
This example shows how to configure system time settings on the NAM to synchronizes the time with the switch:
root@hostname.cisco.com# timeEntering 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@hostname.cisco.com(sub-time)# ?? - display helpcancel - discard changes and exit from subcommand modeexit - exit from subcommand modehelp - display helpsync - synchronize NAM system time with switch or ntproot@hostname.cisco.com(sub-time)# sync switchroot@hostname.cisco.com(sub-time)# exitSuccessfully updated NAM system time settings.NOTE:You have configured the NAM synchronize time to the switch.For this change to take effect, set the time from the switch orreset the NAM.root@hostname.cisco.com# show timeNAM synchronize time to: SwitchTimezone configured on the switch:PSTSwitch time offset to UTC: 0Current system time: Thu Mar 20 09:23:14 GMT 2003This example shows how to configure system time settings on the NAM to synchronize the time with the NTP:
root@hostname.cisco.com# timeEntering 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@hostname.cisco.com(sub-time)# sync ntp ntp01.cisco.com ntp02.cisco.comroot@hostname.cisco.com(sub-time)# exitSuccessfully updated NAM system time settings.root@hostname.cisco.com# show timeNAM synchronize time to: NTPNTP server1: ntp01.cisco.comNTP server2: ntp02.cisco.comCurrent system time: Thu Mar 20 09:23:36 GMT 2003root@hostname.cisco.com#Related Commands
traceroute
To trace the route to a network device, use the traceroute command.
traceroute [-Inv] [-f first_ttl] [-m max_ttl] [-p port] [-s src_addr] [-t tos] [-w waittime] destination host name | IP address [packetlen]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to trace a route to a network device named aragon:
root@localhost.cisco.com# traceroute -I -n -v -f first_ttl -p 5 -w 10 aragon 123.34.54.12root@localhost.cisco.com#trap-dest
To enter the trap destination submode and create or edit trap destinations on the NAM, use the trap-dest command.
trap-dest
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
When you enter the trap destination submode, the following commands are available:
•address—Sets the trap destination IP address.
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•community community_string—Sets the community string.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•index index—(Optional) Sets the trap index. Range is from 1 to 65535. Default is random.
•owner string—(Optional) Specifies the collection owner. Default is monitor.
Note The collections that are configured in the CLI will not be visible in the GUI. For collections that use a GUI screen, you can make them visible in the GUI by using the owner string "LocalMgr."
•port—(Optional) Sets the UDP port. Default is 162.
Examples
This example shows how to configure traps on the NAM:
root@hostname.cisco.com# trap-destEntering 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@hostname.cisco.com(sub-trap-dest)# ?? - display helpaddress - set IP address (*)cancel - discard changes and exit from subcommand modecommunity - set community string (*)exit - exit from subcommand modehelp - display helpindex - set trap indexowner - set owner stringport - set UDP port(*) - denotes a mandatory field for this configuration.root@hostname.cisco.com(sub-trap-dest)# address 10.0.0.1root@hostname.cisco.com(sub-trap-dest)# community publicroot@hostname.cisco.com(sub-trap-dest)# exitTrap created successfully.root@hostname.cisco.com# show trap-destTrap index:48981Community: publicAddress: 10.0.0.1UDP port: 162 (00a2)Owner: monitorroot@hostname.cisco.com#Related Commands
alarm
alarm event
alarm mib
alarm voice
show alarm
show autostart
show trap-destupgrade
To download and install a new maintenance image on the NAM, use the upgrade command.
upgrade ftp://user:passwd@host/full-path/filename
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode.
Examples
This example shows how to download and install a new maintenance image:
Root@localhost# upgrade ftp://alamo:ljljsdf@milton/dir65/abracadabr/dir65/upgrade_nowRoot@localhost#Related Commands
voice
To enable or disable voice monitoring from the NAM command mode, use the voice command.
voice monitoring enable | disable
Syntax Description
Defaults
Voice monitoring is enabled.
Command Modes
NAM command mode and Syslog subcommand mode
Examples
This example shows how to configure the NAM to capture voice alarms:
root@hostname.cisco.com# voice monitoring enableroot@hostname.cisco.com# show optionsART mib: EnabledVoice monitoring:Enabledroot@hostname.cisco.com#Related Commands
alarm mib
alarm voice
monitor
show alarm
show autostart
show syslog-settings
syslog
syslog remote-serverweb-user
To enter the web user configuration submode, and then configure local web users on the NAM, use the web-user command. To remove a web user from your configuration, use the no form of this command.
web-user
no web-user user-name
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
When you enter the web user submode, the following commands are available:
•account-mgmt enable | disable—(Optional) Enables or disables the account management privilege.
•alarm-config enable | disable—(Optional) Enables or disables the alarm configuration privilege.
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•capture enable | disable—(Optional) Enables or disables the packet capture and decode privilege.
•collection-config enable | disable—(Optional) Enables or disables the collection configuration privilege.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•system-config enable | disable—(Optional) Enables or disables the system configuration privilege.
•user-name user-name—Sets the user name.
Examples
This example shows how to configure a NAM web user:
root@hostname.cisco.com# web-userEntering 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@hostname.cisco.com(sub-web-user)# ?? - display helpaccount-mgmt - enable/disable account management privilegealarm-config - enable/disable alarm configuration privilegecancel - discard changes and exit from subcommand modecapture - enable/disable packet capture/decode privilegecollection-config - enable/disable collection configuration privilegeexit - exit from subcommand modehelp - display helpsystem-config - enable/disable system configuration privilegeuser-name - set username (*)(*) - denotes a mandatory field for this configuration.root@hostname.cisco.com(sub-web-user)# user-name fooroot@hostname.cisco.com(sub-web-user)# account-mgmt enableroot@hostname.cisco.com(sub-web-user)# exitNo password specified.Do you want specify password now (y/n) [n] yEnter password:Confirm password:User 'foo' created successfully.root@hostname.cisco.com# show web-users fooUser name: fooAccount management:EnabledSystem config: DisabledCapture: DisabledAlarm config: DisabledCollection config: DisabledCollection view: Enabledroot@hostname.cisco.com#Related Commands