Questions tagged [system-profiler]

Since different system profilers exist for different operating systems, the tag should be used in combination with the tag specifying the OS.

System profiler: A system profiler is a program that can provide detailed information about the software installed and hardware attached to a computer.

22 questions
8
votes
1 answer

Finding usb drive paths in Mac OS 10.4

The system_profiler command in Mac OS 10.5 shows the mounted volume paths for the associated USB drives. In 10.4, however, they are not shown. Any ideas on how I can get the mount location for USB drives in 10.4?
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
6
votes
4 answers

Get Macbook screen size from terminal/bash

Does anyone know of any possible way to determine or glean this information from the terminal (in order to use in a bash shell script)? On my Macbook Air, via the GUI I can go to "About this mac" > "Displays" and it tells me: Built-in Display,…
BSUK
  • 692
  • 1
  • 12
  • 28
3
votes
3 answers

What is Hard Faults in XPerf

I'm trying to profile a system with XPerf. And see that performance problems occurs when there is activity in HardFaults ! But what I cant figure out and find in google what are these Hard Faults that xperf shows. What are they related to? What…
MajesticRa
  • 13,770
  • 12
  • 63
  • 77
2
votes
2 answers

NSTask output buffer size issue (Running SPApplicationsDataType command )

Try to read some information from system profiler. For this purpose i m running some terminal line commands with NSTask. If i run some command which output not too big there is no problem.(For example : SPInstallHistoryDataType) But if i run…
2
votes
1 answer

What python data structure and parser should I use with Apple's system_profiler?

My problem is one like a simulated problem from http://my.safaribooksonline.com/0596007973/pythoncook2-CHP-10-SECT-17 which eventually made its way into Python Cookbook, 2nd Edition using an outdated xpath method from 2005 that I haven't been able…
Eccent
1
vote
1 answer

Python subprocess check_output return different result than running directly in terminal

Running same command directly in terminal returns a different output than running via subprocess.check_output. Anyone know what is causing this? ➜ /Users/okoo system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name:…
OLIVER.KOO
  • 5,654
  • 3
  • 30
  • 62
1
vote
1 answer

Accessing system_profiler plist items using plistlib

I'm trying to access the serial_number key of the first _items array in the generated plist:
rynoknows
  • 93
  • 1
  • 1
  • 8
1
vote
0 answers

Get storage device size within macOS sandboxed app bundle?

I am trying to get disk information from a sandboxed macOS app bundle. system_profiler SPSerialATADataType SPNVMeDataType will run in both sandboxed and non-sandboxed. However their outputs are slightly different. I am wondering how from within the…
1
vote
0 answers

macOS dynamic rename from system_profiler details

I am looking to write a small script to dynamically rename macOS devices from system_profiler information but am new to bash and am not sure my approach is correct or best practice. I have written a script (which I know doesn't work) but would like…
1
vote
2 answers

Obtaining a Mac's System Profiler data from shell

How can I retrieve the information shown in the Mac's System Profiler app programatically? I'm actually interested in the USB section if that matters.
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
0
votes
1 answer

Need help using GeekTool with system_profiler and networksetup

Aloha everyone, I have created a small bash shell script which I wanted to use with GeekTool, but I have experienced different results using the same script on my iMac (11,1) and my MacBook Pro (8,3). I'm pulling network data using both…
iBud
  • 61
  • 1
  • 7
0
votes
1 answer

bash script checking for installed fonts from list in an array and for loop to do commands

Updated with working code I am trying to check for installed fonts listed in ${fontArray} one by one and add any that are not found to a new array ${missingFonts} that I can print later as part of a much longer "post-build health check" run on each…
0
votes
1 answer

Differences in the Mac system_profiler

I am using system_profiler to view the USB hardware details connected to a Mac, however there are some differences between running this on Mac OS X 10.4 and 10.5. For example, in 10.5 the keys for various attributes have an alphabet letter prefix.…
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
0
votes
1 answer

Swift-Problem discovered when creating a helper

When i try to create a helper for an application that retrieve system software and hardware details using system_profiler command i got the following error. Response from XPC service: HELLO XPC Response from XPC service:…
biju
  • 15
  • 7
0
votes
1 answer

Mongodb see previous database queries which removed any document from my database

I was reading about Mongodb System Profiler where it logs all mongodb queries. But is there any query by which i can see past queries which removed any document from my database like findandremove. Below is the query I tried but it logged all past…
Sudhanshu Gaur
  • 7,486
  • 9
  • 47
  • 94
1
2