Posted on 10-20-2016 10:07 AM
JAMF Nation,
I have been searching for a tool/app that can get system info from a remote MAC.
An example of this on the PC side is an app called BGinfo. You would input a PC name and it would report back hardware data etc from another PC on the network. Im sure there is probably a script that could be built for this, but we are more interested in an app we can give to our support team with a simple UI.
Any help would be great.
Posted on 10-20-2016 10:36 AM
Are you a Jamf customer? This is core functionality of Casper Suite.
Because of their security stance, Apple's devices don't offer up much info to other anonymous devices on the same network. IP address (naturally), Generic SNMP and ping responses, NIC hardware MAC, etc...
To get a real response and get info from a Mac, there needs to be something already on it waiting for your request. You could connect to it with Apple's pricey ol' standby, Apple Remote Desktop, which has its own agent already in the OS and its own protocol for communication. You could ssh into the Mac and output whatever info you need, with Macs' existing command line tools like system_profiler and ifconfig. Jamf for their part have their own custom binary that's installed on the Mac, though it is also controlled over ssh.
I hope some of that is helpful for an overview. Provide a bit more info about your situation and goals and we can help further.
Posted on 10-20-2016 12:48 PM
This can be done with ARD.
Use the send unix command option:
system_profiler SPHardwareDataType
or
system_profiler SPSoftwareDataType
Posted on 10-20-2016 12:58 PM
^^ Or in the same way, if you don't have ARD, you can SSH into a machine from another Mac or even Windows using Putty, and run the same commands to get the info. But again - you're posting this on the JAMF forums, this is a fundamental option within the JSS console.
Posted on 10-20-2016 01:34 PM
Last I checked BGinfo was for displaying system info on a desktop of a Windows system. I don't use it anymore so maybe that's some new feature I'm not aware of. If you want something like BGinfo to display system info on the desktop of a Mac then you probably want something like GeekTool. Are you sure BGinfo is what you're talking about?
Posted on 10-21-2016 12:37 AM
You can get some very minimal information over bonjour.
# Get OS version. e.g. 10.11 = 15, 10.12 = 16 etc
IPaddress="192.168.0.42"
OSVERS="$(dig @224.0.0.251 -p5353 -x ${IPaddress} | grep "osxvers=" | sed 's|(.*osxvers=)([^"]*)".*|2|')"
# Get Model e.g. iMac12,1
IPaddress="192.168.0.42"
MODEL="$(dig @224.0.0.251 -p5353 -x ${IPaddress} | grep "model=" | sed 's|(.*model=)([^"]*)".*|2|')"