Disk Storage ZFS Storage Appliance (MOSC)

MOSC Banner

No output from script to list snapshots

edited May 8, 2017 5:02AM in Disk Storage ZFS Storage Appliance (MOSC) 1 commentAnswered

I'm trying to automate using scripts. I have script to create a snapshot and also to delete the snapshot. I just can't get a script to output a list of snapshots on a project. Here is the script that isn't giving me any output:

ssh $user@$appliance << EOF

script

var MyArguments = {

  pool:         '$pool',

  project:      '$project'

}

function ListSnapshots (Arg) {

  run('cd /');

  run('shares');

  run('set pool=' + Arg.pool);

  run('select ' + Arg.project);

  run('snapshots');

  run('list');

}

ListSnapshots(MyArguments);

.

EOF

--------------

Anybody have ideas?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center