Tuesday, November 24, 2015

Monitoring Dell Servers in HP Systems Insight Manager

Original text from: http://en.community.dell.com/techcenter/systems-management/w/wiki/3891.monitoring-dell-servers-in-hp-systems-insight-manager
 
 This post explains the details of managing Dell Servers with HP Systems Insight Manager(HPSIM) and enabling SNMP Traps support. The server MIB files “10892.mib” and “dcstorag.mib” can be used for monitoring the Dell Servers in an environment managed by HPSIM.
Managed Node Pre-Requisites
         Installing the OpenManage Server Administrator
            The Dell Server should be installed with the Server Administrator Software to enable the monitoring. The Server Administrator software comes with the installation DVD and the details for the installation and configuration of the OpenManage Server Administrator is available in support.dell.com manuals.
      Configuring the SNMP Service
            The SNMP Service needs to be configured in the Server to enable the SNMP communication between the Dell Server and HPSIM. To enable the traps to be forwarded to the HP SIM server the SNMP Trap destination needs to be configured properly with the HP SIM Server IP Address. The details for the SNMP configuration configuration is available in the Server Administrator documents in support.dell.com.
 The current latest version can be downloaded from support.dell.com :
        @ http://support.dell.com/support/edocs/software/svradmin/7.1/en/index.htm
 Loading the Dell MIBs in HPSIM
            The Dell Server MIB files are available with the Server Administrator DVD and also the MIBs can be downloaded from support.dell.com.
  • Uploading he MIBs:
                 Uploading the MIBs is simply copying the MIBs from the downloaded folder to the \Program Files\HP\Systems Insight Manager\mibs folder
  1.  Copy “10892.mib” to \Program Files\HP\Systems Insight Manager\mibs
  2.  Copy “dcstorag.mib” to \Program Files\HP\Systems Insight Manager\mibs
             Note - As HPSIM generates an error when a MIB has a filename that contains only    numbers, rename “10892.mib” to “new10892.mib”, and for consistency also rename to “dcstorag.mib” to “newdcstorag.mib”.
  • Compiling the MIBs:
 The MIBs needs to be compiled to generate the intermediate .cfg file which can be used to register the MIBs in HP SIM.
  1. Open a command window (cmd.exe)
  2.  Change the working directory to \Program Files\HP\Systems Insight Manager\mibs.
  3. Enter the command “mcompile new10892.mib”. The MIB should compile and return the message “Mib Compilation completed successfully”.
  4. Enter the command “newdcstorag.mib”. The MIB should compile and return the message “Mib Compilation completed successfully”.
  • Registering the MIBs:
Register the Server MIB files as follows:
  1. Enter the command “mxmib -a new10892.cfg”. The MIB should register and return the message “COMMAND COMPLETED SUCCESSFULLY”.
  2. Enter the command “mxmib -a newdcstorag.cfg”. The MIB should register and return the message “COMMAND COMPLETED SUCCESSFULLY”.
 HPSIM – System Type Manager
                The System Type Manager is used to define the rules to identify the different systems in HP SIM. The steps used to configure the System Type Manager to recognize a Dell Server are as follows:
 Dell Windows Server
  1. Login to HPSIM.
  2. Select Options ‐> Manage System Types.
  3. Click the New… button. The New Rule pane will open below.
  4. Beside System object identifier click the Retrieve from system… button. The Retrieve from system pane will appear below the current pane.
  5. Enter the hostname or IP address of the target Dell system in the Target hostname or IP address text box.
  6. Click Get Response. Note that the response value of “1.3.6.1.4.1.311.1.1.3.1.2” is displayed below.
      • Figure 1
  7. Click the OK button to accept this value and return to the New rule pane.
  8. Beside MIB variable object identifier enter the OID for the Server MIB Attribute “systemManagementSoftwareName” value as “.1.3.6.1.4.1.674.10892.1.100.1”.
      • Figure 2
  9. Beside Object Value click on “Retrieve from System”
  10. Click Get Response. Note that the response value of “Server Administrator” is displayed below. This is the OpenManage Server Administrator software name retrieved from the Dell Server.
      • Figure 3
  11. Click the OK button to accept this value and return to the New rule pane.
  12. Beside Compare rule select Match.
  13. Beside System Type select Server.
  14. Beside Subtype select “Dell”.
  15. Beside Product model enter “Dell Windows Server”.
  16. Leave the Custom management page field blank and click the OK button.
 Dell Linux Server
  1. Login to HPSIM.
  2. Select Options ‐> Manage System Types.
  3. Click the New… button. The New Rule pane will open below.
  4. Beside System object identifier click the Retrieve from system… button. The Retrieve from system pane will appear below the current pane.
  5. Enter the hostname or IP address of the target Dell system in the Target hostname or IP address text box.
  6. Click Get Response. Note that the response value of “1.3.6.1.4.1.8072.3.2.10” is displayed below.
      • Figure 4 
  7. Click the OK button to accept this value and return to the New rule pane.
  8. Beside MIB variable object identifier enter the OID for the Server MIB Attribute “systemManagementSoftwareName” value as “.1.3.6.1.4.1.674.10892.1.100.1”.
  9. Beside Object Value click on “Retrieve from System”
  10. Click Get Response. Note that the response value of “Server Administrator” is displayed below. This is the OpenManage Server Administrator software name retrieved from the Dell Server.
  11. Click the OK button to accept this value and return to the New rule pane.
  12. Beside Compare rule select Match.
  13. Beside System Type select Server.
  14. Beside Subtype select “Dell”.
  15. Beside Product model enter “Dell Linux Server”.
  16. Leave the Custom management page field blank and click the OK button.
 Discovering Dell Servers
