5 typical snmp configuration examples – Amer Networks SS2R48G4i V2 User Manual

Page 63

Advertising
background image

SS2R24G4i/SS2R48G4i

52

8. Configuring TRAP

Command

Explanation

snmp-server enable traps
no snmp-server enable traps

Enable the switch to send Trap message.
This command is used for SNMP v1/v2/v3.

snmp-server host <host-address >
{v1|v2c|{v3
{NoauthNopriv|AuthNopriv|AuthPriv}}}
<user-string>

no snmp-server host <host-address>
{v1|v2c|{v3 {NoauthNopriv|AuthNopriv
|AuthPriv}}} <user-string>

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.


9. Enable/Disable RMON

Command

Explanation

rmon enable
no rmon enable

Enable/disable RMON.

5.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

The NMS can use “private” as the community string to access the switch with read-write permission, or
use “public” as the community string to access the switch with read-only permission.

Scenario 2

NMS will receive Trap messages from the switch (Note NMS may have community

string verification for the Trap messages. In this scenario, the NMS uses a Trap verification community
string of “dcntrap”).
The configuration on the switch is listed below
Switch(config)#snmp-server enable
Switch(Config)#snmp-server host 1.1.1.5 v1 dcntrap
Switch(Config)#snmp-server enable traps

Scenario 3

NMS uses SNMP v3 to obtain information from the switch.

The configuration on the switch is listed below
Switch(config)#snmp-server enable

Advertising