![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||
Solution Type Troubleshooting Sure Solution 2360204.1 : FS System: SNMP Diagnosis and Usage
This document provides an understanding of SNMP and how to check if it is working. In this Document
Applies to:Oracle FS1-2 Flash Storage System - Version All Versions to All Versions [Release All Releases]Information in this document applies to any platform. PurposeSNMP operation on the FS1-2 Troubleshooting StepsBackground Information: SNMP is a standard network monitoring and device management protocol. Many organizations use a SNMP management system such as Nagios to monitor devices in their environment. Many well known devices will have information that is exposed via SNMP. Many monitoring services systems will have a database of these devices and can monitor these systems out of the box. Systems that are less common will include a text file called a MIB or Management Information Base. Some management systems can import MIBs and others can't. If the system can't import a MIB you can usually add a customer monitor using locations defined in the MIB files. These locations are called OIDs, or Object Identifier. There is an industry standard structure to MIBs. This document explains in detail how a MIB is structured. OIDs are defined by a location systems using numbers and periods. Each number represents a tree location in a monitored device's SNMP service. One has to extract this value from the MIB and present it to the management server so it can query the information you intend to monitor on the end device. There are translation tools on Windows and Linux that make the OID mapping process less daunting. On Linux, the net-snmp-utils package has two command, snmptranslate and snmpwalk On Windows there are separate stand alone tools such as Syslog Watcher's snmpwalk and Paessler's MIB Importer Working with MIBs in Linux:
yum install net-snmp-utils
FS1-2 MIB Section: cStorageDetailsInformation
Management tools use the DOT address of the MIB stanza you want to set/get. The first step in the process is to translate the items found in the MIB to an OID. Each translation below starts with the command: snmptranslate -m +ORACLE-FS-MIB -IR -On
followed by the section from the MIB Retrieving OID used in this document [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On cStorageDetailsInformationSystemCapacitySummaryPhysicalTotalCapacity
.1.3.6.1.4.1.15548.3.1.2.3.1.1.2 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On cStorageDetailsInformationSystemCapacitySummaryPhysicalUsedCapacity
.1.3.6.1.4.1.15548.3.1.2.3.1.1.3 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On cStorageDetailsInformationSystemCapacitySummaryPhysicalFreeCapacity
.1.3.6.1.4.1.15548.3.1.2.3.1.1.4 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On sControllerInformationOverallControllerStatus
.1.3.6.1.4.1.15548.3.2.1.1.1.13 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On sControllerInformationRestartCounter
.1.3.6.1.4.1.15548.3.2.1.1.1.18 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On sEnclosureInformationOverallEnclosureStatus
.1.3.6.1.4.1.15548.3.2.2.1.1.8 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmptranslate -m +ORACLE-FS-MIB -IR -On sPilotInformationControlUnitHardwareComponentStatus
.1.3.6.1.4.1.15548.3.2.3.2.1.9 [adminobi@nagios1 ~]$ Using the command snmpwalk with the OIDs against a system configured for SNMP will return a value or state. Each value retrieval starts with the command: snmpwalk -v 2c -c <community> <host FQDN or IP address> <OID>
Information from a live FS1-2 [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.1.2.3.1.1.2
SNMPv2-SMI::enterprises.15548.3.1.2.3.1.1.2.1 = INTEGER: 475943 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.1.2.3.1.1.3
SNMPv2-SMI::enterprises.15548.3.1.2.3.1.1.3.1 = INTEGER: 3894 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.1.2.3.1.1.4
SNMPv2-SMI::enterprises.15548.3.1.2.3.1.1.4.1 = INTEGER: 387725 [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.2.1.1.1.13
SNMPv2-SMI::enterprises.15548.3.2.1.1.1.13.1 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.1.1.1.13.2 = STRING: "NORMAL" [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.2.1.1.1.18
SNMPv2-SMI::enterprises.15548.3.2.1.1.1.18.1 = STRING: "0" SNMPv2-SMI::enterprises.15548.3.2.1.1.1.18.2 = STRING: "0" [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.2.2.1.1.8
SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.1 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.2 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.3 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.4 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.5 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.2.1.1.8.6 = STRING: "NORMAL" [adminobi@nagios1 ~]$ [adminobi@nagios1 ~]$ snmpwalk -v 2c -c public fs1-sca11-a.us.oracle.com .1.3.6.1.4.1.15548.3.2.3.2.1.9
SNMPv2-SMI::enterprises.15548.3.2.3.2.1.9.1.1 = STRING: "NORMAL" SNMPv2-SMI::enterprises.15548.3.2.3.2.1.9.1.2 = STRING: "NORMAL" [adminobi@nagios1 ~]$
Below is an example setup of the Open-Source Monitoring tool Nagios to monitor the FS1-2 NOTE: If you have issues with Nagios see the online documentation for the product. Always remember google is your friend..
Setup Nagios using MIB OIDs: Defining a host: create a nagios host definition file for FS1-2's. You can add many hosts that use the same monitors. In this example only one array is monitored. touch /etc/nagios/conf.d/fs1-sca11-a.cfg
#fs1-sca11-a.cfg define host { define service{
define command{
Finally the bash script that does the FS1 SNMP access, query OIDs, send back status codes and status information. #!/bin/bash ################################################# COMP=$1 case $COMP in
if [ $PSTATE == "NORMAL" ] else controller)
if [ $CSTATE == "NORMAL" ] else fi enclosure)
exit 0 else exit 2 fi
if [[ $PERCENT -le 80 ]] else fi
Screen Shot of Nagios 4.3.4 Services Link with FS1-2 Monitors
Attachments This solution has no attachment |
||||||||||||||
|