XORUX. How to add Brocade SAN switch

Автор: | 15 марта, 2018

So, we have two Brocade 6505 switches (10.31.134.18 and 10.31.134.19) in our sandbox. Monitoring will be implemented with embeeded SNMP MIBs on switches and only thing we need is to setup it from switch side.

Login on switch as administrator

Use snmpconfig —set command to set SNMP parameters depending of your requirenments. In example I keep it default.

From XORUX side:

[lpar2rrd@xorux ~]$ export PATH=$PATH:/opt/freeware/bin

[lpar2rrd@xorux ~]$ snmpwalk -v 1 -c public 10.31.134.18 1.3.6.1.2.1.1.5

SNMPv2-MIB::sysName.0 = STRING: brocade6505-fab1

[lpar2rrd@xorux ~]$ snmpwalk -v 1 -c public 10.31.134.19 1.3.6.1.2.1.1.5

SNMPv2-MIB::sysName.0 = STRING: brocade6505-fab2

Then go to /home/stor2rrd/stor2rrd/etc/ and make backup of san-list.cfg then edit main configuration file adding you Brocade switches:

# SAN configuration file. All SAN switches must be listed here

# <switch IP or hostname>:<SNMP community string>:<BRCD|CISCO>:<fabric name>

# <fabric name> will be used in the GUI for Fabric aggregated graphs

#  use it on ONE switch in the each fabric!!!

# <SNMP community string> is usually set to string «public». In this case you can leave it blank.

# GUI will show the real name of the switch regardless what name or IP you use here

# example  (note each fabric alias is just once on arbitrary switch in given fabric!!!

# It is not necessary to put fabric alias on each switch in the fabric)

#172.32.216.10::BRCD:Fabic_A

#172.32.216.11::BRCD:Fabic_B

10.31.134.18::BRCD:Fabric_A

10.31.134.19::BRCD:Fabric_B

# Define your SNMP port If you using another then default 161

#SNMP_PORT=161

# Brocade Network Advisor (BNA)

# <BNA IP or hostname>:<port>:BNA:<API user>:<encrypted password>:<backup BNA node IP or hostname>

# to encrypt password use: perl ./bin/spasswd.pl

# 192.168.1.1:443:BNA:stor2rrd:IT5gYGAK:192.168.1.2

 

Check config using ./bin/config_check.sh or ./bin/config_check.sh switch_ip

 

[lpar2rrd@xorux stor2rrd]$ ./bin/config_check.sh 10.31.134.18

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

SWITCH: 10.31.134.18

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

test snmpwalk:

snmpwalk -v 1 -c public 10.31.134.18 1.3.6.1.2.1.1.5

SNMPv2-MIB::sysName.0 = STRING: brocade6505-fab1

snmpwalk cmd : ok

san_verify.pl:

Type         : BRCD

DestHost     : 10.31.134.18

Version SNMP : 1

Community    : public

SNMP port    : not defined! Used SNMP default port «161»!

Switch name  : brocade6505-fab1

STATE        : CONNECTED!

connection ok

 

Also we can use ./load.sh html to push data from switches to WEB server:

[lpar2rrd@xorux stor2rrd]$ ./load.sh html

Image environment is set

start time html: Mon Mar 12 16:20:19 CET 2018

installing WWW : install-html.sh

Host identif   : Linux xorux.localdomain 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 007f0100

Apparently some changes in the env, install_html.sh continuing

….

adding to menu : W : Totals

adding to menu : W : Totals:Heatmap

adding to menu : W : Totals:Data

adding to menu : W : Totals:Frame

adding to menu : W : Totals:Fabric

adding to menu : W : Totals:Health status

adding to menu : W : Totals:Configuration

adding to menu : W : Totals:Historical reports

adding to menu : W : brocade6505-fab2

adding to menu : W : brocade6505-fab2:Configuration

adding to menu : W : brocade6505-fab2:Data

adding to menu : W : brocade6505-fab2:Frame

adding to menu : W : brocade6505-fab2:Health status

Adding SAN port:

adding to menu : W : brocade6505-fab1

adding to menu : W : brocade6505-fab1:Configuration

adding to menu : W : brocade6505-fab1:Data

adding to menu : W : brocade6505-fab1:Frame

adding to menu : W : brocade6505-fab1:Health status

Adding SAN port:

end time       : Mon Mar 12 16:20:25 CET 2018

Mon Mar 12 16:20:25 CET 2018

 

After about 10-15 mins we can see some results in STO2RRD web interface. Like health status of switches:

Our menu after adding switches:

Phisical and operational status of both switches:

 

 

 

 

 

 

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *