#!/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
