Table Of Contents
Network Analysis Module Commands
Network Analysis Module Commands
This chapter contains an alphabetical listing of the commands unique to the Catalyst 6500 series and Cisco 7600 series Network Analysis Module (NAM) and the NM-NAM network module.
For information about Cisco IOS commands that are used to configure the switch, refer to the current Cisco IOS documentation including:
•Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide
•Catalyst 6500 Series Switch Cisco IOS Software Command Reference
For information about Catalyst operating system commands that are used to configure the switch, refer to the current Catalyst operating system documentation including:
•Catalyst 6500 Series Switch Configuration Guide
•Catalyst 6500 Series Switch Catalyst Command Reference
For information about the NM-NAM network module, refer to this URL:
http://lbj.cisco.com/targets/ucdit/cc/td/doc/product/software/ios123/123newft/123limit/123x/123xd/nm_nam.htm
alarm
To configure NAM alarms, use the alarm command. To remove event and MIB alarms, use the no form of this command.
alarm event | mib | voice
no alarm event | mib
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to configure NAM alarms:
root@localhost# alarm eventroot@localhost<sub-alarm-event>#Related Commands
alarm event
alarm mib
alarm voice
show alarm
show alarm event
show alarm mib
show alarm voicealarm event
To enter the alarm event configuration subcommand mode, and then configure alarm NAM events, use the alarm event command. To remove and alarm event, use the no form of this command.
alarm event
no alarm event 1-65535
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
When you enter the alarm event submode, the following commands are available:
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•community community_string—(Optional) Sets the community string.
•description description-string—Sets the alarm description.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•index index—(Optional) Sets the alarm index. Range is from 1 to 65535.
•owner 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."
•type [both | log | none | trap]—(Optional) Sets the event to both log and trap, log, none, or trap.
Examples
This example shows how to configure an alarm event:
root@hostname.cisco.com# alarm eventEntering 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@hsotname.cisco.com(sub-alarm-event)# ?? - display helpcancel - discard changes and exit from subcommand modecommunity - set community stringdescription - set descriptionexit - exit from subcommand modehelp - display helpindex - set indexowner - set owner stringtype - set typeroot@hostname.cisco.com(sub-alarm-event)# community publicroot@hostname.cisco.com(sub-alarm-event)# description test-eventroot@hostname.cisco.com(sub-alarm-event)# index 100root@hostname.cisco.com(sub-alarm-event)# owner monitorroot@hostname.cisco.com(sub-alarm-event)# type bothroot@hostname.cisco.com(sub-alarm-event)# exitSuccessfully created the event.root@hostname.cisco.com# show alarm eventIndex: 100Description:test-eventType: Log and trapCommunity: publicOwner: monitorroot@hostname.cisco.com#Related Commands
alarm
alarm mib
no
show alarm
show alarm event
show alarm mib
show autostart
alarm mib
To enter the alarm MIB configuration subcommand mode, and then configure NAM MIB alarms, use the alarm mib command.
alarm mib
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 alarm MIB submode, the following commands are available:
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•exit—Saves changes and exit from the subcommand mode; see the "exit" command section.
•falling-event 1-65535—Sets the falling event index. Range is from 1 to 65535.
•falling-threshold number— (Optional) Sets the number of packets for the falling event threshold. Default is 0 packets.
•index 1-65535—(Optional) Sets the alarm index. Range is from 1 to 65535.
•interval seconds—(Optional) Sets the polling interval in seconds. Default is 60 seconds.
•owner string—(Optional) Sets the owner string. 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."
•rising-event 1-65535—Sets the rising event index. Range is from 1 to 65535.
•rising-threshold number—(Optional) Sets the number of packets for the rising event threshold. Default is 0 packets.
•sample-type absolute | delta—Sets the sample type to absolute or delta.
•startup-alarm both | falling | rising—Sets the startup alarm to both rising and falling, falling, or rising.
•variable OID—Sets the object identifier (OID) variable.
Examples
This example shows how to set a MIB alarm:
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@hostname.cisco.com(sub-alarm-mib)# ?? - display helpcancel - discard changes and exit from subcommand modeexit - exit from subcommand modefalling-event - set falling event index (*)falling-threshold - set number of pkts for falling thresholdhelp - display helpindex - set alarm indexinterval - set polling intervalowner - set owner stringrising-event - set rising event index (*)rising-threshold - set number of pkts for rising thresholdsample-type - set sample type (*)startup-alarm - set startup alarm (*)variable - set variable (*)(*) - denotes a mandatory field for this configuration.root@hostname.cisco.com(sub-alarm-mib)# falling-event 100root@hostname.cisco.com(sub-alarm-mib)# rising-event 100root@hostname.cisco.com(sub-alarm-mib)# sample-type deltaroot@hostname.cisco.com(sub-alarm-mib)# startup-alarm bothroot@hostname.cisco.com(sub-alarm-mib)# variable nlHostInPkts.29673.0.1.4.10.77.201.68root@hostname.cisco.com(sub-alarm-mib)# exitSuccessfully created the NAM MIB alarm.root@hostname.cisco.com# show alarm mibIndex: 19967Polling interval: 60 secsVariable: nlHostInPkts.29673.0.1.4.10.77.201.68Sample type: DeltaStartup: Rising & fallingRising threshold: 0 PktsFalling threshold: 0 PktsRising event index: 100Falling event index: 100Owner: monitorroot@hostname.cisco.com#Related Commands
alarm
alarm event
no
show alarm
show alarm event
show alarm mib
show autostart
alarm voice
To enter the alarm voice configuration subcommand mode, and then configure NAM voice alarms, use the alarm voice command. To remove alarms use the no form of this command.
alarm voice
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 alarm voice 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.
•jitter-alarm enable | disable—(Optional) Enables or disables the jitter alarm.
•jitter-threshold int—(Optional) Sets the jitter threshold in milliseconds. Default for SCCP is 30 milliseconds, H.323 is 150 milliseconds, and MGCP is 30 milliseconds.
•pkt-loss-alarm enable | disable—(Optional) Enables or disables the packet loss alarm.
•pkt-loss-threshold int—(Optional) Sets the packet loss threshold in percentage(%). Default is 5 percent for all three protocols, SCCP, H.323, and MGCP.
•protocol H.323 | SCCP | MGCP—Sets the voice protocol to H323, SCCP, or MGCP.
The MGCP protocol option is specific to the Network Analysis Module (NAM) software release running on network modules in the Cisco 2600, 3600, 3700 routers.
Examples
This example shows how to set a voice alarm:
root@localhost# alarm voiceEntering 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-alarm-voice)# ?? - display helpcancel - discard changes and exit from subcommand modeexit - exit from subcommand modehelp - display helpjitter-alarm - enable/disable jitter alarmjitter-threshold - set jitter thresholdpkt-loss-alarm - enable/disable packet loss alarmpkt-loss-threshold - set packet loss thresholdprotocol - set protocol (*)(*) - denotes a mandatory field for this configuration.root@hostname.cisco.com(sub-alarm-voice)# protocol SCCProot@hostname.cisco.com(sub-alarm-voice)# jitter-alarm enableroot@hostname.cisco.com(sub-alarm-voice)# jitter-threshold 50root@hostname.cisco.com(sub-alarm-voice)# exitSuccessfully updated the SCCP configuration.root@hostname.cisco.com# show alarm voiceSCCP:Jitter alarm: DisabledPacket lost alarm: DisabledJitter threshold: 30 msecsPacket lost threshold:5%H.323:Jitter alarm: DisabledPacket lost alarm: DisabledJitter threshold: 150 msecsPacket lost threshold:5%MGCP:Jitter alarm: EnabledPacket lost alarm: EnabledJitter threshold: 31 msecsPacket lost threshold:6%Related Commands
alarm
show alarm
show alarm voice
show autostartautostart
To enable or disable autostart collections, use the autostart command.
autostart collection {enable | disable}
Syntax Description
collection
Specifies a collection. Valid collections are etherstats, addressmap, priostats, vlanstats, and art.
enable
Enables autostart.
disable
Disables autostart.
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to enable autostart collections on the NAM:
root@hostname.cisco.com# autostart ?addressmap - enable/disable autostart address mapart - enable/disable autostart artetherstats - enable/disable autostart ether statspriostats - enable/disable autostart prio statsvlanstats - enable/disable autostart vlan statsroot@hostname.cisco.com# autostart etherstats enableroot@hostname.cisco.com# show autostartetherstats enableaddressmap disablepriostats disablevlanstats disableart disableroot@hostname.cisco.com#Related Commands
cancel
To discard changes and exit a command or subcommand mode, use the cancel command.
cancel
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Subcommand mode
Examples
This example shows how to leave a subcommand mode and return to the main menu:
root@namlab-kom7.cisco.com(sub-alarm-mib)# cancelroot@namlab-kom7.cisco.com#Related Commands
clear
To clear the access log or system alerts, use the clear command.
clear [access-log | system-alerts]
Syntax Description
access-log
(Optional) Clears the web access log.
system-alerts
(Optional) Clears the system log of messages logged by various NAM processes.
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to clear the access log:
root@localhost# clear access-logRelated Commands
config
To configure the NAM, use the config command.
config [clear [all | ip]] [network URL] [upload URL | URL [remote-filename]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to clear the configuration:
root@localhost# config clearThis operation will reset the NAM configuration with the exceptionof NAM IP parameters.This operation will also reboot the NAM to allow the changes totake effect.Do you wish to continue? (y/n) [n]:ySuccessfully updated the SCCP configuration.Successfully updated the H.323 configuration.NAM syslog settings updated successfully.NAM web interface preferences updated successfully.Successfully modified the configuration.NAM will be rebooted now, for the changes to take effect ...This example shows how to clear the IP configuration:
root@localhost.cisco.com# config clear ipThis operation will reset NAM IP parameters.This operation will also reboot the NAM to allow the changes totake effect.Do you wish to continue? (y/n) [n]:yResetting IP parametersHTTP port is already set to port 80.Successfully modified the configuration.NAM will be rebooted now, for the changes to take effect...This example shows how to upload a configuration to the NAM:
root@localhost.cisco.com# config upload ftp://user@hostBuilding configuration, please wait... Done.Uploading the configuration to 'localhost-c6svc-nam-3.1-0.32.confg'on 'ftp://user@host', This may take few minutes ...Password:Successfully uploaded the NAM configuration.This example shows how to upload a configuration to the NAM from the network:
root@localhost.cisco.com# config network ftp://sekarbc@namlab-pc6:/home/sekarbc/localhost-c6svc-nam-3.1-0.32.confgDownloading ftp://sekarbc@namlab-pc6:/home/sekarbc/localhost-c6svc-nam-3.1-0.32.confg, please wait ...Password for sekarbc@namlab-pc6:ftp://sekarbc@namlab-pc6:/home/sekarbc/localhost-c6svc-nam-3.1-0.32.confg (1K)/tmp/lrcfile.txt.1397 [########################] 1K | 35.46K/s1402 bytes transferred in 0.04 sec (35.34k/sec)Download completed.Configuring the NAM. This may take few minutes, please wait ...NAM configuration completed.To view the results, use the command 'show log config'.coredump
To retrieve the core dump file, use the coredump command.
coredump ftp://user:passwd@host/full-path/
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to retrieve a core dump:
root@localhost# coredump ftp://user:passwd@host/full-path/custom-filter
To configure custom filter settings, use the custom-filter command.
custom-filter {capture | decode}
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to configure custom filter settings:
root@localhost# custom filter captureEntering into sub-command 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@namlab-kom7.cisco.com(sub)#Related Commands
custom-filter capture
custom-filter decode
show custom-filter capture
show custom-filter decodecustom-filter capture
To enter the custom filter capture subcommand mode, and then configure custom filter capture settings, use the custom-filter capture command. To remove custom filter capture, use the no form of this command.
custom-filter capture
no capture-filter filtername
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
When you enter the custom filter capture submode, the following commands are available:
•base OID—(Optional) Sets the base object identifier (OID) variable.
•cancel—Discards changes and exist from the subcommand mode; see the "cancel" command section.
•data hex-string—(Optional) Sets the data.
•data-mask hex-string—(Optional) Sets the data mask.
•data-not-mask hex-string—(Optional) Sets the data-not mask.
•description string—(Optional) Sets the filter description.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•filter-name string—Sets the filter name.
•offset 0-65535—(Optional) Sets the offset. Range is 0 to 65535.
•protocol OID— Sets the protocol object identifier (OID) variable.
•status 0-65535 (Optional)—Sets the status. Range is 0 to 65535.
•status-mask 0-65535—(Optional) Sets the status mask. Range is 0 to 65535.
•status-not-mask 0-65535—(Optional) Sets the status not mask. Range is 0 to 65535.
Examples
This example shows how to configure custom filter settings:
root@localhost# custom-filter captureEntering into sub-command 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@namlab-kom7.cisco.com(sub-custom-filter-capture)#Related Commands
custom-filter
custom-filter decode
show custom-filter capture
show custom-filter decodecustom-filter decode
To enter the custom filter decode subcommand mode, and then configure custom filter decode settings use the custom-filter decode command. To remove custom filter decode, use the no form of this command.
custom-filter decode
no decode-filter filtername
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
When you enter the custom-filter decode submode, the following commands are available:
•address-type ip | mac—(Optional) Sets the address type to IP or MAC.
•base OID—(Optional) Sets the base object identifier (OID) variable.
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•data hex-string—(Optional) Sets the data.
•description string—(Optional) Sets the filter description.
•direction both | single—(Optional) Applies the filter to both or a single direction.
•dst-address address—(Optional) Sets the traffic destination address.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•filter-expression expression-string—(Optional) Sets the filter expression.
•filter-name string—Sets the filter name.
•offset 0-1518—(Optional) Sets the offset. Range is 0 to 1518.
•protocol string— Sets the protocol.
•src-address address (Optional)—Sets the data stream source address.
Examples
This example shows how to custom filter decode settings:
root@localhost<sub># custom-filter decodeEntering into sub-command 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@namlab-kom7.cisco.com(sub-custom-filter-decode)# filter-name 12345Related Commands
custom-filter
custom-filter decode
show custom-filter capture
show custom-filter decodediffserv
To configure differentiated services, use the diffserv command.
diffserv {aggregate | profile}
Syntax Description
aggregate
Configures differentiated services aggregation.
profile
Configures differentiated services profile.
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to configure differentiated services:
root@localhost# diffserv aggregateroot@localhost<sub-diffserv-aggregate>#Related Commands
diffserv aggregate
To enter the differentiated services aggregate configuration subcommand mode, and then configure differentiated services aggregation, use the diffserv aggregate command. To remove differentiated services aggregation, use the no form of this command.
diffserv aggregate
no diffserv aggregate control-index
Syntax Description
Defaults
The control index is random.
Command Modes
Command mode
Usage Guidelines
When you enter the differentiated services aggregation submode, the following commands are available:
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•control-index control-index—(Optional) Specifies the collection control index. Range is from 1 to 65535. Default is random.
•description description—Specifies the aggregate description.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•owner 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."
Examples
This example shows how to configure differentiated services aggregation:
root@localhost# diffserv aggregateEntering into sub-command mode for this command.Type 'cancel' to discard changes and to come out of this mode.root@localhost(sub-diffserv-aggregate)# descr test1root@localhost(sub-diffserv-aggregate)# exitSuccessfully created a diffserv aggregate.root@localhost# show diffserv aggregateControl index: 25013Description: test1Owner: monitorStatus: 1root@localhost# no diffserv aggregate 25013Successfully removed the diffserv aggregate.Related Commands
diffserv profile
To enter the differentiated services profile configuration subcommand mode, and then configure differentiated services profile, use the diffserv profile command. To remove differentiated services aggregation, use the no form of this command.
diffserv profile
no diffserv profile profile-index
Syntax Description
profile-index
Specifies a differentiated services aggregate control index. Range is from 1 to 65535.
Note Use the diffserv aggregate command to first create the differentiated services control index, and then use the show diffserv aggregate command to obtain a differentiated services aggregate control index.
Defaults
The profile index is random.
Command Modes
Command mode
Usage Guidelines
When you enter the differentiated services profile submode, the following commands are available:
•cancel—Discards changes and exits from the subcommand mode; see the "cancel" command section.
•descripton DSCP-value | description—(Optional) Specifies the aggregate description.
•exit—Saves changes and exits from the subcommand mode; see the "exit" command section.
•profile-index profile-index—Specifies the collection profile index. Range is from 1 to 65535. Default is random.
Examples
This example shows how to configure a differentiated services profile:
root@localhost# show diffserv aggregateControl index: 25013Description: test1Owner: monitorStatus: 1root@localhost.cisco.com# diffserv profileEntering into sub-command 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-diffserv-profile)# profile-index 25013root@localhost.cisco.com(sub-diffserv-profile)# descr 0 dscpAroot@localhost.cisco.com(sub-diffserv-profile)# descr 1 dscpBroot@localhost.cisco.com(sub-diffserv-profile)# exitSuccessfully updated the differentiated service profile.root@localhost.cisco.com# show diffserv profile 25013Aggregate Profile Index:25013DSCP Value Description0 dscpA1 dscpBroot@localhost.cisco.com# no diffserv profile 25013Successfully removed the diffserv profile.Related Commands
exit
To log out of the system or to leave a subcommand mode, use the exit command.
exit
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
To leave a subcommand mode, use the exit command. The exit command saves any changes before leaving the submode.
Examples
This example shows how to log out of the NAM:
root@localhost# exitexsession
To enable or disable outside logins, use the exsession command.
exsession {on | off} | [ssh]
Syntax Description
on
Enables outside logins.
off
Disables outside logins.
ssh
(Optional) Sets the outside logins to SSH.
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
A strong crypto patch is required if you use the ssh option.
Examples
This example shows how to allow outside logins to the NAM:
root@localhost# exsession onhelp
To display help, use the help command or ?. You must press the Enter key after entering the ?.
help | ?
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Command mode or subcommand mode
Examples
This example shows how to display help:
root@localhost# help? - display helpalarm - configure NAM MIB/voice alarmsautostart - enable/disable autostart collectionsclear - clear access log / system alertsconfig - configure NAMcoredump - retrieve the coredump filecustom-filter - configure capture/decode custom filtersdiffserv - differentiated service related configurationsexit - log out of systemexsession - enable/disable outside loginshelp - display helpip - set ip parameterslogout - log out of systemmfgtest - Manufacturing only testsmonitor - enable collectionsno - delete various configurationsnslookup - query nameserverspassword - set new passwordpatch - download and install new patchping - ping a network devicepreferences - configure web interface preferences for all usersreboot - reboot the systemrmon - configure RMON collectionsrmwebusers - remove all web users from local web user databaseshow - show system parametersshutdown - shut down the systemsnmp - set snmp parameterssyslog - configure NAM syslogtime - configure NAM timezone/time sync settingstraceroute - traceroute to a network devicetrap-dest - create/edit NAM trap destinationupgrade - download and install new maintenance imagevoice - enable/disable voice collectionsweb-user - create/edit local web userip
To set IP parameters, use the ip command.
ip [address | broadcast | domain | gateway | host | hosts | http | nameserver]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set IP parameters:
root@localhost# ip address 30.24.10.10 2355.255.255.0Related Commands
ip address
ip broadcast
ip gateway
ip host
ip hosts
ip http
show ipip address
To set the system IP address, use the ip address command.
ip address ip-address subnet-mask
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
After setting the IP address, the gateway address may be set to 0.0.0.0. When this situation occurs, use the ip gateway command to set the gateway address.
Examples
This example shows how to set the system IP address:
root@localhost# ip address 172.20.104.74 255.255.255.192IP address and netmask configured successfully.NOTE: Default gateway address has been reset to 0.0.0.0Please use 'ip gateway' command to configure it.root@localhost# ip gateway 172.20.104.66root@localhost# show ipIP address: 172.20.104.74Subnet mask: 255.255.255.192IP Broadcast: 172.20.255.255DNS Name: namlab-kom8.cisco.comDefault Gateway: 172.20.104.66Nameserver(s): 171.69.2.133HTTP server: EnabledHTTP secure server: DisabledHTTP port: 80HTTP secure port: 443TACACS+ configured: NoTelnet: EnabledSSH: Disabledroot@localhost#Related Commands
ip broadcast
ip gateway
ip host
ip hosts
ip http
show ipip broadcast
To set the system broadcast address, use the ip broadcast command.
ip broadcast broadcast-address
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set the system broadcast address:
root@localhost# ip broadcast 172.20.104.127root@localhost#Related Commands
ip address
ip gateway
ip host
ip hosts
ip http
ip interface
show ipip gateway
To set the system default gateway address, use the ip gateway command.
ip gateway default-gateway
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set the IP gateway address:
root@localhost# ip gateway 123.34.56.0Related Commands
ip address
ip broadcast
ip host
ip hosts
ip http
ip interface
show ipip host
To set the system host name, use the ip host command.
ip host name
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set the IP host name:
root@localhost# ip host orionRelated Commands
ip address
ip gateway
ip hosts
ip http
ip interface
show ipip hosts
To add, delete, or replace hosts' entries, use the ip hosts command.
ip hosts [add | delete]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to add IP hosts':
root@namlab-kom8.cisco.com# ip hosts add 172.20.98.129 namlab-gw Lab-Gatewayroot@namlab-kom8.cisco.com# show hosts# $Id: hosts,v 1.5 2003/08/07 00:50:03 pwildi Exp $#127.0.0.1 localhost localhost.localdomain172.20.104.74 namlab-kom8.cisco.com namlab-kom8172.20.98.129 namlab-gw Lab-Gatewayroot@namlab-kom8.cisco.com#root@namlab-kom8.cisco.com# ip hosts delete 172.20.98.129root@namlab-kom8.cisco.com# show hosts# $Id: hosts,v 1.5 2003/08/07 00:50:03 pwildi Exp $#127.0.0.1 localhost localhost.localdomain172.20.104.74 namlab-kom8.cisco.com namlab-kom8root@namlab-kom8.cisco.com#Related Commands
ip address
ip gateway
ip host
ip http
ip interface
show ipip hosts add
To add or replace hosts' entries, use the ip hosts add command.
ip hosts add ip-address host-name [alias1] [alias2]
ip hosts add ftp://user:passwd@host/full-path/filename
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
Use the ip hosts add ftp://user:passwd@host/full-path/filename command to import host entries to the NAM. A maximum of 1000 entries can exist on the NAM.
Examples
This example shows how to add a specific IP host:
root@localhost# ip hosts add 30.50.68.10 orionRelated Commands
ip address
ip gateway
ip host
ip hosts delete
ip http
ip interface
show ipip hosts delete
To delete hosts' entries, use the ip hosts delete command.
ip hosts delete ip-address
ip hosts delete ftp://user:passwd@host/full-path/filename
Syntax Description
ip-address
Sets the hosts' IP address.
ftp://user:passwd@host/full-path/filename
Sets the path to the host parameters file location.
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
Use the ip hosts delete ftp://user:passwd@host/full-path/filename command to remove host entries from the NAM.
Examples
This example shows how to delete a specific host:
root@localhost# ip hosts delete 172.20.98.129Related Commands
ip address
ip gateway
ip host
ip hosts add
ip http
ip interface
show ipip http
To set the system HTTP parameters, use the ip http command.
ip http [port | secure | server | tacacs+]
Syntax Description
port
(Optional) Sets the HTTP port.
secure
(Optional) Sets the IP HTTP secure server.
server
(Optional) Enables or disables the HTTP server.
tacacs+
(Optional) Enables or disables TACACS+.
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to specify a TACACS+ server for the NAM:
root@localhost# ip http tacacs+ enable geronimoRelated Commands
ip http port
ip http secure
ip http server
ip http tacacs+
show ipip http port
To set the HTTP port, use the ip http port command.
ip http port 1-65535
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to specify an HTTP port for the NAM:
root@localhost# ip http port 233Related Commands
ip http
ip http secure
ip http server
ip http tacacs+
show ipip http secure
To set up a secure server, use the ip http secure command.
ip http secure [generate [certificate-request | self-signed-certificate]] [install certificate] [port 1-65535] [server enable | disable]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set up a secure server:
root@localhost# ip http secure generate certificate-requestroot@localhost# ip http secure port 30root@localhost# ip http secure server enableRelated Commands
ip http
ip http port
ip http server
ip http tacacs+
show ipip http server
To enable an HTTP server, use the ip http server command.
ip http server {enable | disable}
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how enable an HTTP server:
root@localhost# ip http server enableRelated Commands
ip http
ip http port
ip http secure
ip http tacacs+
show ipip http tacacs+
To enable a TACACS+ server, use the ip http tacacs+ command.
ip http tacacs+ [disable] | [enable primary-srv [backup-srv] [en-secret-key encrypted-secret-key]]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
The en-secret-key keyword is used only during the importing of NAM configurations. This key cannot be used unless you can specify a DES encrypted string as the argument to this keyword. For example:
root@localhost# ip http tacacs+ enable 10.0.0.1 10.0.0.2 en-secret-key "dEAF="Examples
These examples show how to enable and disable TACACS+.
To enable TACACS+:
root@hostname.cisco.com# ip http tacacs+ enable 10.0.0.1 10.0.0.2Secret key:Repeat secret key:Successfully enabled Tacacs+root@hostname.cisco.com# show ipIP address: 172.20.98.177Subnet mask: 255.255.255.192IP Broadcast: 172.20.255.255DNS Name: hostname.cisco.comDefault Gateway: 172.20.98.129Nameserver(s): 171.69.2.133HTTP server: EnabledHTTP secure server: DisabledHTTP port: 80HTTP secure port: 443TACACS+ configured: YesTACACS+ primary server: 10.0.0.1TACACS+ backup server : 10.0.0.2Telnet: EnabledSSH: Disabledroot@hostname.cisco.com#To disable TACACS+:
root@hostname.cisco.com# ip http tacacs+ disableTACACS+ disabled successfully.root@hostname.cisco.com# show ipIP address: 172.20.98.177Subnet mask: 255.255.255.192IP Broadcast: 172.20.255.255DNS Name: hostname.cisco.comDefault Gateway: 172.20.98.129Nameserver(s): 171.69.2.133HTTP server: EnabledHTTP secure server: DisabledHTTP port: 80HTTP secure port: 443TACACS+ configured: NoTelnet: EnabledSSH: Disabledroot@hostname.cisco.com#Related Commands
ip http
ip http port
ip http secure
ip http server
show ipip interface
To select the external port or the internal ports for the NAM, use the ip interface command.
ip interface [external | internal]
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Usage Guidelines
This command is specific to the NAM software release running on network modules in the Cisco 2600, 3600, and 3700 routers.
Examples
This example shows how to specify an interface port for the NAM:
root@localhost# ip interface externalRelated Commands
ip nameserver
To set or disable system name server entries, use the ip nameserver command.
ip nameserver ip-addr ip-addr ip-addr
or
ip nameserver disable
Syntax Description
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to set a system name server:
root@localhost# ip nameserver 171.69.2.133Related Commands
logout
To log out of the system, use the logout command.
logout
Syntax Description
This command has no arguments or keywords.
Defaults
This command has no default settings.
Command Modes
Command mode
Examples
This example shows how to log out of the NAM:
root@localhost# logout