![H3C S5120-SI Series Скачать руководство пользователя страница 553](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174553.webp)
1-9
Figure 1-3
Network diagram for SNMPv1/v2c
Configuration procedure
1) Configuring the SNMP agent
# Configure the IP address of the agent as 1.1.1.1/24 and make sure that there is a route between the
agent and the NMS. (The configuration procedure is omitted here)
# Configure the SNMP basic information, including the version and community name.
<Sysname> system-view
[Sysname] snmp-agent sys-info version v1 v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Configure the contact person and physical location information of the switch.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable the sending of traps to the NMS with an IP address of 1.1.1.2/24, using
public
as the
community name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000 params
securityname public v1
Ensure that the SNMP version specified in the
snmp-agent target-host
command is the same with that
on the NMS; otherwise, the NMS cannot receive any trap.
2) Configuring the SNMP NMS
With SNMPv1/v2c, the user needs to specify the read only community, the read and write community,
the timeout time, and number of retries. The user can inquire and configure the device through the
NMS.
The configurations on the agent and the NMS must match.
3) Verify the configuration
z
After the above configuration, an SNMP connection is established between the NMS and the agent.
The NMS can get and configure the values of some parameters on the agent through MIB nodes.
z
Execute the
shutdown
or
undo shutdown
command to an idle interface on the agent, and the
NMS receives the corresponding trap.
Содержание S5120-SI Series
Страница 61: ...7 8 Sysname ip http acl 2030...
Страница 138: ...2 10 PORT VLAN MODE GigabitEthernet1 0 1 2 MANUAL...
Страница 186: ...1 46 Instance Vlans Mapped 0 1 to 9 11 to 19 21 to 29 31 to 4094 1 10 2 20 3 30...
Страница 218: ...ii Displaying and Maintaining BOOTP Client Configuration 4 2 BOOTP Client Configuration Example 4 3...
Страница 255: ...1 12...
Страница 381: ...ii Troubleshooting RADIUS 1 32...
Страница 577: ...1 8 Return to the upper directory Sysname cd Display the current working directory Sysname pwd flash...