Todd Lyons wanted us to know: >Hello all, was wondering if anybody here could test this NetApp script >for me. Basically you need a (test) NetApp that you can afford to yank >a drive out and a bring the array to a degraded state. Then you can
The opportunity presented itself to check it when we upgraded a Filer from raid4 to raid_dp. It turns out that I had left one line in there from the original script that caused a problem (and don't know why that screwed up variable declaration didn't cause a problem): admin51 mon # diff -ruN mon.d/netappraidstat.monitor.orig mon.d/netappraidstat.monitor --- mon.d/netappraidstat.monitor.orig 2005-12-06 15:30:55.000000000 -0800 +++ mon.d/netappraidstat.monitor 2005-12-06 15:29:39.000000000 -0800 @@ -74,9 +74,8 @@ readcf ($CONFIG) || die "could not read config: $!\n"; foreach my $host (@ARGV) { - next if (!defined $ARRAY{$host}); - $s; + my $s; if (!defined($s = new SNMP::Session (DestHost => $host, Timeout => $TIMEOUT, Community => $COMM, -- Regards... Todd when you shoot yourself in the foot, just because you are so neurally broken that the signal takes years to register in your brain, it does not mean that your foot does not have a hole in it. --Randy Bush Linux kernel 2.6.12-12mdksmp 2 users, load average: 0.38, 0.21, 0.09 _______________________________________________ mon mailing list mon@linux.kernel.org http://linux.kernel.org/mailman/listinfo/mon