Section 12.2. System Profiler


12.2. System Profiler

The System Profiler (/Applications/Utilities) gives you a great deal of insight into the kind of hardware that is installed and connected to your system and the software it's

Figure 12-1. The About This Mac panel


running. It gives fast answers to the questions: "How much memory do I have?" or "What version of Safari do I have installed?" In fact, it does such a thorough job that a System Profiler report is often the first thing Apple's support folks will ask you for when you have a problem or report a bug. Figure 12-2 shows what System Profiler looks like when you first launch it.

System Profiler has another face as well. The command-line version, /usr/sbin/system_profiler, is discussed later in this chapter.


The column on the left side is divided into three principal parts:


Hardware

Gives a detailed listing of the hardware in and connected to your system including memory, PCI and AGP cards, ATA and SCSI devices (such as hard drives), USB- and FireWire-connected devices, AirPort card, and modem. Each item displays all the information known to the system about the device such as its model number and firmware revisions.


Network

Gives a complete list of all the network connections on your machine and the configuration information, such as IP address, subnet mask, router address, and Ethernet address for each connection.

Figure 12-2. The System Profiler main window


Software

Provides a detailed list of the applications in the /Applications folder as well as the frameworks and kernel extensions on your system. Each item includes the name of the software component, its version number, and the date on which it was last modified.

The amount of information that the System Profiler gives you access to can be overwhelming. Thankfully, the interface does a much better job than its predecessor did in previous versions of Mac OS X by letting you drill down to the information you want to see.

12.2.1. Creating a System Profile Report

Occasionally, you may be asked by Apple or some other software company to send a report from System Profiler so they can see the details of your system and troubleshoot a problem for you.

There are a variety of ways to generate this information:

  • Save an XML document containing all the information in a format that can be opened later with the System Profiler application. To do this, use the same File Save (-S) command that you would in any other application. This is Apple's preferred format for receiving system profiles.

Refreshing the System Profiler View

A frequent "problem" that people have with System Profiler is when they connect or disconnect a USB or FireWire device and don't see a change in the System Profiler window. This is because System Profiler doesn't continuously poll the system to detect changes as they happen. Once it has collected the data, its job is to display it. If you have a System Profiler window open and make changes to your hardware configuration that you want to see, use the View Refresh (-R) menu item.


  • Export the data to a plain text or rich text file (RTF) using the File Export menu.

  • Print PDF Save as PDF.

To vary the detail level of the information in the report (as well as the size of the files generated), you can choose the level of detail you want to display using the View menu and then save, export, or print the report. When sending problem reports to Apple, it is best to err on the side of sending too much information rather than too little. However, you might want to be careful if you are actually printing out the reportsa full, extended report can run upward of 75 pages.

12.2.1.1. System Profiler on the command line

The system_profiler command-line tool allows you to get the same information from the command line that System Profiler gives you access to. When run with no arguments, system_profiler generates a full report, the beginning of which is shown in Example 12-1.

Example 12-1. The start of output from system_profiler
 $ system_profiler Hardware:     Hardware Overview:       Machine Name: PowerBook G4 12"       Machine Model: PowerBook6,2       CPU Type: PowerPC G4  (1.1)       Number Of CPUs: 1       CPU Speed: 1 GHz       L2 Cache (per CPU): 512 KB       Memory: 768 MB       Bus Speed: 133 MHz       Boot ROM Version: 4.7.5f1       Serial Number: UV40605TQ77 ...

Filing a Bug with Apple

One of the most valuable things you can do when something goes wrong with Mac OS Xwhich is a heck of a lot more productive than just complaining to your friendsis to file a bug with Apple. The easiest way to send feedback is to use the form on Apple's web site at http://www.apple.com/macosx/feedback. Even better is to use the Apple Developer Connection's bug report site at http://bugreport.apple.com. You'll have to have an ADC membership (free for the lowest tier) to use this form, but in return, you'll be able to track the progress of your issue after you submit it.


The full report that system_profiler outputs is quite long. You might want to save it as a file so that you can view it using a text editor, or so that you can send it to Apple or another software vendor as part of a bug report. To do this, use the following command:

     $ system_profiler > ~/Desktop/MySystemProfile.txt 

You could take this tip a step forward and add it to your crontab (see Chapter 13) so that you always have an up-to-date inventory of your system. System administrators can use this tip to keep track of machines across their networks.


To limit the amount of information that system_profiler generates, you can pass a data type as an argument. You can get the list of data types for your system by using the -listDataTypes argument, as shown in Example 12-2.

Example 12-2. Listing the data types that system_profiler can report
 $ system_profiler -listDataTypes Available Datatypes: SPHardwareDataType SPNetworkDataType SPSoftwareDataType SPParallelATADataType SPAudioDataType SPBluetoothDataType SPDiagnosticsDataType SPDiscBurningDataType SPFibreChannelDataType SPFireWireDataType SPDisplaysDataType SPMemoryDataType SPPCCardDataType SPPCIDataType SPParallelSCSIDataType SPPowerDataType SPPrintersDataType SPSerialATADataType SPUSBDataType SPAirPortDataType SPFirewallDataType SPNetworkLocationDataType SPModemDataType SPNetworkVolumeDataType SPApplicationsDataType SPExtensionsDataType SPFontsDataType SPFrameworksDataType SPLogsDataType SPPrefPaneDataType SPStartupItemDataType

Armed with this information, if you wanted to see the status of the network connections of your Mac, you could use the SPNetworkDataType argument, as shown in Example 12-3.

Example 12-3. Using system_profiler to get network interface data
 $ system_profiler SPNetworkDataType Network:     Built-in Ethernet:       Type: Ethernet       Hardware: Ethernet       BSD Device Name: en0       Has IP Assigned: Yes       IPv4 Addresses: 192.168.79.60       IPv4:           Addresses: 192.168.79.60           Configuration Method: DHCP           DHCP Client ID: ronin           Interface Name: en0           Router: 192.168.79.1           Subnet Masks: 255.255.255.0       DNS:           Server Addresses: 192.168.79.5, 192.168.79.7       DHCP Server Responses:           Domain Name Servers: 192.168.79.5,192.168.79.7           Lease Duration (seconds): 0           DHCP Message Type: 0x05           Routers: 192.168.79.1           Server Identifier: 192.168.79.5           Subnet Mask: 255.255.255.0       Proxies:           FTP Proxy Enabled: No           FTP Passive Mode: Yes           Gopher Proxy Enabled: No           HTTP Proxy Enabled: No           HTTPS Proxy Enabled: No           RTSP Proxy Enabled: No           SOCKS Proxy Enabled: No       Ethernet:           MAC Address: 00:0a:95:a9:ba:2a           Media Options: Full Duplex           Media Subtype: 100baseTX




Running Mac OS X Tiger
Running Mac OS X Tiger: A No-Compromise Power Users Guide to the Mac (Animal Guide)
ISBN: 0596009135
EAN: 2147483647
Year: 2004
Pages: 166

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net