Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are elaborated.
As shown in Figure 1, for according to the described a kind of based on network terminal resource management method schematic flow sheet of embodiments of the invention, at first, obtain the unique identification information and the current resource information of the terminal in the network, and be sent to server (step 101); Then, server is according to the unique identification information and the current resource information of the terminal that receives, compares (step 102) with the standard resource information of the counterpart terminal that prestores; If comparative result does not meet the standard of described standard resource information, then carry out alarm (step 103).
Wherein, described standard resource information can comprise the information that must exist, if comparative result is to lack the described information that must exist in the current resource information, thinks that then comparative result does not meet described standard.
Wherein, described standard resource information can also comprise forbids the information that exists, if comparative result is to comprise the described information that exists of forbidding in the current resource information, thinks that then comparative result does not meet described standard.
By the tactic arrangement of above-mentioned standard resource information, both can realize the monitoring scheme that each terminal resource in the whole network is customized.
And described unique identification information can comprise terminal name, hardware sign indicating number, and/or IP address of terminal etc.
According to embodiments of the invention, the current resource information that can in time monitor can comprise the current installed hardware of described terminal, software and/or fileinfo.According to above-mentioned tactic arrangement, can limit some terminal in advance and must have which resource information, for example the hardware asset information of dispatching from the factory of terminal the standard resource information; And do not allow simultaneously to exist in this terminal which resource information, QQ client-side program file etc. for example.Since even more important to the strick precaution of hardware assets, be example generally below with the hardware asset information, come management method of the present invention is described.
As shown in Figure 2, for being suitable for the application scenarios schematic diagram of the embodiment of the invention, wherein, the computer name of different terminals 201a, 201b...201n is respectively X1, X2...Xn, and in server 202 respectively corresponding stored the initial hardware information A1 of n part, A2...An are arranged, the computer name of its corresponding record also is to be respectively X1, X2...Xn, then is easy to set up corresponding relation by computer name.
Then can generate the page that represents of described hardware parameter information at server end, and when the information of putting down in writing among the current hardware information of detected terminal 201 and the A1 is not inconsistent, then can be by the mode of reporting to the police, the prompting computer name is that the hardware of the terminal 201 of X1 goes wrong.
Certainly, for the detection of terminal hardware information, can be when terminal powers on, to carry out, or regularly or irregularly carry out, to accomplish the monitoring management of real-time substantially realization terminal hardware information in the back that powers on.Also can be when detecting the system message of representing hardware Plug Action generation, to detect, change information to obtain hardware in the very first time.
And, can be to detect self hardware information, and be sent to server by terminal for the action of obtaining the current hardware information of terminal; Also can be to initiate the hardware information of terminal is detected, and testing result is returned server by server.
For example, for the administrative staff of Internet bar, can before finishing to use the preparation paying to leave, terminal user initiate the hardware information of particular terminal is detected request by server, after obtaining the current hardware information of counterpart terminal and comparing successfully, just allow the user to leave.
And for the hardware detection technology, can be by the API (Application Programming Interface, application programming interface) or the WMI (Windows Management Instrumentation, Windows management regulation) of operating system; And the correct driver of installing of hardware is carried out.
And embodiments of the invention also provide a kind of API or WMI that had not both relied on operating system, do not rely on the implementation of the driver of hardware self yet, promptly by the access hardware bottom, extract the manufacturer's information and the identification information of hardware as system bus, mainboard, CPU register etc., again to described manufacturer's information of hardware information library lookup that presets and identification information corresponding hardware parameter information, and generate and represent the described hardware parameter information of webpage representation.
With reference to figure 3, show the flow chart of steps of the processing method embodiment of a kind of hardware detection of the present invention, specifically can may further comprise the steps:
Step 301, by the visit bottom hardware, obtain the hardware identifier information in the subscriber equipment;
In a preferred embodiment of the present invention, described hardware identifier information can comprise vendor id and hardware device ID.
In embodiments of the present invention, do not need to depend on the API or the WMI of operating system, do not need to depend on the driver of hardware self yet, but obtain hardware identifier information in the subscriber equipment by the visit bottom hardware.In a preferred embodiment of the present invention, described bottom hardware can comprise system bus, system management basic input output system SMBIOS and/or peripheral port.More specifically, described system bus can comprise: Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus etc. correspondingly, this step can comprise following substep:
Substep S11, by reading the information of system management basic input output system SMBIOS in the subscriber equipment, obtain the hardware identifier information in the subscriber equipment;
Substep S12, obtain hardware identifier information in the subscriber equipment by the Ergodic Theory bus.
Substep S13, by the visit peripheral port, initiate the I/O operation with corresponding peripheral hardware, the hardware identifier information in the acquisition subscriber equipment.
For example, can read the information of PCI equipment on the mainboard by the traversal pci bus, and read vendor id and hardware device ID that SMBIOS mainboard information detects mainboard.Perhaps, can read the vendor id and the hardware device ID of the detected video card of video card categorical data on the PCI equipment by the traversal pci bus.Perhaps, can adopt the mode of SetupAPI to visit peripheral port, initiate to judge whether to be connected with peripheral hardware with the I/O operation requests of peripheral port, as receive the information that peripheral hardware returns at this request, then further send information acquisition request, receive vendor id and hardware device ID that peripheral hardware returns then to this peripheral hardware.
And according to embodiments of the invention, the system resource information of this machine of terminal of obtaining by operating system can also be compared with the described hardware parameter information that obtains by the visit bottom hardware; If comparative result is inconsistent, then carry out alarm; If consistent, then unique identification information and the current resource information with terminal is sent to server.
That is to say, once compare local execution of terminal earlier, if the system resource information of obtaining by operating system and the hardware parameter information inconsistency that obtains by visit bottom hardware mode illustrate that then terminal hardware information by the people for a change, then can report to the police at once; And if the information unanimity then also needs further to be sent to server and does ensuing comparison.And if can't obtain hardware identifier information in the subscriber equipment by the visit bottom hardware time, then can carry out alarm immediately.Certainly, the execution of alarm can be to carry out at this machine of terminal, also can be to be carried out by server end.
For making those skilled in the art understand the present invention better, below how in computer, to find the version number (BIOS Version) of mainboard and the manufacturer (Manufacturer) of computer by SMBIOS by a concrete example explanation.
In this example, do not adopt the mode of programming, and order the operation of being correlated with by the Debug that system carries.Be well known that SMBIOS information is located by Entry Point Structure (EPS) table, so at first will find EPS.The position of EPS is defined in (20 bit address form) between the F000:0000-F000:FFFF, and it is characterized in that:
A. initial 4 letters are ' _ SM_ ' (parts in the quotation marks), note capital and small letter;
B. 5 letters beginning of the position of initial address skew 10H (16 system) for ' _ DMI_ '.
Just EPS can have been found according to this.
Next, click " beginning ">" operation ", input " cmd ", point " is determined ";
Input " debug " in the window that ejects, carriage return has so just entered the debug environment, and its CMD is-, appear at later on-content of back all is the order that will import
-s?f000:0?ffff′_SM_′
Response may be following such:
-s?f000:0?ffff′_SM_′
F000:6C00
This address is different because of different computers. and also might show a plurality of lookup results, choose at random one and carry out following operation:
-d?F000:6C00
Possible response:
-d?F000:6C00
F000 :
6C00?5F?53?4D?5F?16?1F?02?1F-4B?01?00?00?00?00?00?00_SM_....K.......
F000 :
6C10?5F?44?4D?49?5F?3D?98?09-10?30?0E?00?3C?00?00?00_DMI_=...0..<...
F000 :
6C20?52?53?44?20?50?54?52?20-DE?4E?45?43?20?20?20?00?RSD?PTR.NEC.
F000:6C30?34?95?F7?0D?00?00?00?00-00?00?00?00?00?00?00?00?4...............
F000:6C40?00?00?00?00?00?00?00?00-00?00?00?00?00?00?00?00................
F000 :
6C50?24?46?53?58?56?0C?F8?00-B1?00?E0?00?00?00?00?00?$FSXV...........
F000:6C60?5F?33?32?5F?20?D7?0F?00-00?01?D6?00?00?00?00?00_32_...........
F000 :
6C70?24?50?44?4D?01?0B?1A?5D-88?00?F0?00?00?00?00?00?$PDM...]........
From on can find, _ SM_, also have the 10H skew _ DMI_, if a plurality of results are arranged, as long as the result that certain result checks by the d order meets this two features, just can continue following operation so with it in previous step.
To this step, EPS has found well, and the EPS table has been arranged, and just can find the position of SMBIOS information.Specifically, be exactly 4 bytes that the skew 18H of EPS begins, in this example, be exactly 10 30 0E 00.So how obtain the address of SMBIOS by it? these 4 addresses are 32 bit address of SMBIOS, and the form of obviously being write as " high-order low level " is exactly 000E 3010, convert 20 bit formats to just 12 of high lts, become the form of E000:3010, like this
-d?E000:3010
Possible response:
-d?e000:3010
E000:3010?00?14?00?00?01?02?F5?E4-03?07?90?DF?99?7C?00?00.............|..
E000:3020?00?00?05?03?4E?45?43?20-20?20?20?20?00?4E?4F?54....NEC.NOT
E000 :
3030?45?20?42?49?4F?53?20?56-65?72?73?69?6F?6E?20?2F?E?BIOS?Version/
E000 :
3040?33?36?39?41?30?36?30?30-20?00?30?39?2F?31?30?2F?369A0600.09/10/
E000:3050?32?30?30?33?00?00?01?19-01?00?01?02?03?04?8B?B0?2003............
E000:3060?DE?65?92?46?40?EB?86?FE-56?28?BD?80?79?13?06?4E.e.F...V(..y..N
E000 :
3070?45?43?20?43?6F?6D?70?75-74?65?72?73?20?49?6E?74?EC?Computers?Int
E000 :
3080?65?72?6E?61?74?69?6F?6E-61?6C?00?50?43?2D?43?56?ernational.PC-CV
Can also increase the line number of demonstration:
-d
Possible response:
E000 :
3090?32?32?53?4E?58?55?4C?34-47?49?00?20?20?20?20?20?22SNXUL4GI.
E000:30A0?20?20?20?20?20?20?20?20-20?20?20?20?20?20?20?20
E000:30B0?20?20?20?20?20?20?20?20-20?20?20?00?33?5A?30?30.3Z00
E000:30C0?39?39?35?31?41?00?00?02-08?02?00?01?02?03?04?4E?9951A..........N
E000:30D0?45?43?20?20?20?20?20?20-20?20?20?20?20?20?20?20?EC
E000:30E0?20?20?20?20?20?20?20?20-20?20?20?20?20?20?20?00.
E000 :
30F0?4C?45?34?4E?2D?31?00?30-2E?36?00?39?43?33?42?31?LE4N-1.0.6.9C3B1
E000:3100?38?37?31?39?00?00?03?11-03?00?01?0A?02?03?04?02?87?19............
So far, the position of SMBIOS has been determined, can further have been obtained relevant information.
At first, first byte (zero offset place) is 00, and according to the rules, this explanation information from here on is TYPE 0 information, also is the information area of BIOS.Second byte (skew 01H) is 14, illustrates that the basic size in TYPE 0 zone is 14H.According to the rules, the skew 05H place of TYPE 0 is the character string numbering of the version information of key plate, is generally 02.
Just now the basic size that has obtained TYPE 0 district from skew 01H was 14H, check so to be offset the 14H place, and be 4E, the ascii character of right side correspondence is N.Here begin, be the character string district of TYPE 0, they are during the size that is not included in TYPE is calculated.The character string random length is by the end mark of 00H as character string.From first character string number consecutively is 01, and the mainboard information that 02... mentioned just now is 02 to that is to say second character string here, that is to say " NOTE BIOS Version/369A0600 ", and main board version has just found like this.
The end in character string district indicates that with 00 the end mark according to character string is 00 again, so find 00 00, the next address since 00 00 has been exactly the next information area, in this example, is exactly 3056 places, and content is 01.As first byte in a zone, it indicates the type of this TYPE, is exactly TYPE 1 here, also is System Information.
According to TYPE 0 similar method, the size that obtains TYPE 1 from the skew 01H of TYPE 1 is 19H, and the skew 04H place of TYPE 1 is the character string numbering of Manufacturer information, is 01 here.Get to the skew 19H place of TYPE 1, be the beginning in the character string district of TYPE 1, because the information encoding that will look for is 01, so information from here on " NEC Computers International " is the information of manufacturer.
In a kind of preferred embodiment of the present invention, this step can also comprise following substep:
Substep S14, obtain hardware identifier information in the subscriber equipment by carrying out instruction interaction with hardware.
For example, for hardware such as CPU, internal memory, hard disk or CD-ROM drive, by reading the information of SMBIOS, and/or, behind traversal pci bus, SMBUS bus, I2C bus and the isa bus, also need further to carry out manufacturer's information and the identification information that instruction interaction just can be read this hardware with corresponding hardware.
In detail, as obtaining the information of CPU, can further cpu instruction register (comprising CPUID and MSR register) be carried out data analysis then and obtain by reading SMBIOS information earlier.
In specific implementation, described subscriber equipment can be initiated hardware detection requesting users equipment.When receiving described hardware detection request, start hardware detection driver (or hardware detection engine) at the subscriber equipment of initiating described request, by described hardware detection driver (or hardware detection engine) access hardware bottom, when described subscriber equipment is computer, the hardware bottom layer of being visited specifically comprises: the visit of CPU bottom, the visit of SMBIOS bottom, the pci bus data read, the SMBUS bus data reads, the isa bus data read, (oneself detects for IDE (hard disk drive) and Smart, analyze, reporting techniques) hard disc data reads, SCSI (small computer system interface) hard disc data reads, EEDID (extending display identification data) display data reads, after the scanning of I2C bus data, find the vendor id and the hardware ID of following hardware, comprise CPU, mainboard, video card, display, internal memory, hard disk, CD-ROM drive, sound card, battery, network interface card, mouse-keyboard and/or camera.
Step 302, the described hardware identifier information of foundation are extracted the corresponding hardware parameter information in the hardware information storehouse of presetting;
Example as a kind of concrete application, can preset a plurality of hardware informations storehouses such as hardware production firm database, ardware model number database, hardware specification database and/or hardware configuration parameter database, when detecting vendor id and hardware device ID, in above-mentioned a plurality of hardware informations storehouse, mate respectively one by one, filter out the hardware parameter information that need represent then to the user.
As the concrete example of using of another kind, can preset a hardware information storehouse, have many and hardware identifier information corresponding hardware parameter information record in this hardware information storehouse, wherein all comprise information such as hardware brand, hardware title, ardware model number, hardware specification and/or hardware configuration parameter in every hardware parameter information record.
Certainly, said method is only as example, which kind of hardware identifier information those skilled in the art can take according to the actual demand setting, as under the situation that only represents hardware brand, hardware title, then only take vendor id, or as, under the situation that represents ardware model number, hardware specification and hardware configuration parameter, then only take hardware device ID, described hardware identifier information can also other any relevant information of the hardware that adopts in objective sign subscriber equipment, the present invention need not this to be limited.
In practice, can carry out soundness verification,, just adopt second candidate value,, just adopt the 3rd candidate value, by that analogy if second candidate value is illegal if first candidate value is illegal for obtained hardware parameter information.
Step 303, generate the page that represents of described hardware parameter information.
Promptly hardware parameter information is returned to the user who initiates hardware detection by representing the page.
With reference to figure 4, show the flow chart of steps of the processing method embodiment of another hardware detection of the present invention, specifically can may further comprise the steps:
Step 401, by the visit bottom hardware, obtain the hardware identifier information in the subscriber equipment;
Step 402, the described hardware identifier information of foundation are extracted the corresponding hardware parameter information in the hardware information storehouse of presetting;
Step 403, obtain the running state data of hardware;
In specific implementation, can from CPU register data, mainboard sensing data, video card sensing data and/or hard disc data, obtain the running state data of each hardware.With the computer is example, and described running state data can comprise the CPU speed of service, memory modules voltage, hard disk access times and accumulative total service time, hard disc data transmission rate, video card frequency, battery loss rate etc.
In a preferred embodiment of the present invention, described running state data can also comprise temperature information, for example, cpu temperature information, video card temperature information, hard disk temperature information etc., described temperature information also can be by visit obtains to bottom hardware.With the cpu temperature detection is example, according to the CPU model that gets access to, goes to read the core temperature of this CPU; Go to scan temperature detection chip on the mainboard according to pci bus, SMBUS bus and isa bus, so that obtain the CPU surface temperature; Remove to read the cpu temperature in ACPI space according to the interior kernel method of ACPI (advanced configuration and power-management interface).And then this part data that get access to, judge according to the mainboard model, so that find only value.
Step 404, default form and the language of employing are changed the running state data of described hardware parameter information and hardware.
Because if the hardware parameter information spinner is represented with English in practice, be not easy to the user and understand, especially be not easy to domestic user's accurate understanding; Therefore, the present invention can also adopt the reading form of Chinese and user's custom to change hardware parameter information and the running state information that obtains by this step.
Certainly, it all is feasible that those skilled in the art adopt the running state data of any language and described hardware parameter information of format conversion and hardware according to actual conditions, and the present invention does not limit this.
Step 405, generate described hardware parameter information and hardware running state data represent the page.
For example, carry out hardware detection at the computer of initiating the hardware detection request after, generate the page that represents that comprises following content:
Computer model: the F80Cr of Asus notebook computer
32 of operating system: Windows 7 Ultimates (DirectX 11)
Processor: the Celeron of Intel (Celeron) D 2201.20GHz
Mainboard: the F80Cr of Asus (671MX of Silicon Integration Systems Corp.(SIS))
Internal memory: 2GB (Hynix DDR2 667MHz)
Primary Hard Drive: Seagate ST9250827AS (250 GB)
Video card: ATI Mobility Radeon HD 3470 (M82) (256MB/ Asus)
Display: LG LPL0129 (14 inches)
CD-ROM drive: Toshiba-Samsung CDDVDW TS-L633C DVD burner
Sound card: the Azalia Audio Controller of Realtek ALC662 Silicon Integration Systems Corp.(SIS)
Network interface card: 191 100/10 Ethernet Adapter/ Asus of Silicon Integration Systems Corp.(SIS)
Cpu temperature: 73 ℃
Video card temperature: 64 ℃
Hard disk temperature: 55 ℃
When the user further selects " processor information ", generate the page that represents that comprises following content:
Processor: the Celeron of Intel (Celeron) D 2201.20GHz
Core: Conroe L (65 nanometer)/core number: 1
Slot/socket: Socket 771 (FC-LGA6)
Speed: 1.20GHz (133MHzx9.0)/Front Side Bus: 533MHz
One-level metadata cache: 32KB, 8-Way, 64 byte lines
One-level code buffer memory: 32KB, 8-Way, 64 byte lines
L2 cache: 512KB, 2-Way, 64 byte lines
Feature: MMX, SSE, SSE2, SSE3, SSSE3, EM64T
When the user further selects " mainboard information ", generate the page that represents that comprises following content:
Mainboard model: the F80Cr of Asus
Chipset: the 671MX of Silicon Integration Systems Corp.(SIS)
Sequence number: BSN12345678901234567
Plate carries equipment: video equipment (enabling)
BIOS:American Megatrends Inc.204/ build date: 08/28/2008
When the user further selects " memory information ", generate the page that represents that comprises following content:
DIMM 0: Hynix DDR2 667MHz 2GB (2008 08 month)
Model: AD HYMP125S64CP8-Y5 AA3
Sequence number: 00007066
Module bit wide: 64Bits
Module voltage: SSTL 1.8V
When the user further selects " hard disk information ", generate the page that represents that comprises following content:
Product: Seagate ST9250827AS (250GB/5400 rev/min)
Buffer memory: 8MB
Firmware: 3.AAA
Hard disk has used 1658 times totally, accumulative total 3752 hours
Interface: SATA 3Gb/s
Data transmission rate: 300MB/ second
Feature S.M.A.R.T, 48-bit LBA, NCQ
When the user further selects " video card information ", generate the page that represents that comprises following content:
Main video card: ATI Mobility Radeon HD 3470 (M82)
Video memory: 256MB
Manufacturer: Asus
Bios version: BK-ATI VER010.086.000.001.000000
The BIOS date: 04/11/08
Drive version: 8.801.0.0
Drive date: 11-25-2010
Frequency core: 680MHz/ video memory: 400MHz
When the user further selects " monitor information ", generate the page that represents that comprises following content:
Product: LG LPL0129
Build date: 2007
Screen size: 14 inches (30 centimetres x19 centimetre)
Displaying ratio: widescreen 16: 10
32 true color of resolution: 1280x800
When the user further selects " CD-ROM drive information ", generate the page that represents that comprises following content:
Product: Toshiba-Samsung CDDVDW TS-L633C DVD burner
Buffer memory/firmware: 2048KB/AS00
When the user further selects " network interface card information ", generate the page that represents that comprises following content:
Network interface card: 191 100/10 Ethernet Adapter/ Asus of Silicon Integration Systems Corp.(SIS)
Wireless network card: Atheros AR5007EG Wireless Network Adapter/Azurewave
When the user further selects " sound card information ", generate the page that represents that comprises following content:
Sound card: the Azalia Audio Controller of Realtek ALC662 Silicon Integration Systems Corp.(SIS)
Sound card: ATI RV620 Audio Device (Radeon HD 34xx Series)
When the user further selects " battery information ", generate the page that represents that comprises following content:
Product: the F80--22-of Asus lithium battery
Battery loss: 10.21%
Complete charging capacity: 41481mWh
Design capacity dispatches from the factory: 46200mWh
Certainly, the above-mentioned page represent content and form only as example, those skilled in the art according to actual conditions be provided with arbitrarily all can, the present invention need not this to be limited.
In a preferred embodiment of the present invention, can also comprise the steps:
Step 406, employing presetting rule are marked to each hardware parameter information and/or running state data in the subscriber equipment;
Step 407, described scoring is uploaded onto the server, in server, sort, and return ranking results according to the scoring height.
The embodiment of the invention does not limit the rule of described scoring, it is all feasible that those skilled in the art are provided with methods of marking arbitrarily, as hardware brand, model, specification, configuration parameter etc. are carried out classification, the corresponding score value of each classification, score value with all hardware in the subscriber equipment adds up then, calculates the rank of current user equipment in uploading onto the server.
Use the embodiment of the invention, only need send a hardware detection request, can trigger current user equipment is carried out the hardware detection processing, obtain all hardware parameter information and service data in the current user equipment, operate very simple.And, can intactly collect hardware informations all in the current user equipment by the visit bottom hardware, the hardware information that the present invention obtained not only comprises hardware parameter information, also comprises service data information, thereby provides bigger amount of information to the user.Moreover the present invention also can carry out the conversion of form and language to the hardware information that represents, and makes the user can intuitively, accurately obtain the hardware details.
Need to prove that in embodiments of the present invention, described hardware is meant the hardware in the subscriber equipment, described subscriber equipment comprises computer, mobile phone, PDA etc.The embodiment of the invention not only can be applied to can also be applied to the applied environment of client-server in the applied environment of single device, perhaps further is applied in the applied environment based on cloud.