Posted on 06-24-2010 09:27 AM
Maybe I'm completely missing something in the Casper Inventory
searching, but how can I get an Advanced Search that shows me (and
allows me to export to .csv) a report with my 1000+ laptops Airport
MAC addresses. Using JSS 7.2.1
Inventory --> Advanced Search --> General (Sort by Computer Name)
Criteria --> Hardware Information
and
Display Fields --> MAC address
These both refer to each laptop's ethernet NIC which isn't the info I
want. I see no checkbox or option for wireless or Airport MAC address.
Surely there must be a way to generate a report of managed machines
that shows me the computer name and its Airport MAC address.
Thanks!
Damien Barrett
System Technician
Montclair Kimberley Academy
Posted on 06-24-2010 09:48 AM
I think the problem is, not every mac has the en1 as an Airport card. So Casper only looks at en0. Mac Pros, Xserves and Macbook Airs are going to have a different configuration. However, I may have a solution for you, but it will involve scripting. Using the System Profiler command line app (system_profiler) you will be able to grab the MAC addy then output to to a file share, like a txt file, and then import that into a csv. You can match it with computer name or serial number etc. I would use system_profiler over ifconfig because ifconfig doesn't tell you what en0 and en1 are, and if you have mac pros, xserves, or macbook airs you need to also assess, you would get false results.
It would totally work, but would be a bit of work on your end.
Posted on 06-24-2010 10:09 AM
Actually, I just found an AirportReport.jsp in the downloadable
Resource Kit from JAMF that works. It's not quite as configurable as I
want, but it's good enough.
1) Upload the AirportReport.jsp to JSS's Tomcat location; adjust
permissions appropriately
2) Add this Custom Report in Inventory options --> Custom Reports
3) Once there, this custom report's name shows up in the "View As"
area of an Inventory search's options, so I can easily set up a saved
search.
Hope this helps someone else. Read the documentation included in the
Inventory/Custom Reports folder in the Resource Kit.
Note, the Tomcat location is slightly different in 7.2 vs. v 6.x when
the documentation was created.
http://jamfsoftware.com/kb/article.php?id=262
Damien Barrett
System Technician
Montclair Kimberley Academy
--------------------------
Posted on 06-24-2010 11:09 AM
Ah much much easier....good to know
Posted on 06-25-2010 09:22 AM
If it helps, I'd be more inclined to use networksetup if you are going to use a script to source the information. Probably easier to extract the data and system_profiler wont provide details of a port than isn't in a configuration, although I'm sure all of your laptops will have the Airport in one of the configurations
networksetup -listallhardwareports
Sean