%@ Language=VBScript %> <% Option Explicit %> <% '------------------------------------------------------------------------- ' System Information Status Page ' Copyright (c) Microsoft Corporation. All rights reserved. '------------------------------------------------------------------------- %> <% '------------------------------------------------------------------------- ' Global Variables '------------------------------------------------------------------------- Dim rc Dim page Dim OSName Dim OSVersion Dim OSManufacturer Dim OSSerialNumber Dim SystemManufacturer Dim SystemModel Dim SystemType Dim SystemProcessor Dim SystemTotalMemory Dim SystemBIOS Dim SystemServiceTag Dim DiskSpace Dim NbDisks Dim SOURCE_FILE Const ENABLE_TRACING = TRUE SOURCE_FILE = SA_GetScriptFileName() '------------------------------------------------------------------------- ' Global Form Variables '------------------------------------------------------------------------- '------------------------------------------------------------------------- ' Local Variables '------------------------------------------------------------------------- Dim L_SIPAGE_TITLE Dim L_SIOS_NAME Dim L_SIOS_VERSION Dim L_SIOS_MFCT Dim L_SISYSTEM_MFCT Dim L_SISYSTEM_MODEL Dim L_SISYSTEM_TYPE Dim L_SISYSTEM_PROC Dim L_SISERVICE_TAG Dim L_SIBIOS_VER Dim L_SIPHYSICAL_MEMORY Dim L_SIDISK_SPACE Dim L_SIDISK_SPACE_VALUE Dim L_SIMB 'error messages Dim L_SIWMI_ERROR L_SIPAGE_TITLE =GetLocString("sysinfomsg.dll","4088000A", "") L_SIOS_NAME =GetLocString("sysinfomsg.dll","4088000B", "") L_SIOS_VERSION =GetLocString("sysinfomsg.dll","4088000C", "") L_SIOS_MFCT =GetLocString("sysinfomsg.dll","4088000D", "") L_SISYSTEM_MFCT =GetLocString("sysinfomsg.dll","4088000E", "") L_SISYSTEM_MODEL =GetLocString("sysinfomsg.dll","4088000F", "") L_SISYSTEM_TYPE =GetLocString("sysinfomsg.dll","40880010", "") L_SISYSTEM_PROC =GetLocString("sysinfomsg.dll","40880011", "") L_SISERVICE_TAG =GetLocString("sysinfomsg.dll","40880012", "") L_SIBIOS_VER =GetLocString("sysinfomsg.dll","40880013", "") L_SIPHYSICAL_MEMORY =GetLocString("sysinfomsg.dll","40880014", "") L_SIDISK_SPACE =GetLocString("sysinfomsg.dll","40880015", "") L_SIWMI_ERROR =GetLocString("sysinfomsg.dll","C0880018", "") '====================================================== ' Entry point '====================================================== ' ' Create Page rc = SA_CreatePage( L_SIPAGE_TITLE, "", PT_AREA, page ) ' ' Show page rc = SA_ShowPage( page ) Public Function OnClosePage(ByRef PageIn, ByRef Reserved) OnClosePage = TRUE End Function '====================================================== ' Web Framework Event Handlers '====================================================== '--------------------------------------------------------------------- ' Function: OnInitPage ' ' Synopsis: Called to signal first time processing for this page. Use this method ' to do first time initialization tasks. ' ' Returns: TRUE to indicate initialization was successful. FALSE to indicate ' errors. Returning FALSE will cause the page to be abandoned. ' '--------------------------------------------------------------------- Public Function OnInitPage(ByRef PageIn, ByRef EventArg) If ( ENABLE_TRACING ) Then Call SA_TraceOut(SOURCE_FILE, "OnInitPage") End If OnInitPage = GetSystemInfo() End Function '--------------------------------------------------------------------- ' Function: OnServePageletPage ' ' Synopsis: Called when the page needs to be served. Use this method to ' serve content. ' ' Returns: TRUE to indicate no problems occured. FALSE to indicate errors. ' Returning FALSE will cause the page to be abandoned. ' '--------------------------------------------------------------------- Public Function OnServeAreaPage(ByRef PageIn, ByRef EventArg) If ( ENABLE_TRACING ) Then Call SA_TraceOut(SOURCE_FILE, "OnServePageletPage") End If %>
<%=L_SIOS_NAME%> | <%=OSName%> |
<%=L_SIOS_VERSION%> | <%=OSVersion%> |
<%=L_SIOS_MFCT%> | <%=OSManufacturer%> |
<%=L_SISYSTEM_MFCT%> | <%=SystemManufacturer%> |
<%=L_SISYSTEM_MODEL%> | <%=SystemModel%> |
<%=L_SISYSTEM_TYPE%> | <%=SystemType%> |
<%=L_SISYSTEM_PROC%> | <%=SystemProcessor%> |
<%=L_SISERVICE_TAG%> | <%=SystemServiceTag%> |
<%=L_SIBIOS_VER%> | <%=SystemBIOS%> |
<%=L_SIPHYSICAL_MEMORY%> | <%=SystemTotalMemory%> |
<%=L_SIDISK_SPACE%> | <%=DiskSpace%> |