No output from script to list snapshots
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?