Skip to content

Instantly share code, notes, and snippets.

@michaelcoyote
Created August 15, 2014 18:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelcoyote/e2a014c5370a8bc1d33b to your computer and use it in GitHub Desktop.
Save michaelcoyote/e2a014c5370a8bc1d33b to your computer and use it in GitHub Desktop.
Commands to get the node serials and other info from Avamar nodes. Not a script, use wisely
# This is not a script, please paste commands direclty into a ssh/putty window.
# get the DPN status
status.dpn
# set the ssh agent keys
ssh-agent bash
ssh-add ~/.ssh/dpnid
# get the serial numbers
mapall --noerror --user=root --nodes=all+ --quiet 'echo `hostname -i`": "`/usr/bin/ipmitool fru print 0 | grep "Product Asset Tag" | sed "s/^.:\s\(.$\)/\1/"`'
# If that command fails use this command
# mapall --all+ --quiet '/usr/bin/omreport chassis frontpanel | grep "LCD Line 1" | sed "s/^.*: \(.\)/\1/"'
# get the interfaces
mapall --noerror --user=root --nodes=all+ --quiet '/sbin/ifconfig -a'
# look for product info from DMI
mapall --noerror --user=root --nodes=all+ --quiet 'dmidecode | grep -i product'
# get the disk layout
mapall --noerror --user=root --nodes=all+ --quiet 'df -h | grep -c data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment