zeus
4 years ago
2 changed files with 15 additions and 0 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 | grep $NODENETWORK | cut -d ' ' -f 2 |
|||
|
Loading…
Reference in new issue