From 457f997ea142d210b10d1f908feb8f3148ce662c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 24 Aug 2018 09:15:20 -0400 Subject: [PATCH] Do not bother with rdp if ssh up --- xCAT-server/lib/xcat/plugins/nodestat.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index e342109ec..f3ac62ab5 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -721,7 +721,14 @@ sub process_request_nmap { if ($1 eq "3001" and defined($chainhash{$currnode}->[0]->{currstate}) and $chainhash{$currnode}->[0]->{currstate} =~ /^install/) { $installquerypossible = 1; #It is possible to actually query node } elsif ($1 ne "3001") { + if ($1 == 3389 and $states{'sshd'}) { + continue; + } $states{ $portservices{$1} } = 1; + if ($1 == 22 and $states{'rdp'}) { + delete $states{'rdp'}; + continue; + } } } }