beautypg.com

Configuring the snmpv3 server, Configuring the snmp (version 1 or, Version 2c) server host – Brocade Network OS Message Reference v4.1.1 User Manual

Page 25: Configuring the snmpv3, Server, Table 4

background image

Network OS Message Reference

9

53-1003227-01

Configuring the SNMP server hosts

1

Configuring the SNMP (version 1 or version 2c) server host

To set the trap destination IP addresses, version (1 or 2c), community string for SNMP version 1
and version 2c, and the destination port for the SNMP traps, perform the following steps.

1. Execute the configure terminal command to access the global configuration level of the CLI.

switch# configure terminal

Entering configuration mode terminal

2. Execute the following command to set the trap recipient with IP address 192.0.2.2, which

receives all traps with the severity levels of Critical, Error, Info, and Warning.

switch(config)# snmp-server host 192.0.2.2 public severity-level Info udp-port

162 version 1

NOTE

To receive the traps, the management station IP address must be configured on the switch.

3. Execute the do show running-config snmp-server command to verify the configuration.

switch(config)# do show running-config snmp-server

snmp-server contact "Field Support."

snmp-server location "End User Premise."

snmp-server sys-descr "Brocade VDX Switch."

snmp-server community ConvergedNetwork

snmp-server community OrigEquipMfr rw

snmp-server community "Secret C0de" rw

snmp-server community common

snmp-server community private rw

snmp-server community public

snmp-server host 192.0.2.2 public

udp-port 162

severity-level Info

Configuring the SNMPv3 server

Use the snmp-server v3-host command to specify the recipient of SNMP version 3 notifications:
traps or informs. The following example explains the procedure to configure the recipient of the
SNMPv3 informs.

TABLE 4

Commands for configuring SNMP server hosts

Command

Description

[no] snmp-server host {ipv4 host |
ipv6-host | dns
} community-string
[severity-level [None |
Debug | Info | Warning | Error | Critical]
[udp-port port_number] [version [1 | 2c]

This command sets the destination IP addresses, version, community
string (for version 1 and version 2c), and destination port for the
traps.
The severity-level option is used to filter the traps based on severity.
The no form of the command changes the SNMP server host
configurations to the default value.

[no] snmp-server v3host {ipv4-host |
ipv6-host | dns} username [notifytype
{traps | informs}] engineid engine-id
severity-level [None | Debug | Info |
Warning | Error | Critical] udp-port
port_number

This command specifies the recipient of the SNMP version 3
notification option.
The severity-level option is used to filter the traps or informs based on
severity.
Use the no form of the command to remove the specified host.