Skip to content

Instantly share code, notes, and snippets.

View craigbruenderman's full-sized avatar

Craig Bruenderman craigbruenderman

  • CBTS
  • Louisville, KY
View GitHub Profile
#!/bin/bash
HOST=cpmasesx01.na.domain.com
PASSWD=
for m in $(cat list.txt)
do
MACHINE_PATH=`sshpass -p $PASSWD ssh root@$HOST find /vmfs/volumes/ -name $m -print`
if [ -z "$MACHINE_PATH" ]
then
! For each device, please paste these commands verbatim all at once,
! and save the output to one plain text file per device. This is a
! superset of commands to encompass multiple platforms. Therefore,
! not all of the commands will work on all platforms, so don't worry
! about any syntax errors you see.
term len 0
sh ver
sh inv
sh mod