Cisco Cisco IOS Software Release 12.2(25)S
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
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.
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, ethernet, group-async, loopback, 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.
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.
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.
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.
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.