Superviser une carte Raid Adaptec 2610SA OEM avec snmp

De Wiki de Romain RUDIGER
Aller à : navigation, rechercher

Introduction

thumbs

Superviser une carte raid 2610SA qui provient d'un serveur DELL avec une RedHat 5.2.

Fichiers

Avec les fichiers du support DELL : afa-apps-snmp-b7420-A04.tar.gz

La copie sur le Wiki : Fichier:Afa-apps-snmp-b7420-A04.tar.gz.zip

Installation

# mkdir afa-apps-snmp-b7420-A04
# tar -xzf afa-apps-snmp-b7420-A04.tar.gz  -C afa-apps-snmp-b7420-A04
# cd afa-apps-snmp-b7420-A04
# view readme.txt
# rpm -ivh afaapps-4.1-0.i386.rpm afasnmp-4.0-0.i386.rpm
Preparing...                ########################################### [100%]
   1:afasnmp                ########################################### [ 50%]
   2:afaapps                ########################################### [100%]

Configuration de snmp

# cd /usr/local/share/snmp/
# ln -s /usr/share/snmp/mibs .
# cd /lib
# ln -s libcrypto.so.0.9.7a libcrypto.so.1
# ln -s libssl.so.0.9.7a libssl.so.1
# mkdir -p /usr/local/etc/snmp
# touch /usr/local/etc/snmp/afasnmpd.conf
# chkconfig --add afasnmpd
# chkconfig afasnmpd on
# vi /etc/snmp/snmpd.conf
master agentx
pass .1.3.6.1.4.1.795 /usr/sbin/afasnmpd
# /etc/init.d/snmpd restart
# /etc/init.d/afasnmpd start

Test de snmp

[root@sphere adaptec-RAID-2610SA]# snmpwalk -v2c -c public 127.0.0.1 .1.3.6.1.4.1.795
SNMPv2-SMI::enterprises.795.3.5.1.0 = STRING: "AAC SNMP Version: 4.1-0 (Build #7027)"
SNMPv2-SMI::enterprises.795.3.5.2.0 = INTEGER: 1
SNMPv2-SMI::enterprises.795.3.5.3.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.795.3.5.3.1.2.1 = STRING: "AFA0"
SNMPv2-SMI::enterprises.795.3.5.3.1.3.1 = STRING: "Adaptec 2610SA"
SNMPv2-SMI::enterprises.795.3.5.3.1.4.1 = STRING: "File System: 1.1-5 (Build #2459)Miniport: 1.1-5 (Build #2459)Software: 4.2-1 (Build #7368)BIOS: 4.2-1 (Build #7368)"
SNMPv2-SMI::enterprises.795.3.5.3.1.5.1 = INTEGER: 1
SNMPv2-SMI::enterprises.795.3.5.3.1.6.1 = INTEGER: 3
SNMPv2-SMI::enterprises.795.3.5.3.1.7.1 = STRING: "4.2-1 (Build #7368)"
SNMPv2-SMI::enterprises.795.3.5.3.1.8.1 = STRING: "4.2-1 (Build #7368)"
SNMPv2-SMI::enterprises.795.3.5.3.1.9.1 = STRING: "4.2-1 (Build #7368)"
SNMPv2-SMI::enterprises.795.3.5.3.1.10.1 = ""
...

Utilisation du client en ligne de commande

# /usr/sbin/afacli
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DELL PowerEdge Expandable RAID Controller 2 Command Line Interface
Copyright 1998-2004 Adaptec, Inc. All rights reserved
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


CLI > controller list
Executing: controller list

Adapter Name       Adapter Type           Availability       Clustering
------------       -----------------      ------------       ------------
afa0               Adaptec 2610SA         read/write         No

CLI > open afa0
Executing: open "afa0"

CLI > disk list
Executing: disk list

B:ID:L  Device Type     Blocks    Bytes/Block Usage            Shared Rate
------  --------------  --------- ----------- ---------------- ------ ----
0:00:0   Disk            1953525168 512         Initialized      NO     132
0:01:0   Disk            1953525168 512         Initialized      NO     132

CLI > container list
Executing: container list
Num          Total  Oth Chunk          Scsi   Partition
Label Type   Size   Ctr Size   Usage   B:ID:L Offset:Size
----- ------ ------ --- ------ ------- ------ -------------
 0    Mirror  931GB            UnMap'd 0:00:0 64.0KB: 931GB
 backup                                0:01:0 64.0KB: 931GB

AFA0> controller details
Executing: controller details
Controller Information
----------------------
         Remote Computer: .
             Device Name: AFA0
         Controller Type: Adaptec 2610SA
             Access Mode: READ-WRITE
Controller Serial Number: Last Six Digits = 4EBF3C
         Number of Buses: 1
         Devices per Bus: 15
Controller Physical Slot: 2
          Controller CPU: i960 series
    Controller CPU Speed: 100 Mhz
       Controller Memory: 64 Mbytes
           Battery State: Not Present

Component Revisions
-------------------
                CLI: 4.1-0 (Build #7420)
                API: 4.1-0 (Build #7420)
    Miniport Driver: 1.1-5 (Build #2459)
Controller Software: 4.2-1 (Build #7368)
    Controller BIOS: 4.2-1 (Build #7368)
Controller Firmware: (Build #7368)