From aa68229e33e369aed64b4819181154ea59190b9e Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 2 Feb 2010 16:31:05 +0000 Subject: [PATCH] change status string from 'active' to 'ping' in nodestat command git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/pods/man1/nodestat.1.pod | 18 +++++++++--------- xCAT-server/lib/xcat/plugins/nodestat.pm | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/xCAT-client/pods/man1/nodestat.1.pod b/xCAT-client/pods/man1/nodestat.1.pod index d298215c9..ee8e93000 100644 --- a/xCAT-client/pods/man1/nodestat.1.pod +++ b/xCAT-client/pods/man1/nodestat.1.pod @@ -72,24 +72,24 @@ Print help. 1. nodestat compute - node1 alive,sshd - node2 alive,sshd - node3 alive - node4 alive,pbs + node1 ping,sshd + node2 ping,sshd + node3 ping + node4 ping,pbs node5 noping 2. nodeset compute -u - node1 alive,sshd - node2 alive,sshd - node3 alive + node1 ping,sshd + node2 ping,sshd + node3 ping node4 netboot node5 noping 3. nodeset compute -m - node1 alive,sshd,ll,gpfs=ok - node2 alive,sshd,ll,gpfs=not ok,someapp=something is wrong + node1 ping,sshd,ll,gpfs=ok + node2 ping,sshd,ll,gpfs=not ok,someapp=something is wrong node3 netboot node4 noping diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index a80779081..f9a3b5b12 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -414,7 +414,7 @@ sub interrogate_node { #Meant to run against confirmed up nodes my $status = ""; my $appsd=""; #detailed status my $ret={}; - $ret->{'status'}=$::STATUS_ACTIVE; + $ret->{'status'}="ping"; foreach my $port (keys(%portservices)) { if (nodesockopen($node,$port)) { @@ -532,7 +532,7 @@ sub process_request_nmap { push @nodesetnodes,$currnode; #Aggregate call to nodeset next; } - $ret->{$currnode}->{'status'}=$::STATUS_ACTIVE; + $ret->{$currnode}->{'status'}="ping"; $ret->{$currnode}->{'appstatus'}=$status; $ret->{$currnode}->{'appsd'}=$appsd; $currnode="";