Discovering Mac computers

robin850
Giga Contributor

If you have some experience with Discovery and OS-X (Apple) computers can you share any tips, hints, or gotchas?

We are beginning to gather data on this type of device and would appreciate any insights.

From the wiki I see the requirements are similar to Linux/Unix: allow SSH, have a username/password with "sudo" configured for a few basic commands like ifconfig, lsof, dmidecode.

Are there any Mac-specific commands that you have found informative for Discovery purposes?


cheers,

robin850

5 REPLIES 5

doug_schulze
ServiceNow Employee
ServiceNow Employee

I haven't come across any out here in the hinterlands but OSX really isn't enterprise deployed much...


I am not getting the last logged in username when we do a Discovery on a Mac running "Lion". Has anyone else run into this?

cheers,

robin850


Robin,

Just had a user run the same command from the last user probe (last | grep -m 1 console) on Lion and got the exact same output on my 10.5 build (whatever name it is but not Lion) so trust it should work the same.. can you see if the output on your builds are different


found the issue! it was probably failing on any Mac, not just the latest OS.

We had to add the SETENV line to the sudoers file. The probe was failing with "cannot preserve environment"

ALL=NOPASSWD:SETENV:/usr/sbin/lsof,/sbin/ifconfig,/usr/bin/who,/bin/ps,/usr/bin/last,/usr/sbin/system_profiler

works great now.

cheers,

robin850