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)