Friday, February 19, 2021

How to configure a Brocade switch for SNMP

 

snmpconfig command allow you to managge snmpv1/v3 agent configuration on SAN switch.
Event trap level is mapped with event severity level. When an event occers and its severity level is equal to or below the set value, the snmp event traps are forwarded to the trap recipients, that is snmp servers.

Event severity are as follow
0 - none
1 - critical
2 - error
3 - warning
4 - informational
5 - debug

The setting command is interactive which mean, you will enter the value at the prompt.
Setting up snmpv1/v3

> snmpconfig --set snmpv1
> snmpconfig --set snmpv3

You have to pay attention to SNMP Trap recipient information.
Get the IP address and the severity level.

Once done, verify
> snmpconfig --show snmpv1
> snmpconfig --show snmpv3

> snmpconfig --show snmpv1
> snmpconfig --show snmpv3


The management information base(MiB)
- it is a database of monitored and managed information on a device.

View currently enabled trap on your switch.
> snmpconfig --show mibcapability

To change the MIB capability,  you the snmpconfig command
> snmpconfig --set mincapability

Since we already know the snmp server information, lets test it if snmp forwards the traps....

> snmptraps --send -trap_name cp-status-change-trap -ip_address 192.168.10.120

it throws an error, MiB is disabled..

let run the configuration again,
> snmpconfog --show mincapability
just to enable, you don't have to run into interactive mode, only thing you need is MIB name and trap name
> snmpconfig --set mibcapability -min_name HA=MIN -bitmask 1

Now, enable specific trap
> snmpconfig --enable mibcapability -mib_name HA-MIB -trap_name fruStatusChange
> snmpconfig --enable mibcapability -min_name HA-MIB -trap_name cpStatusChange

Teo frustatuschange and cpStatuschange traps are enabled.
Now, generate the traps
> snmptraps --send -trap_name cp-status-change-trap -ip_address 192.168.10.120


 Source: https://adminhelpline.blogspot.com/2015/01/brocade-san-switch-snmp-configuration_12.html

===========================================

Description

Simple Network Management Protocol (SNMP) is a set of application layer protocols for managing complex networks.  SNMP involves polling network devices and the devices returning status messages to the central management server.  Network management using SNMP requires three components:

  • SNMP Manager
  • SNMP Agent
  • Management Information Base (MIB)
SNMP Manager

The SNMP Manager communicates to the devices within a network using the SNMP protocol. Typically, SNMP Managers manage networks by monitoring the network parameters and optionally setting parameters in managed devices.

SNMP Agent

The SNMP agent resides in the managed devices in the network and collects data from these devices. The SNMP Agent stores the data and sends these when polled by an SNMP Manager. The agent can also automatically alert the SNMP Manager about events by using specially configured triggers called traps.

Management Information Base

SNMP Agents in the managed devices store the data about those devices in a database called a Management Information Base (MIB).  The MIB lets the SNMP manager know what each value the device returns means. The MIB structure determines the scope of management access allowed by a device. 

Basic SNMP operation
  1. Every Brocade device carries an agent and management information base (MIB). The agent accesses information about a device and makes it available to an SNMP network management station.
  2. When active the management station gets information or sets information when it queries an agent. SNMP commands are sent from the management station and the agent replies once the value is obtained  or modified. 
  3. The management station also receives traps/alerts if an unusual event occurs.
  4. The agent can receive queries from one or more management stations and can send traps to up to six management stations.

Copy and paste from
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_configure_a_Brocade_switch_for_SNMP

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...