This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! For each device, please paste these commands verbatim all at once from priviledged exec mode (enable), | |
! 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 |