![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 20.05.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Chcialbym prosic o pomoc poniewaz robie maly projekt. Ma on na celu wyswietlanie za pomoca wykresu zrobionego w technologii AJAX obciazenia CPU i ilosci zajetej pamieci RAM. Bardzo bym prosil o pomoc poniewaz nie wiem jak pobrac te dane? Jesli ktos by mial gotowy skrypt php pobierajacy takie dany bylbym naprawde wdzieczny.. dziekuje za pomoc pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 77 Pomógł: 0 Dołączył: 29.05.2006 Skąd: /dev/null Ostrzeżenie: (0%) ![]() ![]() |
Do rozwiązań ze sprzętem można też wykorzstać VBScript połączony z technolgią WMI i osadzić to bez problemu w kodzie xhtml. Zapytania są podobne do standardów SQL. Oczywiście głównym ograniczeniem jest fakt iż jest to technologia wyłącznie Microsoftu.
Przykładowe zapytanie dotyczące informacji o procesorze: Kod Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor") Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor") jest ono kompatybilne z użyciem w wierszu poleceń komendy: wmic np. Kod wmic:root\cli>cpu
AddressWidth Architecture Availability Caption ConfigManagerErrorCode ConfigManagerUserConfig CpuStatus CreationClassName CurrentClockSpeed CurrentVoltage DataWidth Description DeviceID ErrorCleared ErrorDescription ExtClock Family InstallDate L2CacheSize L2CacheSpeed L3CacheSize L3CacheSpeed LastErrorCode Level LoadPercentage Manufacturer MaxClockSpeed Name NumberOfCores NumberOfLogicalProcessors OtherFamilyDescription PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProcessorId ProcessorType Revision Role SocketDesignation Status StatusInfo Stepping SystemCreationClassName SystemName UniqueId UpgradeMethod Version VoltageCaps 32 0 3 x86 Family 6 Model 14 Stepping 8 1 Win32_Processor 1067 33 32 x86 Family 6 Model 14 Stepping 8 CPU0 133 1 2048 0 0 6 GenuineIntel 1733 Genuine IntelŽ CPU T2250 @ 1.73GHz 2 2 FALSE BFE9FBFF000006E8 3 3592 CPU U2E1 OK 3 8 Win32_ComputerSystem LUKI-PC 4 Model 14, Stepping 8 2 wmic:root\cli>cpu AddressWidth Architecture Availability Caption ConfigManagerErrorCode ConfigManagerUserConfig CpuStatus CreationClassName CurrentClockSpeed CurrentVoltage DataWidth Description DeviceID ErrorCleared ErrorDescription ExtClock Family InstallDate L2CacheSize L2CacheSpeed L3CacheSize L3CacheSpeed LastErrorCode Level LoadPercentage Manufacturer MaxClockSpeed Name NumberOfCores NumberOfLogicalProcessors OtherFamilyDescription PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProcessorId ProcessorType Revision Role SocketDesignation Status StatusInfo Stepping SystemCreationClassName SystemName UniqueId UpgradeMethod Version VoltageCaps 32 0 3 x86 Family 6 Model 14 Stepping 8 1 Win32_Processor 1067 33 32 x86 Family 6 Model 14 Stepping 8 CPU0 133 1 2048 0 0 6 GenuineIntel 1733 Genuine IntelŽ CPU T2250 @ 1.73GHz 2 2 FALSE BFE9FBFF000006E8 3 3592 CPU U2E1 OK 3 8 Win32_ComputerSystem LUKI-PC 4 Model 14, Stepping 8 2 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 04:41 |