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.

12 lines
215 B

#!/bin/bash
for i in \
`ssh sf-001 sudo pvesh get pools 2>/dev/null | grep poolid | cut -f 4 -d '"'`
do echo "Pool $i"
ssh sf-001 sudo pvesh get pools/$i 2>/dev/null | grep '"name"' |cut -f 4 -d '"'
echo
done