[Users] Fast way to see all snapshots on my infra?

René Koch (ovido) r.koch at ovido.at
Fri Mar 22 14:07:14 UTC 2013


Hi Gianluca,

You can try something like this (dirty) command:

URL='https://localhost/api'; USER='admin at internal';
cp /dev/null /tmp/ovirt-snapshots; echo -e "list vms\nexit"
> /tmp/ovirt-vms; for VM in `ovirt-shell -l ${URL} -u ${USER} -c -I
-f /tmp/ovirt-vms | grep name | tr -s ' ' ' ' | cut -d' ' -f3`; do echo
"list snapshots --vm-identifier ${VM} --show-all"
>> /tmp/ovirt-snapshots; done; echo "exit" >> /tmp/ovirt-snapshots;
ovirt-shell -l ${URL} -u ${USER} -c -I -f /tmp/ovirt-snapshots


-- 
Best Regards

René


On Fri, 2013-03-22 at 09:44 +0100, Gianluca Cecchi wrote:
> Hello,
> is there any way to see a recap of all the snapshots in my DCs and Clusters?
> Both from webadmin gui or REST API or query on engine db?
> Thanks,
> Gianluca
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users




More information about the Users mailing list