mac

64
Example: Create a group CompanyGroup, with the safety level of recognizing
andencrypting, the read viewname isreadview, and the writing is disabled.
Switch (config)#snmp-server group CompanyGroup AuthPriv read readview
Delete group
Switch (config)#no snmp-server group CompanyGroup AuthPriv
1.4.17 snmp-server host
Command: snmp-server host { <host-ipv4-address> | <host-ipv6-address> } {v1 |
v2c | {v3 {NoauthNopriv | AuthNopriv | AuthPriv}}} <user-string>
no snmp-server host { <host-ipv4-address> | <host-ipv6-address> } {v1 |
v2c | {v3 {NoauthNopriv | AuthNopriv | AuthPriv}}} <user-string>
Function: As for the v1/v2c versions this command configures the IPv4 or IPv6 address
and Trap community character string of the network manage station receiving the SNMP
Trap message. And for v3 version, this command is used for receiving the network
manage station IPv4 or IPv6 address and the Trap user name and safety level; the no
form of this command cancels this IPv4 or IPv6 address.
Command Mode: Global Mode.
Parameter: <host-ipv4-addr> is IP address of NMS management station which receives
Trap message.
<host-ipv6-addr> is IPv6 address of NMS management station which
receives Trap message.
v1 | v2c | v3 is the version number when sending the trap.
NoauthNopriv | AuthNopriv | AuthPriv is the safety level v3 trap is applied,
which may be non encrypted and non authentication, non encrypted and
authentication, encrypted and authentication.
<user-string> is the community character string applied when sending the
Trap message at v1/v2, and will be the user name at v3.
Usage Guide: The Community character string configured in this command is the default
community string of the RMON event group. If the RMON event group has no community
character string configured, the community character string configured in this command
will be applied when sending the Trap of RMON, and if the community character string is
configured, its configuration will be applied when sending the RMON trap. This command
allows to configure IPv4 or IPv6 addresses of SNMP management station that receive
Trap message at the same time, but IPv4 and IPv6 addresses of v1 and v2c version are
less than 8 in all.
Example:
Configure an IP address to receive Trap