Browse Source

nmap

master
zeus 4 years ago
parent
commit
f5cbb36587
  1. 2
      install/usr/share/swarmlab.io/sec/project/bin/swarmlab-nmap

2
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 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.` 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

Loading…
Cancel
Save