Perl definitely has an expect module, and I agree that is the way to go in this
situation.
Curtis Preston | VP Data Protection
GlassHouse Technologies, Inc.
T: +1 760 710 2004 | C: +1 760 419 5838 | F: +1 760 710 2009
cpreston AT glasshouse DOT com | www.glasshouse.com
Infrastructure :: Optimized
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Clark, Robert A
Sent: Tuesday, October 28, 2008 9:10 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: [ADSM-L] Time out! says the script?
Perl should have an expect module. Expect has a syntax for saying how
long to wait for a specific response before timing out.
[RC]
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Nick Laflamme
Sent: Tuesday, October 28, 2008 7:20 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] Time out! says the script?
Is there an option for the dsmadmc administrative client to set how long
the client should wait before giving up on a response from a server?
I'm trying to automate some routine health checks of our servers, and
there are times that not getting a prompt response tells me more than
enough. However, I don't see a command line option to specify a time-out
value for how long the client should wait.
(If it matters, the script is in perl, initially running on a Windows
desktop.The TSM servers are at various levels; the Windows client is at
5.3.4.3 but could be updated if there's a relevant fix in a later
level.)
Thanks,
Nick
DISCLAIMER:
This message is intended for the sole use of the addressee, and may contain
information that is privileged, confidential and exempt from disclosure under
applicable law. If you are not the addressee you are hereby notified that you
may not use, copy, disclose, or distribute to anyone the message or any
information contained in the message. If you have received this message in
error, please immediately advise the sender by reply email and delete this
message.
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail.
|