Once the Dell Server system type has been configured in the HP SIM, the Dell Servers can be properly discovered in HP SIM.

  • Global Protocol Settings:
 The SNMP settings can be changed as follows:

  • Click Options ‐> Protocol Settings ‐> Global Protocol Settings. The Global Protocol Settings window will appear.
      • Figure 5
  • Scroll down to the Default SNMP settings section and click on “Global Credentials” and Verify that the required community strings is configured and click on OK button to save the changes.
    • Figure 6

  • Discovering Dell Servers:

    • Click Options ‐> Discovery. The Discovery summary page will be displayed.
      • Figure 7

    • Click on New button, the Discovery options page will be shown.
    • Select the Discovery option “Discover a Single System” and enter the name for the discovery option and enter the IPAddress of the Dell Server.     Note – Also the Group discovery can be used to discover multiple servers.
      • Figure 8

    • Click on Save button to save and accept the changes.
              i.        Once the discovery rule is saved, Click on “Run Now” option to execute the discovery Rule. The Discovered Dell Server will be shown as
      • Figure 9

             ii.        The “Tools and Links” tab contains the link to launch the OpenManage Sever Administrator Console for Dell Servers.
      • Figure 10

            iii.        The Events tab will List the associated events with the corresponding Dell Server.
      • Figure 11

  • Testing Dell Server SNMP Traps:

    • Log on to Dell Server OpenManage Server Administrator console by clicking on the “openmanage” link from “Tools and Links” tab.
    • Navigate to the Temperature page in Main System under Server Module in the left-side navigation tree
      • Figure 12

    • Click on the “System Board Ambient Temperature” in the right-side navigation pane.
    • The Properties page tab will be displayed and select “Set to Values” option and set a value higher than the current Temperature reading to simulate the Warning alert for Temperature.
      • Figure 13

 
    • Click on Apply option to save the changes and verify that the Temperature status has been changed to Warning.
      • Figure 14

    • Navigate to the Events Tab in the HP SIM and the Temperature Alert should be shown in the Events page.
      • figure 15
    The Server Administrator SNMP Traps details are documented in the Message Reference guide and can be downloaded from support.dell.com.
Appendix
 MIB Files
#
MIB
MIB Filename
Description
1
Server Administrator Instrumentation MIB
10892.mib
The Server Administrator Instrumentation MIB provides
instrumentation data that allows you to monitor the health of a system with
SNMP management applications. It provides:
• Information about the status of temperatures, power supplies, voltages,
currents, fans, and memory at key points in the system
• Rapid access to detailed fault and performance information gathered by
industry standard systems management agents
• Version information for Basic Input/Output System (BIOS), firmware, and operating system
• A detailed account of every cost of ownership (COO) detail about your system
In addition, traps are sent to report a change in status of the health of critical components.
2
Server Administrator Storage Management MIB
dcstorag.mib
The Server Administrator Storage Management MIB provides storage management data that allows you to monitor the health of storage resources with SNMP management applications.

If interested to know about Monitoring Dell Servers using HP Operations Manager for Windows, please refer to the Dell SPI white paper here

Friday, November 20, 2015

Commands for basic FOS troubleshooting ( Brocade)


Disclaimer: The information in this Contribution is provided “AS IS,” without warranty of any kind.
The author reserves the right to make changes to this document at any time, without notice, and assumes no responsibility for its use.

The author shall have no liability or responsibility to any person or entity with respect to any loss, cost, liability, or damages arising from the information contained in this contribution.


There are lots of brocade commands that come handy when troubleshooting a fabric related problems. We divide these into

Marginal Links

switchshow - Indicators like no light or In_sync will be displayed
portshow - Provides report on errors on a port
porterrshow - provides gist of port errors, look for delta of counters
portstatsshow - Provides details of port errors
portstats64show - Extension of portstatsshow when 32 bit counters do not suffice, look for tim_txcrd_z to observe BB_credit deltas

fabriclog -s - Helps isolate flapping ports, look out for offline and online sequences
sfpshow - Provides information on SFP and their state, check for power

