Hurence / historian

big data timeseries historian
Apache License 2.0
4 stars 1 forks source link

add an auto-discover infrastrucutre tool #227

Open oalam opened 2 years ago

oalam commented 2 years ago

may be based on nmap

sudo nmap -O -v 10.20.20.0/24 sudo nmap -O -oG report.txt 10.20.20.0/24

to parse strings like

Nmap scan report for 10.20.20.153
Host is up (0.00043s latency).
Not shown: 995 closed ports
PORT     STATE SERVICE
80/tcp   open  http
443/tcp  open  https
515/tcp  open  printer
631/tcp  open  ipp
9100/tcp open  jetdirect
MAC Address: F8:0D:60:29:82:A9 (Canon)
Device type: printer
Running: Canon embedded
OS details: Canon PIXMA printer
Network Distance: 1 hop
TCP Sequence Prediction: Difficulty=17 (Good luck!)
IP ID Sequence Generation: Randomized