Re: Script
2004-09-16 07:40:33
Loon, E.J. van - SPLXM wrote:
Hi *SM-ers!
I'm trying to create a script which does the following:
1) query the server for any running reclamation
2) retrieves the process id for this reclamation
3) cancels the reclamation
4) starts a backup storage pool
Can this be done in one script? If so, how do I put the process id in a
variable which I can parse to the cancel command?
Thank you very much for any reply in advance!!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines
**********************************************************************
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential and
privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may be
disclosed, copied or distributed, and that any other action related to this
e-mail or attachment is strictly prohibited, and may be unlawful. If you have
received this e-mail by error, please notify the sender immediately by return
e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM),
its subsidiaries and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor responsible for
any delay in receipt.
**********************************************************************
dsmadmc -id=blah -pass=moreblah q pr | grep "Space Reclaimation" | awk '
{ print $1 } ' | xargs -t -I {} dsmadmc -id=blah -pass=moreblah cancel
pr {} ; dsmaadmc -id=blah -pass=moreblah backup stgpool importantstuff
importantstuffcopy maxpr=10
-Jonathan
smime.p7s
Description: S/MIME Cryptographic Signature
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Script, Loon, E.J. van - SPLXM
- Re: Script,
Jonathan Siegle <=
- Re: Script, Coats, Jack
- Re: Script, Loon, E.J. van - SPLXM
- Re: Script, Alexander Verkooijen
- Re: Script, Ben Bullock
- Re: Script, Bill Dourado
- Re: Script, Taw.Raymond
- Re: Script, Coats, Jack
|
|
|