Zoning

cfgshow - Displays zoning configuration
defzone --show  - Shows default zone settings
nsshow -t - Display name server entries with additional details

nodefind - To find specific device in fabric
nodefind - To find specific device in fabric

fcping - helps isolate end to end device connectivity and also an easy method to validate zoning


Licensing

licenseshow

Firmware Download

firmwaredownloadstatus
firmwareshow
version

Configuration

configdefault - To reset switch configuration to default
configdownload - To download a previously uploaded config file

switchshow - Lists connection information as well first indicator of fabric segmentations
errshow -r - Look for config events, match events with list in Brocade Message reference guide for suitable actions
fabstatsshow - flags any parameter mismatch during merging
fabricshow - Helps identify domain id conflicts and gives an overview of all fabric members

configure - To set correct switch and flow control parameters

portcfgshow - Display port configuration
portcfgspeed - Set or show port speed
portcfgdefaults - Set port settings to default
portcfgpersistentenable - To enable port permanently
portcfgpersistentdisable - To disable port persistently (across reboots)
portdisable
portenable
portcfgeport - Disable E port
portcfglport - Lock port to L port
portcfggport - Lock port to E or F port

Log collection

supportshow
supportsave

Thursday, October 22, 2015

HP OneView Get Blade System Inventory

Original link: https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-BladeSystemInventory

The PowerShell script collects information of BladeSystem resources managed by HP OneView:
  • IP addresses of devices and servers
  • Firmware of various components
  • Serial Number and Part Numbers
  • Servers characteristic
  • Server connections to Interconnect devices
Note: The OneView POSH library does offer some CMDLETs to collect information about firmware and MAC addresses of the connection including Show-HPOVFirmwareReport or Get-HPOVServer -List.
This sample script offers additional details in reporting such as:
  • Firmware of all components in OA like Fan and PowerSupplies
  • Information about network connections like MAC address, WWN and also uplinks to TOR switches

Pre-requisites

PowerShell script

.\Get-BladeSystemInventory.ps1 -OVApplianceIP 10.254.1.20 -Enclosures "Enclosure1,Enclosure2" -OVApplianceIP 10.254.1.20 -OVAdminName this_user -OVAdminPassword this_password -OneViewModule HPOneView.120

Output

The following files are generated by the script:
  • Enclosure_name-Connections-Month.CSV : List of network/FC connections of servers to VC modules
  • Enclosure_name-FW-Month.CSV : List of Firmware versions for various devices in the enclosure
  • Enclosure_name-IPs-Month.CSV : List of IP addresses of various devices in the enclosure
  • Enclosure_name-Parts-Month.CSV : List of serial number and part numbers of various devices in the enclosure
  • Enclosure_name-Servers-Month.CSV : Servers information CPU, Cores, Memory

Script in Action!

You can import CSV files into Excel or use Out-GridView to view the results

Network Connections


Server Information


IP Addresses


Firmware Versions


Serial Number and Part numbers


Uplinks


Download Script Source


Tuesday, January 6, 2015

How-To Enable Auto Rebuild of AppleRAID in Mac OSX 10.x

During installation / configuration of my new Mac Mini (late 2012), particully when I have done configuration of Software Raid (AppleRaid), I have noticed that I did not checked option for rebuld:

so it was no more possible via GUI to change it ...

So like other open minded people (*unix), I have seached for CLI posibility to change it ...

Mac OSX have a good fond of CLI commands, so it was not so hard to find correct combination (normally using Google for hints :) ).





So first check status of RAID:

 MacMini:~ user01$ diskutil appleraid list
AppleRAID sets (1 found)
===============================================================================
Name:                 DATA
Unique ID:            F5DC5950-47AD-4BCA-89D2-8DA444012666
Type:                 Mirror
Status:               Online
Size:                 999.9 GB (999860895744 Bytes)
Rebuild:              manual
Device Node:          disk3
-------------------------------------------------------------------------------
#  DevNode   UUID                                  Status     Size
-------------------------------------------------------------------------------
0  disk1s2   2B250BEA-D828-4CC4-8628-77C8AA5174A8  Online     999860895744
1  disk2s2   B1A8B9A9-3D15-4098-9DA8-4EC11EA26F08  Online     999860895744
===============================================================================

Then execute following command to change Rebuild:


 MacMini:~ user01$ diskutil appleRAID update AutoRebuild 1 /Volumes/DATA

Keep noticed that you need to specify complete path to RAID volume or you will get error that it is not possible to do change.

AutoRebuild 0 => Disable / Manual Rebuild
AutoRebuild 1 => Enable / Automatic Rebuild

How to use DiskSpd to simulate Veeam Backup & Replication disk actions

This HOW-TO contains information on how to use Microsoft© DiskSpd to simulate Veeam Backup & Replication disk actions to measure disk pe...