in reply to Re: getuptime script
in thread getuptime script

Thank you for your reply. My concern is regarding this part of the script.
if($days == 0) { my $res = `fcping -d`; my @temp_arr = split(" ", $res); my $port = $temp_arr[2]; chomp($temp = `fcping $port`); @TEMP_1 = split("and", $temp); @TEMP_2 = split(" ", $TEMP_1[1]); if($TEMP_2[0] eq "0") { print "Network Issue"; } else { print "Check HBA Status"; } }
The Code above this part is fine. I'm successful in getting the uptime. I need uptime% and the conditions I've mentioned. Thanks in Advance