home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2000 April
/
VPR0004B.BIN
/
DRIVER
/
COMPAQ
/
SP12255
/
sp12255.exe
/
DMWEBC1.CAB
/
CFSYSINF.TPL
< prev
next >
Wrap
Text File
|
1999-04-16
|
10KB
|
343 lines
<HTML>
<!-- $Id: cf_sysinfo.tmpl 2.2 1998/01/06 20:12:13 cboeker Exp $ -->
<!-- Copyright (C) 1997 Compaq Computer Corporation -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
<!#TABLES.JS>
//-->
</SCRIPT>
<!#CFSYSINF.JS>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!*, DMTF|FRU|*, 1, FRUIndex>
<!*, DMTF|Operational State|*, 1, OsIndex>
writeTableLabel(sGeneralInformation);
writeTableHead();
<!*, DMTF|ComponentID|*, 2, Newprodname, DMTF|Processor|*>;
<!*, DMTF|ComponentID|*, 3, Oldprodname, DMTF|Processor|*>;
if (Newprodname == "Desktop Personal Computer" ||
Newprodname == "Portable Personal Computer" ||
Newprodname == "Notebook Personal Computer" ||
Newprodname == "Tower Personal Computer" ||
Newprodname == "Mini-tower Personal Computer" ||
Newprodname == "Rack-mount Personal Computer" ||
Newprodname == "Small Form Factor Personal Computer" ||
Newprodname == "Personal Computer")
prodname = Oldprodname;
else
prodname = Newprodname;
finalProdName = sPC;
if (prodname[0] != null && prodname[0] != "")
finalProdName = prodname[0];
writeSingleTableRow(sProduct + ":", finalProdName);
OSName = "<!*, DMTF|Operating System|*, 2>";
OSVer = "<!*, DMTF|Operating System|*, 3>";
writeSingleTableRowOrBlank(sOs + ":", OSName);
writeSingleTableRowOrBlank("", OSVer);
<!*, DMTF|System Slot*, 2, ExpansionBus>
slotEISA = false;
slotISA = false;
slotPCI = false;
for (i = 0; i < ExpansionBus.length; i++)
{
if (ExpansionBus[i] == 2 || ExpansionBus[i] == 3)
slotISA = true;
else if (ExpansionBus[i] == 4 || ExpansionBus[i] == 5)
slotEISA = true;
if (ExpansionBus[i] == 16 || ExpansionBus[i] == 17)
slotPCI = true;
}
ExpBus = ""; // Default
if (slotISA == true)
ExpBus = "ISA";
if (slotEISA == true)
if (ExpBus != "")
ExpBus = ExpBus + "/EISA";
else
ExpBus = "EISA";
if (slotPCI == true)
if (ExpBus != "")
ExpBus = ExpBus + "/PCI";
else
ExpBus = "PCI";
writeSingleTableRow(sExpansionBus + ":", ExpBus);
writeTableTail();
document.write("<BR>");
writeTableLabel(sDescription);
writeTableHead();
sysname = "<!*, DMTF|General Information|*, 1>";
writeSingleTableRowOrBlank(sSystemName + ":", sysname);
bootTime = "<!*, DMTF|General Information|*, 5>";
if (bootTime != "")
{
year = bootTime.substring(0, 4);
month = bootTime.substring(4, 6);
day = bootTime.substring(6, 8);
hour = bootTime.substring(8, 10);
minute = bootTime.substring(10, 12);
rest = bootTime.substring(12, bootTime.length);
writeSingleTableRow(sSystemBootupTime + ":", year + "/" + month + "/" + day + " " + hour + ":" + minute + ":" + rest);
}
else
{
writeSingleTableRow(sSystemBootupTime + ":", "");
}
contactInfo = "<!*, DMTF|General Information|*, 3>";
if (contactInfo == "")
writeSingleTableRow(sContactInformation + ":", sNA);
else
writeSingleTableRow(sContactInformation + ":", contactInfo);
syslocation = "<!*, DMTF|General Information|*, 2>";
if (syslocation =="")
writeSingleTableRow(sLocation + ":", sNA);
else
writeSingleTableRow(sLocation + ":", syslocation);
writeTableTail();
document.write("<BR>");
<!-- ASSET CONTROL INFORMATION -->
writeTableLabel(sAssetControlInformation);
writeTableHead();
writeColumnTableHeaderRow(sDeviceType, sModel, sSerialNumber, sAssetTag);
<!*, DMTF|Physical Container Global Table|*, 1, globalContainer>;
<!*, DMTF|Physical Container Global Table|*, 2, assetTag>;
<!*, DMTF|ComponentID|*, 2, monitorProduct, DMTF|Monitor Resolutions|*>;
<!*, DMTF|ComponentID|*, 4, monitorSerNum, DMTF|Monitor Resolutions|*>;
PCType = globalContainer[0];
// Display System asset information
<!*, DMTF|ComponentID|*, 4, cpqSysSerialNum, DMTF|Processor|*>;
if (cpqSysSerialNum[0] == null)
cpqSysSerialNum[0] = "";
DigitalSysSerialNum = "";
DigitalSysSerialNum = "<!*, Digital|System Board|*, 1>";
if (DigitalSysSerialNum != "" && DigitalSysSerialNum != null)
cpqSysSerialNum[0] = DigitalSysSerialNum;
if (assetTag[0] == null)
assetTag[0] = "";
writeColumnTableDataRow("System", finalProdName, cpqSysSerialNum[0], assetTag[0]);
// Display Monitor asset information
for(i = 0; i < monitorProduct.length; i++)
{
if ( (monitorProduct[i] != "") && (monitorSerNum[i] != "") )
writeColumnTableDataRow("Monitor", monitorProduct[i], monitorSerNum);
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
// Display IDE Disk asset information
<!*, DMTF|Disks|*, 3, dmiDriveIntType>
<!*, DMTF|Disks|*, 1, dmiDriveType>
<!*, DMTF|Disks|*, 20, DiskFRUIndex>
<!*, DMTF|Processor|*, 8, CpuFruIndex>
<!*, DMTF|FRU|*, 7, FRUSerialNumber>
<!*, DMTF|FRU|*, 5, FRUModel>
for(i = 0; i < dmiDriveType.length; i++)
{
if (dmiDriveIntType[i] == "IDE" || dmiDriveIntType[i] == "Enhanced ATA/IDE")
{
if (DiskFRUIndex[i] > 0)
{
ActualFRUIndex = -1;
for (k = 0; k < FRUIndex.length; k++)
{
if (DiskFRUIndex[i] == FRUIndex[k])
{
ActualFRUIndex = k;
break;
}
}
if (ActualFRUIndex >= 0)
if (FRUSerialNumber[ActualFRUIndex] != "" && FRUModel[ActualFRUIndex] != "")
writeColumnTableDataRow(sIDEDisk, FRUModel[ActualFRUIndex], FRUSerialNumber[ActualFRUIndex] );
}
}
}
// Display SCSI Disk asset information
for(i = 0; i < dmiDriveType.length; i++)
{
if ( (dmiDriveIntType[i] == "SCSI" ) )
{
if (DiskFRUIndex[i] > 0)
{
ActualFRUIndex = -1;
for (k = 0; k < FRUIndex.length; k++)
{
if (DiskFRUIndex[i] == FRUIndex[k])
{
ActualFRUIndex = k;
break;
}
}
if (ActualFRUIndex >= 0)
if (FRUSerialNumber[ActualFRUIndex] != "" && FRUModel[ActualFRUIndex] != "")
writeColumnTableDataRow(sSCSIDisk, FRUModel[ActualFRUIndex], FRUSerialNumber[ActualFRUIndex]);
}
}
}
// Display CPU asset information
//
for(i = 0; i < CpuFruIndex.length; i++)
{
if (CpuFruIndex[i] > 0)
{
ActualFRUIndex = -1;
for (k = 0; k < FRUIndex.length; k++)
{
if (CpuFruIndex[i] == FRUIndex[k])
{
ActualFRUIndex = k;
break;
}
}
if (ActualFRUIndex >= 0)
if (FRUSerialNumber[ActualFRUIndex] != "" && FRUModel[ActualFRUIndex] != "")
writeColumnTableDataRow(sCPU, FRUModel[ActualFRUIndex], FRUSerialNumber[ActualFRUIndex]);
}
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
// Display Memory Assets for non-Portables (Portables do not support ECC)
//
// BUGBUG PCType is an integer, not a string!
//
if (PCType != "Portable" && PCType != "LapTop" && PCType != "Notebook")
{
<!*, DMTF|Memory Device|*, 22, memoryFRU>;
<!*, DMTF|Memory Device|*, 5, memorySize>;
<!*, DMTF|Memory Device|*, 6, memoryFormFactor>;
for(i = 0; i < memoryFRU.length; i++)
{
if (memoryFRU[i] > 0)
{
ActualFRUIndex = -1;
for (k = 0; k < FRUIndex.length; k++)
{
if (memoryFRU[i] == FRUIndex[k])
{
ActualFRUIndex = k;
break;
}
}
if (ActualFRUIndex >= 0)
{
if (FRUSerialNumber[ActualFRUIndex] != "" )
{
if (FRUModel[ActualFRUIndex] != "")
MemoryModel = FRUModel[ActualFRUIndex];
else
{
// Fabricate something reasonable. 1024*1024 = 1048576
MemoryModel = (memorySize[i] / 1048576) + "MB " + memoryFormFactor[i];
}
writeColumnTableDataRow(sMemory, MemoryModel, FRUSerialNumber[ActualFRUIndex]);
}
}
}
}
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
// Display PC Card assets
<!*, DMTF|System Slot|*, 6, slotCategory>
<!*, DMTF|System Slot|*, 4, slotUsage>
<!*, DMTF|System Slot|*, 5, slotDescription>
for(i = 0; i < slotCategory.length; i++)
{
// Is the slot a PCCARD slot that is in use?
if ((slotCategory[i] == "PCMCIA Slot" ) && (slotUsage[i] == "In Use"))
writeColumnTableDataRow(sPCCard, slotDescription[i]);
// TODO: Add PC Card Asset Number and Serial Number when supported
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
// Display Portable-specific information
if (PCType == "Portable" || PCType == "LapTop" || PCType == "Notebook")
{
<!*, DMTF|Portable Battery|*, Portable Battery Device Name, batteryModel>
<!*, DMTF|Portable Battery|*, Portable Battery Serial Number, batterySerNum>
<!*, DMTF|Physical Container Global Table|*, FRU Group Index, globalContainerFRU>;
<!*, DMTF|FRU|*, Asset Tag, FRUAssetTag>
// Display Battery asset information
for(i = 0; i < batteryModel.length; i++)
{
if ((batterySerNum[i] != "") && (batteryModel[i] != ""))
writeColumnTableDataRow(sBattery, batteryModel[i], batterySerNum[i]);
}
// Display Docking Station asset information
for(i = 0; i < globalContainer.length; i++)
{
// check if it is docked before displaying
if (globalContainer[i] == "Docking Station")
{
dockingStationSerialNum = FRUSerialNumber[globalContainerFRU[i]-1];
dockingStationModel = FRUModel[globalContainerFRU[i]-1];
if ((globalContainerFRU[i]-1) > FRUAssetTag.length)
dockingStationAssetTag = "";
else
dockingStationAssetTag = FRUAssetTag[globalContainerFRU[i]-1];
writeColumnTableDataRow(sDockingStation, dockingStationModel,
dockingStationSerialNum, dockingStationAssetTag);
}
}
}
writeTableTail();
</SCRIPT>
</HTML>