IBM Storage DS-Serie per SMcli abfragen - DS3400 DS4300 DS4700 DS5020
Aus znilwiki
Bevor es an die Überwachung einer DS3400 und DS4700 über Zabbix geht - hier erst einmal die Sammlung der Daten die wir bekommen können.
SMcli installieren
Nun, die SMcli.exe
wird automatisch mit dem DS Storage Manager xx Client mitinstalliert. Ihr könnt also das ganze von dem Server/Rechner aus machen auf welchem dieser Installiert ist.
Im Installationsverzeichnis des Storage Managers, typischer Weise
C:\Program Files (x86)\IBM_DS\client
findet Ihr die SMcli.exe
die sich aus einer DOS-Box etc. nutzen lässt.
Am besten fügt Ihr dann im Storage Manager eure Systeme hinzu so das ihr darüber auf diese zugreifen könnt - dann geht es auch mit SMcli.exe
Vorhandene Storage-Systeme ermitteln
Eine Liste aller Storage-Systeme die im Storage Manager verwaltet werden erhaltet Ihr mit
SMcli.exe -S -d -i -v
Beispielausgabe:
TEST_SAN1 192.168.170.38 192.168.170.39 Optimal TEST_SAN2 192.168.170.40 192.168.170.41 Optimal
Hier hätten wir also schon mal einen einfachen Punkt den Zustand abzufragen ("Optimal")
Controller abfragen
Wir wollen wissen was die Controller machen - dazu müssen wir nun gezielt ein Gerät angeben (IP's haben wir ja zuvor ermittelt):
SMcli.exe 192.168.170.38 -c "show allControllers summary;"
Beispielausgabe:
Performing syntax check... Syntax check complete. Executing script... Controller in Enclosure 85, Slot A Status: Online Current configuration Firmware version: 06.60.17.00 Appware version: 06.60.17.00 Bootware version: 06.60.17.00 NVSRAM version: N1814D470R960V05 Pending configuration Firmware version: None Appware version: None Bootware version: None NVSRAM version: None Transferred on: None Current ID (ALPA) On drive channel 1: 125/0x1 On drive channel 2: 125/0x1 Replacement part number: 44X2423 Board ID: 3992 Submodel ID: 19 Product ID: 1814 FAStT Product revision: 0916 Serial number: SN12345678 Date of manufacture: December 25, 2007 Vendor: IBM Cache Total data cache: 864 MB Processor cache: 160 MB Associated Logical Drives (* = Preferred Owner): SAN_LD1* Controller host name: Remote login: Disabled Ethernet port: 1 MAC address: 00:a0:ff:ff:ff:10 Network configuration: Static IP address: 192.168.37.83 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Ethernet port: 2 MAC address: 00:a0:ff:ff:ff:11 Network configuration: Static IP address: 192.168.170.38 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Controller in Enclosure 85, Slot B Status: Online Current configuration Firmware version: 06.60.17.00 Appware version: 06.60.17.00 Bootware version: 06.60.17.00 NVSRAM version: N1814D470R960V05 Pending configuration Firmware version: None Appware version: None Bootware version: None NVSRAM version: None Transferred on: None Current ID (ALPA) On drive channel 1: 124/0x2 On drive channel 2: 124/0x2 Replacement part number: 44X2423 Board ID: 3992 Submodel ID: 19 Product ID: 1814 FAStT Product revision: 0916 Serial number: SN12345679 Date of manufacture: December 25, 2007 Vendor: IBM Cache Total data cache: 864 MB Processor cache: 160 MB Associated Logical Drives (* = Preferred Owner): None Controller host name: Remote login: Disabled Ethernet port: 1 MAC address: 00:a0:ff:ff:ff:e8 Network configuration: Static IP address: 192.168.37.84 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Ethernet port: 2 MAC address: 00:a0:ff:ff:ff:e9 Network configuration: Static IP address: 192.168.170.39 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Script execution complete. SMcli completed successfully.
Einzelnen Controller abfragen
Dazu müssen wir A oder B angeben:
SMcli.exe 10.106.170.38 -c "show Controller [A];"
Beispielausgabe:
Performing syntax check... Syntax check complete. Executing script... Controller in Enclosure 85, Slot A Status: Online Current configuration Firmware version: 06.60.17.00 Appware version: 06.60.17.00 Bootware version: 06.60.17.00 NVSRAM version: N1814D470R960V05 Pending configuration Firmware version: None Appware version: None Bootware version: None NVSRAM version: None Transferred on: None Current ID (ALPA) On drive channel 1: 125/0x1 On drive channel 2: 125/0x1 Replacement part number: 44X2423 Board ID: 3992 Submodel ID: 19 Product ID: 1814 FAStT Product revision: 0916 Serial number: SN75108922 Date of manufacture: December 25, 2007 Vendor: IBM Cache Total data cache: 864 MB Processor cache: 160 MB Associated Logical Drives (* = Preferred Owner): SAN_LD1* Controller host name: Remote login: Disabled Ethernet port: 1 MAC address: 00:a0:ff:ff:ff:10 Network configuration: Static IP address: 192.168.37.83 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Ethernet port: 2 MAC address: 00:a0:ff:ff:ff:11 Network configuration: Static IP address: 192.168.170.38 Subnet mask: 255.255.255.0 Gateway: 192.168.170.111 Drive interface: Fibre Channel: 1 Current ID: 125/0x1 Maximum data rate: 4 Gbps Current data rate: 4 Gbps Data rate control: Switch Link status: Up Drive interface: Fibre Channel: 2 Current ID: 125/0x1 Maximum data rate: 4 Gbps Current data rate: 4 Gbps Data rate control: Switch Link status: Up Host interface: Fibre Channel: 1 Current ID: Not applicable/0xFFFFFFFF Preferred ID: 0/0xEF NL-Port ID: 0x010400 Maximum data rate: 4 Gbps Current data rate: 4 Gbps Data rate control: Auto Link status: Up Topology: Fabric Attach World-wide port name: 20:04:00:ff:ff:ff:ff:11 World-wide node name: 20:04:00:ff:ff:ff:ff:10 Part type: HPFC-5700 revision 5 Host interface: Fibre Channel: 2 Current ID: Not applicable/0xFFFFFFFF Preferred ID: 1/0xE8 NL-Port ID: 0xFFFFFF Maximum data rate: 4 Gbps Current data rate: 4 Gbps Data rate control: Auto Link status: Down Topology: Not Available World-wide port name: 20:04:00:ff:ff:ff:ff:12 World-wide node name: 20:04:00:ff:ff:ff:ff:10 Part type: HPFC-5700 revision 5 Script execution complete. SMcli completed successfully.
Alle Festplatten abfragen
Wieder mit IP des Storages:
SMcli.exe 192.168.170.38 -c "show allDrives summary;"
Beispielausgabe:
Performing syntax check... Syntax check complete. Executing script... SUMMARY Number of drives: 16 Current drive types: Fibre (16) BASIC: TRAY, SLOT STATUS CAPACITY CURRENT DATA RATE PRODUCT ID FIRMWARE VERSION 85, 1 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 2 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 3 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 4 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 5 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 6 Optimal 136.732 GB 4 Gbps ST3146954FC F B90A 85, 7 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 8 Optimal 136.732 GB 4 Gbps MAX3147FD F S708 85, 9 Optimal 136.732 GB 4 Gbps MBA3147FD F SD01 85, 10 Optimal 136.732 GB 4 Gbps MBA3147FD F SD01 85, 11 Optimal 136.732 GB 4 Gbps ST3146954FC F B90A 85, 12 Optimal 136.732 GB 4 Gbps MBA3147FD F SD01 85, 13 Optimal 136.732 GB 4 Gbps MBA3147FD F SD01 85, 14 Optimal 136.732 GB 4 Gbps MBA3147FD F SD01 85, 15 Optimal 136.732 GB 4 Gbps ST3146356FC F B989 85, 16 Optimal 136.732 GB 4 Gbps ST3146356FC F B989 DRIVE CHANNELS: TRAY, SLOT PREFERRED CHANNEL REDUNDANT CHANNEL 85, 1 1 2 85, 2 2 1 85, 3 1 2 85, 4 2 1 85, 5 1 2 85, 6 2 1 85, 7 1 2 85, 8 2 1 85, 9 1 2 85, 10 2 1 85, 11 1 2 85, 12 2 1 85, 13 1 2 85, 14 2 1 85, 15 1 2 85, 16 2 1 Script execution complete. SMcli completed successfully.
Einzelne Festplatte abfragen
Dazu müssen wir das Gehäuse ("Tray") und den Einschub ("Slot") angeben:
SMcli.exe 192.168.170.38 -c "show Drives [85,1];"
fragt im Gehäuse 85 die Festplatte im Slot 1 ab, Beispielausgabe:
Performing syntax check... Syntax check complete. Executing script... Drive at Enclosure 85, Slot 1 Status: Optimal Mode: Hot spare standby Raw capacity: 136.732 GB Usable capacity: 136.232 GB World-wide name: 50:00:00:e0:19:d2:f0:d0 Associated array: None PORT CHANNEL ID 0 1 0/0xEF 1 2 0/0xEF Drive path redundancy: OK Drive type: Fibre Channel Speed: 15000 RPM Current data rate: 4 Gbps Product ID: MAX3147FD F Firmware version: S708 Serial number: DV59P8205F1P Vendor: IBM-SSG Date of manufacture: Not Available Script execution complete. SMcli completed successfully.
LUNS abfragen
SMcli.exe 192.168.170.38 -c "show logicalDrives;"
Beispielausgabe:
Performing syntax check... Syntax check complete. Executing script... STANDARD LOGICAL DRIVES------------------------------ SUMMARY Number of standard logical drives: 1 See other Logical Drives sub-tabs for premium feature information. NAME STATUS CAPACITY RAID LEVEL ARRAY SAN_LD1 Optimal 1,907.246 GB 5 1 DETAILS LOGICAL DRIVE NAME: SAN_LD1 Logical Drive status: Optimal Capacity: 1,907.246 GB (2,047,890,018,304 Bytes) Logical Drive ID: 60:0a:0b:80:00:42:13:10:00:00:07:18:4b:bc:99:a4 Subsystem ID (SSID): 0 Associated array: 1 RAID level: 5 Drive type: Fibre Channel Enclosure loss protection: No Preferred owner: Controller in slot A Current owner: Controller in slot A Segment size: 128 KB Modification priority: High Read cache: Enabled Write cache: Enabled Write cache without batteries: Disabled Write cache with mirroring: Enabled Flush write cache after (in seconds): 10.00 Dynamic cache read prefetch: Enabled Enable background media scan: Enabled Media scan with redundancy check: Disabled MISSING LOGICAL DRIVES------------------------------ Number of missing logical drives: 0 Script execution complete.