[ ] Monday, 9 September 2019 [ ]

Networking

my old standby:

for p in $(seq 2 254); 
do echo -ne 192.168.1.$p"\t"; 
curl --max-time 2 -si 192.168.1.$p | grep -i server; 
echo ; done | grep -i server
But on OpenBSD you need to use jot so the script:
for p in $(jot 254 2); 
do echo -ne 192.168.5.$p "\t"; 
curl --max-time 2 -si 192.168.5.$p | grep -i server; 
echo; done | grep -i server
Interesting it didn't discover my switch that is set up for https.

networkingcurljot


$Id: dates.htm,v 1.1292 2019/12/08 22:51:38 fred Exp $

$Id: diary,v 1.27 2017/09/01 17:12:44 fred Exp $