TheDugsBaws
Technical User
I have a script at work that checks to see if a VM snapshot exists and will print out the results. I can 'read' these scripts but not write them.
Could someone help with the following?
my $snapshots = $_->snapshot;
It searchs this against a vmname and will output the name of the snapshots found.
How can I amend this to output the NUMBER of snapshots found?
Could someone help with the following?
my $snapshots = $_->snapshot;
It searchs this against a vmname and will output the name of the snapshots found.
How can I amend this to output the NUMBER of snapshots found?