MacOSX agent: command suggest
Some commands to obtain best report of macosx client (maybe you know it)
OCS don't make difference between MacOSX 10.5 and 10.6 ... is MacOSX.
It don't report correctly CPU (as windows and unix agent)
it don't report ram/slots, harddrive, partition non hfs (as ntfs), partitions name (only mount point), smc revision, screen resolution
It report all applications but applications in /System and /Library don't need to be reported... so, in my case, it report 347 applications instead of 117 ...
-- MacOSX Version --
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549
-- CPU informations -
$ sysctl -a | awk '/hw.model|
hw.machine = i386
hw.model = MacBookPro2,2
hw.ncpu = 2
hw.ncpu: 2
hw.cpu64bit_
hw.memsize: 2147483648
machdep.
-- Swap --
$ sysctl -n vm.swapusage
total = 64.00M used = 0.00M free = 64.00M (encrypted)
-- Uptime --
$ sysctl -n kern.boottime
{ sec = 1316764029, usec = 0 } Fri Sep 23 09:47:09 2011
-- Printers
$ system_profiler SPPrintersDataType
Printers:
Srv informatique:
Status: Idle
Print Server: Local
Driver Version: 10.4
Default: Yes
URI: socket:
PPD: HP LaserJet 4000 Series
PPD File Version: 16.1
PostScript Version: (2014.108) 1
CUPS Version: 1.4.7 (cups-218.31)
Fax support: No
Scanning support: No
Scanning app: -
Scanning app (bundleID path): -
Scanner UUID: -
...
-- Partitions --
$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_
1: EFI 209.7 MB disk0s1
2: Apple_HFS System 50.0 GB disk0s2
3: Apple_HFS Data 49.9 GB disk0s3
4: Microsoft Basic Data BOOTCAMP 19.7 GB disk0s4
$ diskutil info /dev/disk0
Device Identifier: disk0
Device Node: /dev/disk0
Part Of Whole: disk0
Device / Media Name: Hitachi HTS541612J9SA00 Media
Volume Name:
Escaped with Unicode:
Mounted: No
File System: None
Partition Type: GUID_partition_
Bootable: Not bootable
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Total Size: 120.0 GB (120034123776 Bytes) (exactly 234441648 512-Byte-Blocks)
Volume Free Space: Not Applicable
Read-Only Media: No
Read-Only Volume: Not applicable (no filesystem)
Ejectable: No
Whole: Yes
Internal: Yes
OS 9 Drivers: No
Low Level Format: Not Supported
-- More (you already use) --
$ system_profiler -listDataTypes
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by