Cisco Cisco IOS Software Release 12.2(25)S

Page de 60
      CNS Agents
cns id
39
Cisco IOS Release 12.2(25)S
cns id 
To set the unique event ID, or config ID Cisco IOS device identifier used by CNS services, use the cns 
id
 command in global configuration mode. To set the identifier to the host name of the Cisco IOS device, 
use the no form of this command.
If ID Choice Is IP Address or MAC Address
cns id type number {dns-reverse | ipaddress | mac-address} [event]
no cns id type number {dns-reverse | ipaddress | mac-address} [event]
If ID Choice Is Anything Else
cns id {hardware-serial | hostname | string string} [event]
no cns id {hardware-serial | hostname | string string} [event]
Syntax Description
Defaults
The system defaults to the host name of the Cisco IOS device as the unique ID.
Command Modes
Global configuration
type number
Type of interface (for example, ethernetgroup-asyncloopback, or 
virtual-template) and the interface number. Indicates from which interface 
the IP or MAC address should be retrieved in order to define the unique ID.
dns-reverse 
Uses DNS reverse lookup to retrieve the host name of the Cisco IOS device 
and assign it as the unique ID.
ipaddress 
Uses the IP address specified in the type number arguments as the unique ID.
mac-address 
Uses the MAC address specified in the type number arguments as the 
unique ID.
event 
(Optional) Sets this ID to be the event ID value, which is used to identify the 
Cisco IOS device for CNS event services. If both optional keywords are 
omitted, the event ID is set to the host name of the Cisco IOS device.
hardware-serial 
Uses the hardware serial number as the unique ID.
hostname 
Uses the host name as the unique ID. This is the system default.
string string
Uses an arbitrary text string—typically the host name—as the unique ID.