You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
332 B
15 lines
332 B
7 years ago
|
#!/bin/bash
|
||
|
|
||
|
for i in \
|
||
|
`ssh sf-001 sudo pvesh get pools 2>/dev/null | grep poolid | cut -f 4 -d '"'`
|
||
|
|
||
|
do echo -n "sf-$i " | tr '[:upper:]' '[:lower:]'
|
||
|
|
||
|
echo -n `ssh sf-001 sudo pvesh get pools/$i 2>/dev/null | grep '"name"' |cut -f 4 -d '"'`
|
||
|
echo
|
||
|
ALL="$ALL sf-`echo -n $i | tr '[:upper:]' '[:lower:]'`"
|
||
|
|
||
|
done
|
||
|
|
||
|
echo "sf-vm $ALL"
|