×
Menu
Index

GETSYSINFO Subroutine

 
Usage:
si = GETSYSINFO()
 
Description:
Returns information about the current system. The variable contains the following members: BIOSDate, BIOSVendor, BIOSVersion, SysFamily, SysManufacturer, SysProductName, SysSKU, SysVersion, SysUUID. TBSVER 6 adds two additional members: BIOSFeatures1, BIOSFeatures2. TBSVER 7 adds CPUCount. For each CPUCount an array (1 based) is provided as CPU[n] with the following members: ID, Cores, CoresEnabled, Threads, and Features. Note that the Core and Feature information may not be reported by the system; however the Threads member is valid if Cores is non-zero. The ID contains the contents of cpuid leaf 1 EAX (low) and EDX (high)values.
 
BIOSFeatures1
BIOSFeatures2
CPUFeatures
Bit
Meaning if Set
Bit
Meaning if Set
Bit
Meaning if Set
4
ISA supported
0
ACPI supported
2
64-bit capable
5
MCA supported
1
USB legacy supported
3
Multi-Core
6
EISA supported
2
AGP supported
4
Hardware thread
7
PCI supported
3
I2O boot supported
5
Execute protection
8
PC Card (PCMCIA) supported
4
LS-120 boot supported
6
Enhanced virtualization
9
Plug and Play supported
5
ATAPI ZIP supported
7
Power/Performance control
10
APM supported
6
1394 boot supported
 
 
11
BIOS is upgradable (Flash)
7
Smart battery supported
 
 
12
BIOS shadowing allowed
8
BBS is supported
 
 
13
VL-VESA supported
9
Fn key network boot supported
 
 
14
ESCD available
10
Targeted content distribution
 
 
15
Boot from CD supported
11
UEFI supported
 
 
16
Selectable boot is supported
12
Virtual Machine
 
 
17
BIOS ROM is socketed
 
 
 
 
18
Boot from PC Card (PCMCIA) supported
 
 
 
 
19
EDD supported
 
 
 
 
 
 
Example:
sub main()
 
 si=getsysinfo()
 if (si) then
   printl("BIOS Date: ", si.biosdate)
   printl("BIOS Vendor: ", si.biosvendor)
   printl("BIOS Version: ", si.biosversion)
   printl("System Family: ", si.sysfamily)
   printl("System Manufacturer: ", si.sysmanufacturer)
   printl("System Product Name: ", si.sysproductname)
   printl("System SKU: ", si.syssku)
   printl("System Version: ", si.sysversion)
   printl("System UUID: ", si.sysuuid)
 else
   printl("Unable to obtain the system information")
 end if
 
end sub