* Jon Haugsand
> ping -b 192.168.1.0
>
> and then
>
> arp -n
Nah, the arp cache does not seem to be filled after this trick.
>
> (But I'm no network expert.)
Still no experts, but the following seems to work on my machine:
#!/bin/sh
NETWORK=$1
ping -bn -c 2 $NETWORK 2>/dev/null |
grep '64 bytes from' |
awk '{print $4}' |
sed 's/://' |
sort |
uniq
Save in /local/bin/machines and try 'machines 192.168.1.0'.
--
Jon Haugsand, [EMAIL PROTECTED]
http://www.norges-bank.no
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list