The attached script can be used to pull inventory (serial numbers) from all hosts in the NW environment. Using racadm it also pulls the PowerVault Serial numbers for your storage (for old DAC storage, there is no access to serial numbers via racadm). This script can be run from the NW server (default location is the /root/scripts/inventory) but requires installation of the racadm binaries from Dell (https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=0992n).
racadm install is simple, download the tar.gz file and extract in a temp directory, then in the iDRACTools/racadm directory run the install_racadm.sh.
One issue is you need to add a symbolic link to the libssl.so for the ssl connections of racadm to work:
cd /usr/lib64
ln -s libssl.so.1.0.2k libssl.so
The genInventory.sh script will create a dated csv file: System-Inventory-<TARGET>-YYYY-MM-DD.csv (Default TARGET is ALL)
output file is formated as such:
Hostname, HostSN, Storage Type, Storage SN(s)
Concentrator01,109ZZT2,ESES,DAC_Enclosures_no_Serial_Number
Decoder02,5JPND44,MD1400,743V2G2 741N2R2 742W2D2
Broker01,DJZS2T2,NONE,No_Attached_PV_Storage
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.