CLI Reference Guide

1632 SNMP Commands
The view name accepts any printable characters except a double quote or
question mark. Enclose the string in double quotes to include spaces within
the name. The surrounding quotes are not used as part of the name. The CLI
does not filter illegal combinations of characters on entry and may accept
entries up to the first illegal character or reject the entry entirely.
Examples
The following example creates a view that includes all objects in the MIB-II
system group except for sysServices (System 7) and all objects for interface 1
in the MIB-II interface group.
console(config)# snmp-server view user-view system included
console(config)# snmp-server view user-view system.7 excluded
console(config)# snmp-server view user-view ifEntry.*.1 included
console(config)#snmp-server view "A beautiful view!" 1.1.2.1 included
snmp-server v3-host
Use the snmp-server v3-host command in Global Configuration mode to
specify the recipient of Simple Network Management Protocol Version 3
(SNMPv3) notifications. To remove the specified host, use the no form of
this command.
Syntax
snmp-server v3-host {
ip-address
|
hostname
}
username
{traps | informs}
[noauth | auth | priv] [timeout
seconds
] [retries
retries
] [udpport
port
]
[filter
filtername
]
no snmp-server v3-host
ip-address
{traps | informs}
ip-address
— Specifies the IPv4 address of the host (targeted recipient).
hostname
— Specifies the name of the host. (Range: 1-158 characters.)
The command allows spaces in the host name when specified in double
quotes. For example, #snmp-server v3-host “host name”.
username
— Specifies user name used to generate the notification.
(Range: 1-30 characters.)
traps
— Indicates that SNMP traps are sent to this host.
informs
— Indicates that SNMPv2 informs are sent to this host.
noauth
— Specifies sending of a packet without authentication.
2CSNXXX_SWUM200.book Page 1632 Tuesday, December 10, 2013 1:22 PM