From f5cbb36587be33c3de3fbf64db833fb2b1df4cb2 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 5 Mar 2021 00:33:49 +0200 Subject: [PATCH] nmap --- install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap b/install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap index b739754..5f54ecf 100755 --- a/install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap +++ b/install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap @@ -2,5 +2,5 @@ #ip=`nslookup hybrid-mpi_master_1.hybrid-mpi_hybrid-mpi | grep Addr | cut -d':' -f2 | grep -v 127.0.` ip=`nslookup $NODENAME | grep Addr | cut -d':' -f2 | grep -v 127.0.` -nmap -sn -oG - $ip/24 | grep Up | cut -d ' ' -f 2 +nmap -sn -oG - $ip/24 | grep Up | grep $NODENETWORK | cut -d ' ' -f 2