DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
584
Usage Guideline
An SNMP group defines a user group by specifying the allowed security model, the read-view, the
write-view, and the notification view. The security model defines that the group user is allowed to use
the specified version of SNMP to access the SNMP agent,
The same group name can be created with security models SNMPv1, SNMPv2c, and SNMPv3 at the
same time. For SNMPv3, it can be created for SNMPv3 auth and SNMPv3 priv at the same time.
To update the view profile for a group for a specific security model, delete and create the group with
the new view profile.
The read-view defines the MIB objects that the group user is allowed to read. If read-view is not
specified, then Internet OID space 1.3.6.1 can be read.
The write-view defines the MIB objects that the group user is allowed to write. If write-view is not
specified, then no MIB objects can be written.
The notification view defines the MIB objects that the system can report its status in the notification
packets to the trap managers that are identified by the specified group user (act as community string).
If notify-view is not specified, then no MIB objects can be reported.
Example
This example shows how to create the SNMP server group “guestgroup” for SNMPv3 access and
SNMPv2c.
Switch# configure terminal
Switch(config)# snmp-server view interfacesMibView 1.3.6.1.2.1.2 included
Switch(config)# snmp-server group guestgroup v3 auth read interfacesMibView
Switch(config)# snmp-server group guestgroup v2c read CommunityView write
CommunityView
Switch(config)#
63-19
snmp-server host
This command is used to specify the recipient of the SNMP notification. Use the
no
form of this
command to remove the recipient.
snmp-server host {IP-ADDRESS | IPV6-ADDRESS} [version {1 | 2c | 3 {auth | noauth | priv}}]
COMMUNITY-STRING [port PORT-NUMBER]
no snmp-server host {IP-ADDRESS | IPV6-ADDRESS} [COMMUNITY-STRING]
Parameters
IP-ADDRESS
Specifies the IPv4 address of the SNMP notification host.
IPV6-ADDRESS
Specifies the IPv6 address of the SNMP notification host.
version
(Optional) Specifies the version of the SNMP used to send the
traps. If not specified, the default is SNMPv1
1
- SNMPv1.
2c
- SNMPv2c.
3
- SNMPv3.
auth
Specifies to authenticate the packet but not to encrypt it.
noauth
Specifies not to authenticate and to encrypt the packet.
priv
Specifies to both authenticate and to encrypt the packet.
COMMUNITY-STRING
Specifies the community string to be sent with the notification
packet. If the version is 3, the community string is used as the
username as defined in the
snmp-sever user
command.
PORT-NUMBER
Specifies the UDP port number. The default trap UDP port number
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...