[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Re: netapp.pl and uptime
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Re: netapp.pl and uptime
- From: Dirk Kastens <Dirk.Kastens (at) uni-osnabrueck.de>
- Date: Wed, 14 Nov 2007 09:03:11 +0100
- References: <Pine.LNX.4.64.0711101205590.23166 (at) store01-1.desy.de> <Pine.LNX.4.64.0711131515420.7787 (at) titan.desy.de>
- User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
Hi,
Martin Flemming schrieb:
Hi, Francesco et all !
Any hints or methods to debug ?
... we're now in pairs with this failure ...
This error occured to me one year ago. I found a solution and reported
it to the developer. Don't know if he fixed it meanwhile:
Your script works if the uptime is 10 days or more. If it's less than 10
days there is a blank in the number of days, for example " 3 days".
I just added the following line to your get_version procedure (line 706
of netapp.pl) to strip off the leading blank:
foreach my $line (@val) {
$line =~ s/^ //;
if (index($line,":") != -1) {
Now the uptime procedure works.
--
Regards,
Dirk Kastens
Universitaet Osnabrueck, Rechenzentrum (Computer Center)
Albrechtstr. 28, 49069 Osnabrueck, Germany
Tel.: +49-541-969-2347, FAX: -2470