If in doubt, ask the nation.. while I have dabbled.. my awk knowlege isn't the best.. i could muddle through.. but just in case...
Purpose: Need to sweep various subnets on the hunt for Mac.. get their IP and OS version.
I can do this simply with nmap.
This provides the following output:
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00016s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
631/tcp open ipp
44176/tcp open unknown
Device type: general purpose|phone
Running: Apple Mac OS X 10.7.X, Apple iOS 4.X
OS CPE: cpe:/o:apple:mac_os_x:10.7 cpe:/o:apple:iphone_os:4
OS details: Apple Mac OS X 10.7.0 - 10.7.2 (Lion) (Darwin 11.0.0 - 11.2.0) or iPhone mobile phone (iOS 4.3.2)
Network Distance: 0 hops
OS detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 13.19 seconds
And what I'd like is...
IP OS details
Which i can then import into excel..
I can pull the IP, I can pull the OS, but I can't seem to get both together on the same line.
Any takers..
Thanks in advance.
J.