Re: q mount vs. select ...
2000-01-04 17:45:22
> select * from mount
Not on 3.1.2.* ;) May be on 3.7
Here is a shell script that will dismount all idle volumes. I found
query mount puts out lines that can easily be used by another program.
!/bin/sh
admin_login=xxx
admin_pass=yyyy
VOLS=`/usr/bin/dsmadmc -id=$admin_login -pass=$admin_pass \
query mount |
nawk '$0 ~ /IDLE/ {print $4}'`
for i in ${VOLS} ; do
/usr/bin/dsmadmc -id=$admin_login -pass=$admin_pass \
dismount volume $i |
egrep -v "^ADSTAR|^Command|^\(C\)|^Session|^ Server|^$|ANS8001I|ANS8002I"
done
Russell
|
|
|