zeus
4 years ago
3 changed files with 23 additions and 15 deletions
@ -0,0 +1,6 @@ |
|||
#/bin/sh |
|||
|
|||
#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 |
|||
|
Loading…
Reference in new issue