-Change pping/nodestat to a more accurate set of arguments

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3244 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-04-22 19:54:54 +00:00
parent 343e1a8040
commit 79e6c93a6c
2 changed files with 5 additions and 5 deletions

View File

@ -34,9 +34,9 @@ unless (@ARGV) {
my $noderange = $ARGV[0];
my $client = IO::Socket::SSL->new(
PeerAddr=>$xcathost,
SSL_key_file=>$ENV{HOME}."/.xcat/client-cred.pem",
SSL_cert_file=>$ENV{HOME}."/.xcat/client-cred.pem",
SSL_ca_file => $ENV{HOME}."/.xcat/ca.pem",
SSL_key_file=> xCAT::Utils->getHomeDir()."/.xcat/client-cred.pem",
SSL_cert_file=> xCAT::Utils->getHomeDir()."/.xcat/client-cred.pem",
SSL_ca_file => xCAT::Utils->getHomeDir()."/.xcat/ca.pem",
SSL_use_cert => 1,
#SSL_verify_mode => 1,
);
@ -100,7 +100,7 @@ sub nmap_pping {
foreach (@nodes) {
$deadnodes{$_}=1;
}
open (FPING, "nmap -sP ".join(' ',@nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!");
open (FPING, "nmap -PE --send-ip -sP ".join(' ',@nodes). " 2> /dev/null|") or die("Cannot open nmap pipe: $!");
my $node;
while (<FPING>) {
if (/Host (.*) \(.*\) appears to be up/) {

View File

@ -191,7 +191,7 @@ sub process_request_nmap {
foreach (@nodes) {
$deadnodes{$_}=1;
}
open($fping,"nmap -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: $!");
my $currnode='';
my $port;
my $state;