این
چند خط برای فهمیدن مشخصات بردازنده(ها) است.
این خطوط را کپی کنید و در یک فایل Aspx در هاست خود
ذخیره کنید، پس از اجرای آن مشخصات پردازندهی سرور رو میبینید.
از اینجا هم میتوانید اینو دریافت کنید.
<%@ Page %>
<Script
Runat="Server">
Function GetCpuInfo()
On Error Resume Next
Dim strComputer =
"."
Dim objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
Dim colItems = objWMIService.ExecQuery("Select * from Win32_Processor")
Dim objItem
Dim res as string=""
res += "<font face=""Verdana"">"
res += "Server CPU(s):<br/>"
For Each objItem in colItems
res += "Address Width: " & objItem.AddressWidth
res += "<br/>"
res += "Architecture: " & objItem.Architecture
res += "<br/>"
res += "Availability: " & objItem.Availability
res += "<br/>"
res += "CPU Status: " & objItem.CpuStatus
res += "<br/>"
res += "Current Clock Speed: " & objItem.CurrentClockSpeed
res += "<br/>"
res += "Data Width: " & objItem.DataWidth
res += "<br/>"
res += "Description: " & objItem.Description
res += "<br/>"
res += "Device ID: " & objItem.DeviceID
res += "<br/>"
res += "External Clock: " & objItem.ExtClock
res += "<br/>"
res += "Family: " & objItem.Family
res += "<br/>"
res += "L2 Cache Size: " & objItem.L2CacheSize
res += "<br/>"
res += "L2 Cache Speed: " & objItem.L2CacheSpeed
res += "<br/>"
res += "Level: " & objItem.Level
res += "<br/>"
res += "Load Percentage: " & objItem.LoadPercentage
res += "<br/>"
res += "Manufacturer: " & objItem.Manufacturer
res += "<br/>"
res += "Maximum Clock Speed: " & objItem.MaxClockSpeed
res += "<br/>"
res += "Name: " & objItem.Name
res += "<br/>"
res += "PNP Device ID: " & objItem.PNPDeviceID
res += "<br/>"
res += "Processor ID: " & objItem.ProcessorId
res += "<br/>"
res += "Processor Type: " & objItem.ProcessorType
res += "<br/>"
res += "Revision: " & objItem.Revision
res += "<br/>"
res += "Role: " & objItem.Role
res += "<br/>"
res += "Socket Designation: " & objItem.SocketDesignation
res += "<br/>"
res += "Status Information: " & objItem.StatusInfo
res += "<br/>"
res += "Stepping: " & objItem.Stepping
res += "<br/>"
res += "Unique Id: " & objItem.UniqueId
res += "<br/>"
res += "Upgrade Method: " & objItem.UpgradeMethod
res += "<br/>"
res += "Version: " & objItem.Version
res += "<br/>"
res += "Voltage Caps: " & objItem.VoltageCaps
res += "<br/>"
res += "<br/>"
Next
res += "</font>"
Return res
End Function
</Script>
<html>
<head>
<title>Server Cpu(s) Information</title></head>
<body> <%=GetCpuInfo()%>
</body>
</html>