From cd13afb3d58d1fd26ed872e97a119690d0bde321 Mon Sep 17 00:00:00 2001 From: datajerk Date: Mon, 12 Sep 2011 17:37:27 +0000 Subject: [PATCH] Added MS RCP and RDP to detect installed node. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 3d541de5a..852dc4c75 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -32,7 +32,9 @@ my %default_ports = ( 'loadl' => '9616', 'loadl_master' => '9616', 'loadleveler' => '9616', - 'gpfs' => '1191' + 'gpfs' => '1191', + 'rdp' => '3389', + 'msrpc' => '135', ); sub handled_commands { @@ -195,6 +197,10 @@ sub preprocess_request $apps{'pbs'}->{'port'} = "15002"; $apps{'xend'}->{'group'} = "ALL"; $apps{'xend'}->{'port'} = "8002"; + $apps{'rdp'}->{'group'} = "ALL"; + $apps{'rdp'}->{'port'} = "3389"; + $apps{'msrpc'}->{'group'} = "ALL"; + $apps{'msrpc'}->{'port'} = "135"; $apps{'APPS'}=['sshd', 'pbs', 'xend']; } else { #go thorugh the settings and put defaults in @@ -590,7 +596,8 @@ sub process_request_nmap { $deadnodes{$_}=1; } #print "nmap -PE --send-ip -p $ports,3001 ".join(' ',@nodes) . "\n"; - open($fping,"nmap -PE --send-ip -p $ports,3001 ".join(' ',@nodes). " 2> /dev/null|") or die("Can't start nmap: $!"); + # open($fping,"nmap -PE --send-ip -p $ports,3001 ".join(' ',@nodes). " 2> /dev/null|") or die("Can't start nmap: $!"); + open($fping,"nmap -PE -p $ports,3001 ".join(' ',@nodes). " 2> /dev/null|") or die("Can't start nmap: $!"); my $currnode=''; my $port; my $state;