Content-type: text/html
$mcSysInfo = mcSysInfo->New;
# Optional: Specify pathname to sysinfo(1)
$mcSysInfo->Program($SysInfoPath);
# Optional: Use $InFile in place of sysinfo(1)
$mcSysInfo->InputFile($InFile);
# Optional: Limit data to class List
$mcSysInfo->Class(@List);
Please see mcsysinfoc(3) if a C API is required.
When mcSysInfo->Retrieve is called it runs the sysinfo(1) command by default to obtain the system configuration data. The data is parsed into perl(1) objects and made available as members of mcSysInfo (see below for details).
The following is a list of object members available for the mcSysInfo object:
The following mcSysInfo object members contain the system configuration data after mcSysInfo->Retrieve is called:
A special device entry with a key of TOTAL DISK contains the total amount of disk space on the system.
Member | Description | Returns |
Aliases | Aliases | Array |
AltName | AKA Name | Scalar |
Bus | Bus no. of device | Scalar |
Capacity | Capacity (size) of device | Scalar |
ClassType | Class Type | Scalar |
DescList | List of misc descriptions | Array |
DevNum | Device no. on Bus | Scalar |
DevSpec | Device type specific data | varies |
Driver | Driver name | Scalar |
Files | Files | Array |
Ident | Identifier | Scalar |
Model | Model | Scalar |
ModelDesc | Model Description | Scalar |
Name | Name of device | Scalar |
Next | Next peer device | Scalar |
NodeID | Node ID | Scalar |
Part | Part # | Scalar |
Port | Port no. on Bus | Scalar |
Revision | Revision | Scalar |
Serial | Serial # | Scalar |
Slaves | List of child devices | Array |
Speed | Speed of device | Scalar |
Type | Type | Scalar |
Unit | Unit | Scalar |
Vendor | Manufacturer | Scalar |
Member | Description | Returns |
Arch | Architecture | Scalar |
ArchVer | Architecture Version | Scalar |
BitSize | Bit Size | Scalar |
Caches | List of onboard caches | Array |
HasFPU | Has FPU | Scalar |
Man | Manufacturer | Scalar |
Model | Model | Scalar |
Serial | Serial # | Scalar |
Speed | Clock Speed | Scalar |
Stepping | Stepping | Scalar |
Member | Description | Returns |
Name | Name of the cache | Scalar |
Device | Name of device cache is on | Scalar |
Enabled | Is the cache enabled? | Scalar |
Type | The type of cache | Scalar |
Size | The size of the cache (KB) | Scalar |
Speed | Clock Speed | Scalar |
Assoc | Associativety | Scalar |
Lines | # of Lines | Scalar |
LineSize | Line Size | Scalar |
TLB | # TLB | Scalar |
TLBAssoc | TLB Associativety | Scalar |
Socketed | Is cache socketed? | Scalar |
Location | Location relative to CPU | Scalar |
SramType | Type of SRAM | Scalar |
EccType | ECC Type | Scalar |
Mode | Mode of operation | Scalar |
Member | Description | Returns |
Hostname | Host Name | Scalar |
HostAliases | Host Aliases | Array |
HostAddrs | Host Addresses | Array |
HostId | Host ID | Scalar |
Serial | Serial # | Scalar |
ManShort | Manufacturer (Short) | Scalar |
ManLong | Manufacturer (Long) | Scalar |
Man | Manufacturer | Scalar |
Model | Model | Scalar |
PhysMem | Physical Memory | Scalar |
VirtMem | Virtual Memory | Scalar |
RomVer | ROM Version | Scalar |
NumCpu | Number of CPU | Scalar |
CpuType | CPU Type | Scalar |
CpuSpeed | CPU Speed | Scalar |
AppArch | App Architecture | Scalar |
KernArch | Kernel Architecture | Scalar |
KernBits | Kernel Bit Size | Scalar |
OSname | OS Name | Scalar |
OSver | OS Version | Scalar |
OSdist | OS Distribution | Scalar |
KernVer | Kernel Version | Scalar |
BootTime | Boot Time | Scalar |
CurrentTime | Current Time | Scalar |
LibcName | Libc Name | Scalar |
LibcVer | Libc Version | Scalar |
Member | Description | Returns |
Type | NIC Address Type | Scalar |
HostAddr | NIC Host Address | Scalar |
HostName | NIC Host Name | Scalar |
MACaddr | NIC MAC Current Address | Scalar |
MACname | NIC MAC Current Name | Scalar |
FacMACaddr | NIC MAC Factory Address | Scalar |
FacMACname | NIC MAC Factory Name | Scalar |
NetAddr | NIC Network Address | Scalar |
NetName | NIC Network Name | Scalar |
Member | Description | Returns |
Name | Partition Name | Scalar |
DevName | Device Name | Scalar |
DevPath | Device Path | Scalar |
DevPathRaw | Device Path Raw | Scalar |
BaseName | Base Name | Scalar |
Slice | Slice | Scalar |
Num | Partition # | Scalar |
Type | Type | Scalar |
TypeDesc | Type Description | Scalar |
TypeNum | Type Number | Scalar |
UsageStatus | Usage Status | Scalar |
MntName | Mount Name | Scalar |
MntOpts | Mount Options | Array |
Size | Size (MB) | Scalar |
AmtUsed | Amount Used (MB) | Scalar |
SecSize | Sector Size (bytes) | Scalar |
StartSect | Starting Sector | Scalar |
EndSect | Ending Sector | Scalar |
NumSect | Number of Sectors | Scalar |
Member | Description | Returns |
Name | Queue Name | Scalar |
Aliases | Queue Aliases | Array |
Descript | Description of queue | Scalar |
Vendor | Printer Vendor | Scalar |
Model | Printer Model | Scalar |
Proto | Communication Protocol | Scalar |
Device | Pathname to printer device | Scalar |
Server | Name of server printer is on | Scalar |
RemoteQueue | Queue name on Server | Scalar |
Langs | Supported printer languages | Array |
SpoolDir | Spool Directory | Scalar |
MaxJobSize | Max size of each job | Scalar |
DescList | Misc descriptions | Array |
Member | Description | Returns |
Name | Name of package | Scalar |
EntryType | Entry Type | Scalar |
Version | Version | Scalar |
Revision | Revision | Scalar |
Description | Description | Scalar |
DescVerbose | Description (Verbose) | Scalar |
URL | URL | Scalar |
License | License | Scalar |
Copyright | Copyright | Scalar |
Category | Category | Scalar |
SubCategory | Sub-Category | Scalar |
OSname | Requires OS Name | Scalar |
OSversion | Requires OS Version | Scalar |
Arch | Requires Architecture | Scalar |
ISArch | Requires Inst Set Arch | Scalar |
InstDate | Installation Date | Scalar |
BuildDate | Build Date | Scalar |
ProdStamp | Production Stamp | Scalar |
BaseDir | Base Directory | Scalar |
DiskUsage | Disk Usage | Scalar |
FileList | File List | Array |
VendorName | Vendor Name | Scalar |
VendorEmail | Vendor Email | Scalar |
VendorPhone | Vendor Phone # | Scalar |
VendorStock | Vendor Stock # | Scalar |
DescList | List of misc description data | Array |
Master | Name of master package | Scalar |
MasterVer | Version of master | Scalar |
MasterRev | Revisionof master | Scalar |
Slaves | List of child packages | Array |
Next | Next peer package | Scalar |
Member | Description | Returns |
Name | Variable name | Scalar |
Desc | Description o | |