ADSM-L

Re: q mount vs. select ...

2000-01-05 06:49:30
Subject: Re: q mount vs. select ...
From: Volker Reinen <Volker.Reinen AT GECITS-EU DOT COM>
Date: Wed, 5 Jan 2000 12:49:30 +0100
Moin ADSMer,

Thank you all for the answers! On ADSM 3.1.2.20 for AIX is no table "mount". IMO
the best way is the little shell script from Russell. I think that I modify the
awk-statement in

awk '/3570 volume/ { print $4 }'
or
awk '/is mounted/ { print $4}'



Mit freundlichen Gruessen - Yours sincerely

Volker Reinen
GE CompuNet Essen
System Engineering
Severinstrasse 42, 45127 Essen, Germany
Phone: +49 - (0)2 01 - 20 12 - 6 50, Fax: +49 - (0)2 01 - 20 12 - 2 30, Mobile:
+49 - (0)1 72 - 3 20 11 17
E-Mail : Volker.Reinen @ gecits-eu.com


This email is confidential. If you are not the intended recipient,
you must not disclose or use the information contained in it.
If you have received this mail in error, please tell us
immediately by return email and delete the document.





Russell Street <russells AT AUCKLAND.AC DOT NZ> on 04.01.2000 23:45:22

Please respond to "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>

To:     ADSM-L AT VM.MARIST DOT EDU
cc:      (bcc: Volker Reinen/Essen/GECITS-EU)
Subject:  Re: q mount vs. select ...


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




> 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
<Prev in Thread] Current Thread [Next in Thread>