Typical Snmp Configuration Examples - Planet Networking & Communication WGSW-50040 Configuration Manual

50-port 10/100/1000mbps with 4 shared sfp managed gigabit switch
Table of Contents

Advertisement

{<ipv6-num-std>|<ipv6-name>}]
7. Configure view
Global Mode
snmp-server view <view-string>
<oid-string> {include|exclude}
no snmp-server view
<view-string>[<oid-string>]
8. Configuring TRAP
Global Mode
snmp-server enable traps
no snmp-server enable traps
snmp-server host { <ipv4-addr> |
<ipv6-addr> } {v1 | v2c | {v3 {noauthnopriv
| authnopriv | authpriv}}} <user-string>
no snmp-server host { <ipv4-addr> |
<ipv6-addr> } {v1 | v2c | {v3 {noauthnopriv
| authnopriv | authpriv}}} <user-string>
9. Enable/Disable RMON
Global mode
rmon enable
no rmon enable

4.4.5 Typical SNMP Configuration Examples

The IP address of the NMS is 1.1.1.5; the IP address of the switch (Agent) is 1.1.1.9.
Scenario 1: The NMS network administrative software uses SNMP protocol to obtain data from the switch.
The configuration on the switch is listed below:
Switch(config)#snmp-server enable
Switch(config)#snmp-server community rw private
Switch(config)#snmp-server community ro public
Switch(config)#snmp-server securityip 1.1.1.5
Command
Command
Command
Explanation
Configure view on the switch. This command is used
for SNMP v3.
Explanation
Enable the switch to send Trap message. This
command is used for SNMP v1/v2/v3.
Set the host IPv4/IPv6 address which is used to
receive SNMP Trap information. For SNMP v1/v2,
this command also configures Trap community
string; for SNMP v3, this command also configures
Trap user name and security level. The "no" form of
this command cancels this IPv4 or IPv6 address.
Explanation
Enable/disable RMON.
4-11

Advertisement

Table of Contents
loading

Table of Contents