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...