From b858eb29eaea40ba47aa9c3a1fbce7de56eea903 Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 20 Feb 2008 16:12:12 +0000 Subject: [PATCH] use lsnodeid to get node id for RMC instead of going to the file. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/plugin/rmcmon.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-rmc/plugin/rmcmon.pm b/xCAT-rmc/plugin/rmcmon.pm index b128a8787..cc232a6c4 100644 --- a/xCAT-rmc/plugin/rmcmon.pm +++ b/xCAT-rmc/plugin/rmcmon.pm @@ -358,7 +358,7 @@ sub addNodes_noChecking { if ($first_time) { $first_time=0; #get ms node id, hostname, ip etc - $ms_node_id=`head -n 1 /var/ct/cfg/ct_node_id`; + $ms_node_id=`/usr/sbin/rsct/bin/lsnodeid`; chomp($ms_node_id); ($ms_name,$ms_aliases,$ms_addrtype,$ms_length,@ms_addrs) = gethostbyname($ms_host_name); chomp($ms_name); @@ -375,7 +375,7 @@ sub addNodes_noChecking { if($ms_host_name eq $node) { $mn_node_id=$ms_node_id; } else { - $mn_node_id=`$::XCATROOT/bin/psh --nonodecheck $node "head -n 1 /var/ct/cfg/ct_node_id" 2>&1`; + $mn_node_id=`$::XCATROOT/bin/psh --nonodecheck $node /usr/sbin/rsct/bin/lsnodeid 2>&1`; if ($?) { print "Cannot get NodeID for $node. $mn_node_id\n"; next;