filter log/ filenames into sw.command
[dell-switch] / sw-nmap.sh
1 #!/bin/sh -xe
2
3 ip="10.20.0.0/24"
4 test ! -z "$1" && ip=$1
5 file=/dev/shm/nmap.sw.$( echo $ip | cut -d/ -f1 )
6
7 nmap -oG - $ip | tee /dev/stderr | grep open > $file