CN103312530A - Method and system for correspondingly counting on-line server and rack position, and counting platform - Google Patents
Method and system for correspondingly counting on-line server and rack position, and counting platform Download PDFInfo
- Publication number
- CN103312530A CN103312530A CN201210065933XA CN201210065933A CN103312530A CN 103312530 A CN103312530 A CN 103312530A CN 201210065933X A CN201210065933X A CN 201210065933XA CN 201210065933 A CN201210065933 A CN 201210065933A CN 103312530 A CN103312530 A CN 103312530A
- Authority
- CN
- China
- Prior art keywords
- information
- inventory
- server
- port
- frame position
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a method for correspondingly counting an on-line server and a rack position. The method comprises the following steps of sending a counting request by a counting platform to a switch management server; obtaining software version information corresponding to various switches according to the counting request, and generating medium access control MAC (media access control) address capture commands corresponding to the switches according to the software version information, and sending the medium access control MAC address capture commands to the corresponding switches; executing the MAC address capture commands by the switches so as to obtain on-line server information; obtaining the on-line server information by the counting platform, and comparing the stored server information and the rack position information to generate counting results. The embodiment provided by the invention has the advantages that remote distance and automatic counting are realized, the labor force is reduced, the cost is saved, and the counting is correct. The invention further discloses a system for correspondingly counting the on-line server and the rack position, a counting platform and a switch management server.
Description
Technical field
The present invention relates to field of computer technology, a kind of line server of special design method of making an inventory corresponding to the frame position, system, make an inventory platform and switch management server.
Background technology
The server and the frame bit quantity that have of company on the market is all huge not now, and the Stocktaking mode that therefore mostly adopts all is manually to make an inventory.Along with the development of the Internet, also more and more higher to the requirement of network.The continuous increase of server, the network equipment, frame position, data volume is more and more huger, if or manually making an inventory before the continuity, will certainly bring huge workload.Also can have influence on the accuracy of assets, high efficiency.The present invention proposes a kind of mode based on experiment porch, by the uniqueness of the information such as MAC Address, frame position, IP and server S N number, the information by switch grabs realizes long-range making an inventory.Solved time-consuming, the bothersome shortcoming of making an inventory under the line.
Present company is general only makes an inventory all to the making an inventory of server and frame bit quantity, and seldom has company can relate to server and making an inventory of frame position corresponding relation and making an inventory of idle frame position.The present existing implementation of making an inventory, roughly be divided into manually make an inventory, three kinds of bar code scan and radio-frequency (RF) identification (RFID).
But the mode of manually making an inventory is exactly the information of checking server and frame position by artificial scene, and with account book on record compare and draw the result that makes an inventory.This mode is only applicable to server, company that the frame bit quantity is less.In case corporate server and frame bit quantity are excessive, taking this mode, will cause the negative effect that the increase of personnel's workload, time loss are long, management cost rises, the assets accuracy reduces.
The bar code scan mode is same to rely on artificial on-site verification, but it has adopted the bar-code identification instrument, can automatically read the label information on server and the frame position, and with system in the information that records compare and draw the result that makes an inventory.This mode improves a lot than the accuracy of manually making an inventory in information, but it still takes time and effort, and is unsuitable for the management of the huge server of quantity and frame position.
Radio-frequency (RF) identification (RFID) mode application server, database server, system gateway, frame position management work station, be connected with wireless router by netting twine, hand-hold type Radio Frequency Management terminal is connected with wireless router by radio signal, server is connected radio signal and is connected with hand-hold type Radio Frequency Management terminal with frame position electronic tag, system gateway is connected with external network simultaneously.Whether the automatic inspection form of making an inventory was consistent with the electronic tag canned data when server was made an inventory with the examination of frame position at the scene.Although this mode has higher accuracy, its cost is too high, needs a large amount of funds for the management of server in enormous quantities and frame position.
Summary of the invention
The present invention is intended to solve at least one of technical problem that exists in the prior art.
For this reason, one object of the present invention be to propose a kind of can be long-range, automation and make an inventory accurately and can judge the line server and the corresponding method of making an inventory in frame position of server and frame position corresponding relation.
Another object of the present invention is to propose a kind of line server system of making an inventory corresponding to the frame position.
Of the present inventionly be to propose a kind of platform of making an inventory a purpose.
The 4th purpose of the present invention is to propose a kind of switch management server.
To achieve these goals, the embodiment of first aspect present invention has proposed a kind of line server method of making an inventory corresponding to the frame position, may further comprise the steps: the platform of making an inventory sends the request of making an inventory to the switch management server; Described switch management server is according to described software version information corresponding to acquisition request respective switch of making an inventory; Described switch management server generates medium access control MAC Address crawl order corresponding to described respective switch and is sent to corresponding switch according to described software version information; Described respective switch is carried out port information and the corresponding line server information of described MAC Address crawl order to obtain described respective switch all of the port; And the described platform of making an inventory obtains the port information of described respective switch all of the port and corresponding line server information, and compares to generate the result that makes an inventory according to the port information of described respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore.
According to embodiments of the invention, by the uniqueness of MAC Address, frame position, utilize the platform of making an inventory, can realize long-range making an inventory, greatly reduce temporal consumption, also reduce manpower, realize exactly the segmentation of assets in the mode of automation, guaranteed the accuracy of assets.Embodiments of the invention have utilized the platform of making an inventory by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.
Second aspect present invention embodiment has proposed a kind of line server system of making an inventory corresponding to the frame position, comprise the platform of making an inventory, the switch management server that links to each other with the described platform of making an inventory, with a plurality of switches that link to each other with described switch management server, the described platform of making an inventory, be used for sending the request of making an inventory to described switch management server, and obtain the port information of described a plurality of switch all of the ports and corresponding line server information from described switch management server, and compare to generate the result that makes an inventory according to the port information of described a plurality of switch all of the ports and corresponding line server information with the server info and the frame position information that prestore; Described switch management server is used for according to described software version information corresponding to acquisition request respective switch of making an inventory, and generates MAC Address crawl order corresponding to described respective switch and be sent to corresponding described switch according to described software version information; Described a plurality of switch, be used for carrying out port information and the corresponding line server information of described MAC Address crawl order to obtain described a plurality of switch all of the ports, and port information and the corresponding line server information of described a plurality of switch all of the ports is fed back to described switch management server.
System by the uniqueness of MAC Address, frame position, utilizes the platform of making an inventory according to an embodiment of the invention, can realize long-range making an inventory, greatly reduce temporal consumption, also reduce manpower, realize exactly the segmentation of assets in the mode of automation, guaranteed the accuracy of assets.Embodiments of the invention have utilized the platform of making an inventory by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.In addition, this system configuration is simple, is easy to realize.
The embodiment of third aspect present invention has proposed a kind of platform of making an inventory, and comprising: sending module is used for sending the request of making an inventory to the switch management server; Receiver module is used for obtaining the port information of described respective switch all of the port and the line server information of correspondence from described switch management server; And the module of making an inventory, be used for comparing to generate the result that makes an inventory according to the port information of described respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore.
The platform of making an inventory according to an embodiment of the invention, by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.
The embodiment of fourth aspect present invention has proposed a kind of switch management server, comprising: receiver module, for the request of making an inventory that receives the platform transmission of making an inventory; The order generation module is used for according to described software version information corresponding to acquisition request respective switch of making an inventory, and generates MAC Address crawl order corresponding to described respective switch and be sent to corresponding described switch according to described software version information; The arrangement feedback module, be used for to receive port information and the corresponding line server information of the respective switch all of the port of respective switch feedback, and port information and the corresponding line server information of described respective switch all of the port is fed back to the described platform of making an inventory.
According to the switch management server of the embodiment of the invention, the log information by crawl order crawl respective switch has advantages of crawl accurately and automation.
Additional aspect of the present invention and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Description of drawings
Above-mentioned and/or additional aspect of the present invention and advantage are from obviously and easily understanding becoming the description of embodiment in conjunction with following accompanying drawing, wherein:
Fig. 1 is the line server of the embodiment of the invention and the flow chart of the corresponding method of making an inventory in frame position;
Fig. 2 be the embodiment of the invention line server and the corresponding method of making an inventory in frame position be the decision flow chart of the information of line server to port status;
Fig. 3 be the embodiment of the invention line server and the corresponding method of making an inventory in frame position be the decision flow chart of idle port state information to port status;
Fig. 4 is the line server of the embodiment of the invention and the structure chart of the corresponding system that makes an inventory in frame position;
Fig. 5 is the line server of one embodiment of the invention and the structural representation of the corresponding system that makes an inventory in frame position;
Fig. 6 is the structure chart of the platform of making an inventory of the embodiment of the invention; And
Fig. 7 is the structure chart of the switch management server of the embodiment of the invention.
Embodiment
The below describes embodiments of the invention in detail, and the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.
In description of the invention, term " vertically ", " laterally ", " on ", orientation or the position relationship of the indications such as D score, 'fornt', 'back', " left side ", " right side ", " vertically ", " level ", " top ", " end " be based on orientation shown in the drawings or position relationship, only be for convenience of description the present invention rather than require the present invention with specific orientation structure and operation, therefore can not be interpreted as limitation of the present invention.
With reference to following description and accompanying drawing, these and other aspects of embodiments of the invention will be known.These describe and accompanying drawing in, specifically disclose some specific implementations in the embodiments of the invention, represent to implement some modes of the principle of embodiments of the invention, still should be appreciated that the scope of embodiments of the invention is not limited.On the contrary, embodiments of the invention comprise spirit and interior all changes, modification and the equivalent of intension scope that falls into additional claims.
Before describing embodiments of the invention, at first term used in the present invention is made an explanation, wherein:
Inventory profit, for assets have been made an inventory at the scene, but record not in the system.
Loss on disposal for assets are not made an inventory at the scene, and has record in the system.
Intertwining: the positional information that records in assets positional information at the scene and the system is different.
Correctly: assets have been made an inventory at the scene, record is also arranged in the simultaneity factor, and its positional information conform to.
Below in conjunction with accompanying drawing 1 line server method of making an inventory corresponding to the frame position according to the embodiment of the invention described at first.
With reference to figure 1, the line server method of making an inventory corresponding to the frame position according to the embodiment of the invention comprises the steps:
Step S101, the platform of making an inventory sends the request of making an inventory to the switch management server.Make an inventory platform in order to send the long-range transmission of the request request of making an inventory of making an inventory to the switch management server, the platform of making an inventory can send the purpose that the request of making an inventory realizes Long-distance Control better to the switch management server by means of the group of networks workbench, and the platform of namely making an inventory can send the request of making an inventory to the switch management server by the group of networks workbench.
Certainly, the platform of making an inventory also can directly send the request of making an inventory by network to the switch management server, and the platform of namely making an inventory can carry out remote interaction with the switch management server.In an example of the present invention, the request of making an inventory comprises the management ip address of all switches in machine room name and the machine room, for example, the user inputs the machine room name that need to make an inventory in the platform of making an inventory, make an inventory platform according to pre-recorded machine room information (machine room information comprises the machine room name), sending makes an inventory accordingly asks to the switch management server, namely by the machine room name information such as server in this machine room and frame position of can making an inventory.
Step S102, the switch management server is according to making an inventory software version information corresponding to acquisition request respective switch.In an above-mentioned example, can determine the switch that links to each other with server in this machine room according to the machine room name in the request of making an inventory, and obtain in these switches the respectively software version information of correspondence of each switch according to the management ip address of these switches.
Step S103, the switch management server generates medium access control MAC Address crawl order corresponding to respective switch and is sent to corresponding switch according to software version information.
Particularly, behind the software version information of each switch in getting access to corresponding a plurality of switch, can generate the medium access control MAC Address crawl order corresponding with this switch according to this software version information.
Need to prove, the difference of the software version that the switch of different model and switch use, the medium access control MAC Address crawl order that its switch uses is also different, for example: Huawei's used software version of QuidwayS5400 switch is 5.30, and then its medium access control MAC Address crawl order is " display arp ".And the used software version of the Quidway S9312 of Huawei switch is 5.50, and then its medium access control MAC Address crawl order is " display mac-address ".Therefore, after needing to determine the software version information of each switch, can determine its corresponding medium access control MAC Address crawl order according to this software version information.
Step S104, respective switch carry out port information and the corresponding line server information of described MAC Address crawl order to obtain described respective switch all of the port.Be each switch after getting access to corresponding MAC Address crawl order, thereby carry out port information and corresponding line server information that this MAC Address crawl order can obtain this switch all of the port.
In an example of the present invention, port information comprises port numbers and port status information, reaches the mac address information of line server corresponding to described port.For example, for a port on the switch, if chord position that this port picks is idle, then the port status information of this port is set to the information such as down, if chord position that this port picks has been placed the server (line server) that starts, then the port status information of this port is set to the information such as up, and obtains the mac address information of the server that this port connects.
Further, frame position information comprises the corresponding relation of port numbers and frame position, and online frame position information and idle frame position information.The frame position of above-mentioned indication is the position at server place, and for a frame position, if be provided with server in its position, then this frame position information is online frame position information, otherwise this shelf position is idle frame position information.
Step S105, the platform of making an inventory obtains port information and the corresponding line server information of described respective switch all of the port, and compares to generate the result that makes an inventory according to the port information of described respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore.
In an example of the present invention, at first the switch management server is preserved port information and the corresponding line server information of respective switch all of the port, and the port information of respective switch all of the port and corresponding line server information write in the journal file, make an inventory platform from obtaining journal file from the switch management server, further, making an inventory platform can be by above-mentioned group of networks workbench download log file.The platform purpose by network remote download log file from the switch management server thus realizes making an inventory.More specifically, port information and corresponding line server information that the switch management server is kept all pbx switch all of the ports in this machine room write in the journal file (LOG), and send it back the group of networks workbench, the group of networks workbench sends the signal of information scratching success immediately to the platform of making an inventory, the platform of making an inventory can be downloaded the request of the making an inventory corresponding journal file (LOG) that sends before this from the group of networks workbench.The request of making an inventory that the journal file (LOG) that obtains for the platform that guarantees to make an inventory and the platform of making an inventory send is corresponding, can comprising in the request of making an inventory makes an inventory asks to send the time, the filename of journal file comprise this make an inventory the request send the time, thus, guaranteed the corresponding of journal file (LOG) and the request of making an inventory.
Then, the platform of making an inventory compares to generate the result that makes an inventory according to the port information of respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore, particularly, referring to Fig. 2, may further comprise the steps:
Step S51 is according to the information of port status information acquisition line server.Namely obtain the mac address information that contains line server in the port information.And gather server info and the frame position information prestore of obtaining.
Step S52 compares mac address information and the server info that prestores of the line server among the described journal file.Need to prove, the MAC Address of the server info that prestores is provided by producer when the server arrival and unifies typing with the server sequence number, and carries out corresponding with the frame position above-mentioned server.
Step S53 if the mac address information of the line server among the journal file is not present among the mac address information of the described server info that prestores, then judges inventory profit.In other words, if in journal file, there is the mac address information of some servers, and in the server info that prestores, there is not the server with above-mentioned mac address information, then judges inventory profit.
Step S54, if the mac address information of the described server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal.Namely in the server info that prestores, there is the server of a certain mac address information, and in journal file, do not have the server with above-mentioned mac address information, then judge loss on disposal.
Step S55 if the mac address information of the server info that prestores is present in the mac address information of the line server among the journal file, then further judges whether to occur intertwining according to the corresponding port numbers of line server and online frame position information.In other words, if judge the mac address information of the some servers that in journal file, exist, be present in equally the server with above-mentioned mac address information of preserving in the server info that prestores, then continue in the server info that prestores, to search the frame position at the server place with above-mentioned MAC Address, and find the port numbers of the switch that this frame position connects, and with this port numbers and this MAC Address corresponding port numbers in journal file is made comparisons, if identical, then be correct, that records in the frame position at server place and the system in the expression reality is complementary, if different, then be intertwining, the frame position at this server place of recording in the server info that represents the frame position at this server place and prestore may not mated or the matching relationship of this server and MAC Address is made mistakes, and also may make mistakes for the matching relationship of frame position and port numbers.
Further, the platform of making an inventory compares to generate the result that makes an inventory according to the port information of respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore, referring to Fig. 3, comprises the steps:
Step S56 is according to described port status information acquisition idle port information.Be the port that is set to the down state of MAC address free.
Step S57, according to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position.
And corresponding result and described idle frame position information are compared to obtain the comparative result of idle frame position.Thereby draw idle frame position inventory profit, loss on disposal and correct information.It judges that inventory profit, loss on disposal and correct mode and step S53 are similar to the judgment mode of step S55, in order to reduce redundancy, does not do and gives unnecessary details.
Method by the uniqueness of MAC Address, frame position, is utilized the platform of making an inventory according to an embodiment of the invention, can realize long-range making an inventory, greatly reduce temporal consumption, also reduce manpower, realize exactly the segmentation of assets in the mode of automation, guaranteed the accuracy of assets.Embodiments of the invention have utilized the platform of making an inventory by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.
Referring to Fig. 4, further embodiment of the present invention has proposed a kind of line server system of making an inventory 400 corresponding to the frame position, the switch management server 420 that comprise the platform 410 of making an inventory, links to each other with the platform 410 of making an inventory and a plurality of switches 430 that link to each other with switch management server 420.Wherein:
The platform 410 of making an inventory sends the request of making an inventory to switch management server 420, and obtain port information and the corresponding line server information of a plurality of switch 430 all of the ports from switch management server 420, and compare to generate the result that makes an inventory according to the port information of a plurality of switch 430 all of the ports and corresponding line server information with the server info and the frame position information that prestore.
A plurality of switches 430 are carried out port information and the corresponding line server information of MAC Address crawl order to obtain a plurality of switch all of the ports, and port information and the corresponding line server information of a plurality of switch all of the ports is fed back to described switch management server 420.
Below each functional module of the embodiment of the invention is described in detail.
Particularly, referring to Fig. 5, and in conjunction with Fig. 4, the platform 410 of making an inventory sends the request of making an inventory to the switch management server, namely make an inventory platform 410 in order to send the long-range transmission of the request request of making an inventory of making an inventory to switch management server 420, the platform of making an inventory can send the purpose that the request of making an inventory realizes Long-distance Control better to switch management server 420 by means of group of networks workbench 440, and the platform 410 of namely making an inventory can send the request of making an inventory to the switch management server by group of networks workbench 440.
Certainly, the platform 410 of making an inventory also can directly send the request of making an inventory by network to switch management server 420, and the platform 410 of namely making an inventory can carry out remote interaction with switch management server 420.In an example of the present invention, the request of making an inventory comprises the management ip address of all switches in machine room name and the machine room, for example, the user inputs the machine room name that need to make an inventory in the platform 410 of making an inventory, make an inventory platform 410 according to pre-recorded machine room information (machine room information comprises the machine room name), sending makes an inventory accordingly asks to switch management server 420, namely by the machine room name information such as server in this machine room and frame position of can making an inventory.
Further, the platform 410 of making an inventory also is used for switch management server 420 is preserved the port information of respective switch all of the port and corresponding line server information, and the port information of respective switch all of the port and corresponding line server information write in the journal file, the platform 410 of making an inventory can obtain journal file from switch management server 420, further, making an inventory platform 410 can be by above-mentioned group of networks workbench 440 download log file.Platform 410 purpose by network remote download log file from switch management server 420 thus realizes making an inventory.More specifically, port information and corresponding line server information that switch management server 420 is kept all pbx switch all of the ports in this machine room write in the journal file (LOG), and send it back group of networks workbench 440, group of networks workbench 440 sends the signal of information scratching success to the platform 410 of making an inventory immediately, and the platform 410 of making an inventory can be downloaded the request of the making an inventory corresponding journal file (LOG) that sends before this from group of networks workbench 440.The request of making an inventory that the journal file (LOG) that obtains for the platform that guarantees to make an inventory and the platform of making an inventory send is corresponding, can comprising in the request of making an inventory makes an inventory asks to send the time, the filename of journal file comprise this make an inventory the request send the time, thus, guaranteed the corresponding of journal file (LOG) and the request of making an inventory.
Then, the platform 410 of making an inventory compares to generate the result that makes an inventory according to the port information of respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore, particularly, the information of platform 410 according to port status information acquisition line server of making an inventory, and the mac address information of the line server among the journal file and the server info that prestores compared, need to prove, the MAC Address of the server info that prestores is provided by producer when the server arrival and unifies typing with the server sequence number, and above-mentioned server and frame position are carried out corresponding, wherein:
The mac address information of the line server if make an inventory among the platform 410 judgement journal files is not present among the mac address information of the described server info that prestores, and then judges inventory profit.In other words, if in journal file, there is the mac address information of some servers, and in the server info that prestores, there is not the server with above-mentioned mac address information, then judges inventory profit.
If make an inventory platform 410 judge the mac address information of the server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal.Namely in the server info that prestores, there is the server of a certain mac address information, and in journal file, do not have the server with above-mentioned mac address information, then judge loss on disposal.
The mac address information of the server info that platform 410 judgements prestore if make an inventory is present in the mac address information of the line server among the journal file, then further judges whether to occur intertwining according to the corresponding port numbers of line server and online frame position information.In other words, if judge the mac address information of the some servers that in journal file, exist, be present in equally the server with above-mentioned mac address information of preserving in the server info that prestores, then continue in the server info that prestores, to search the frame position at the server place with above-mentioned MAC Address, and find the port numbers of the switch that this frame position connects, and with this port numbers and this MAC Address corresponding port numbers in journal file is made comparisons, if identical, then be correct, that records in the frame position at server place and the system in the expression reality is complementary, if different, then be intertwining, the frame position at this server place of recording in the server info that represents the frame position at this server place and prestore may not mated or the matching relationship of this server and MAC Address is made mistakes, and also may make mistakes for the matching relationship of frame position and port numbers.
Further, the platform 410 of making an inventory also is used for according to port status information acquisition idle port information, and according to the corresponding result of the described idle port information of idle port information slave chord position information acquisition with the frame position, and the comparative result that described corresponding result and idle frame position information is compared to obtain idle frame position.In other words, the platform 410 of making an inventory at first obtains the port that is set to the down state of MAC address free, then make an inventory platform 410 according to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position, the platform 410 of making an inventory at last compares corresponding result and described idle frame position information to obtain the comparative result of idle frame position.Thereby draw idle frame position inventory profit, loss on disposal and correct information.Its judgment mode of judging inventory profit, loss on disposal and correct mode and above-described embodiment is similar, in order to reduce redundancy, does not do and gives unnecessary details.
Further, behind the software version information of each switch of switch management server 420 in getting access to corresponding a plurality of switch, can generate the medium access control MAC Address crawl order corresponding with this switch according to this software version information.
Need to prove, the difference of the software version that the switch of different model and switch use, the medium access control MAC Address crawl order that its switch uses is also different, for example: Huawei's used software version of QuidwayS5400 switch is 5.30, and then its medium access control MAC Address crawl order is " display arp ".And the used software version of the Quidway S9312 of Huawei switch is 5.50, and then its medium access control MAC Address crawl order is " display mac-address ".Therefore, after needing to determine the software version information of each switch, can determine its corresponding medium access control MAC Address crawl order according to this software version information.
Respective switch (a plurality of switch 430) is carried out port information and the corresponding line server information of MAC Address crawl order to obtain described respective switch all of the port.Be each switch after getting access to corresponding MAC Address crawl order, thereby carry out port information and corresponding line server information that this MAC Address crawl order can obtain this switch all of the port.Particularly:
The port information of respective switch (a plurality of switch 430) comprises port numbers and port status information, reaches the mac address information of line server corresponding to described port.For example, for a port on the switch, if chord position that this port picks is idle, then the port status information of this port is set to the information such as down, if chord position that this port picks has been placed the server (line server) that starts, then the port status information of this port is set to the information such as up, and obtains the mac address information of the server that this port connects.
Further, frame position information comprises the corresponding relation of port numbers and frame position, and online frame position information and idle frame position information.The frame position of above-mentioned indication is the position at server place, and for a frame position, if be provided with server in its position, then this frame position information is online frame position information, otherwise this shelf position is idle frame position information.
System by the uniqueness of MAC Address, frame position, utilizes the platform of making an inventory according to an embodiment of the invention, can realize long-range making an inventory, greatly reduce temporal consumption, also reduce manpower, realize exactly the segmentation of assets in the mode of automation, guaranteed the accuracy of assets.Embodiments of the invention have utilized the platform of making an inventory by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.In addition, this system configuration is simple, is easy to realize.
Referring to Fig. 6, further embodiment of the present invention has proposed a kind of platform 410 of making an inventory, and comprises sending module 411, receiver module 412 and the module 413 of making an inventory.Wherein:
Sending module 411 is used for sending the request of making an inventory to switch management server 420, and the request of for example making an inventory comprises the management ip address of all switches in machine room name and the machine room.Receiver module 412 is used for obtaining from switch management server 420 port information and the corresponding line server information of respective switch (a plurality of switch 430) all of the port, for example port information comprises port numbers and port status information, reach the mac address information of line server corresponding to described port, and described frame position information comprises the corresponding relation of port numbers and frame position, and described frame position information comprises online frame position information and idle frame position information.The module of making an inventory 413 is used for comparing to generate the result that makes an inventory according to the port information of respective switch (a plurality of switch 430) all of the port and corresponding line server information with the server info and the frame position information that prestore.
In an example of the present invention, the module of making an inventory 413 can comprise online frame position comparer module (not shown), online frame position comparer module is used for the information according to described port status information acquisition line server, and the mac address information of the line server among the described journal file and the server info that prestores compared, further, if the mac address information of the line server among the described journal file is not present among the mac address information of the described server info that prestores, then judge inventory profit.If the mac address information of the described server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal.If the mac address information of the described server info that prestores is present in the mac address information of the line server among the described journal file, then further judge whether to occur intertwining according to the corresponding port numbers of described line server and online frame position information.
Further, online frame position comparer module also is used for according to described port status information acquisition idle port information, and according to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position, and the comparative result that described corresponding result and described idle frame position information is compared to obtain idle frame position.
The platform of making an inventory according to an embodiment of the invention, by switch crawl log information, again log information and the assets information (server info that prestores and frame position information) that records in system are compared afterwards, draw the result that makes an inventory, thereby realization the long-range of assets made an inventory, and has advantages of automation and saves human cost.
Referring to Fig. 7, further embodiment of the present invention has proposed a kind of switch management server 420, comprises receiver module 421, order generation module 422 and arrangement feedback module 423.Wherein:
Receiver module 421 is for the request of making an inventory that receives platform 410 transmissions of making an inventory.Order generation module 422 is used for according to making an inventory software version information corresponding to acquisition request respective switch, and generates MAC Address crawl order corresponding to described respective switch and be sent to corresponding switch according to software version information.Arrangement feedback module 423 is used for port information and the corresponding line server information of the respective switch all of the port of reception respective switch feedback, and port information and the corresponding line server information of respective switch all of the port is fed back to the platform 410 of making an inventory.
Further, arrangement feedback module 423 also is used for the port information of respective switch all of the port and corresponding line server information are write to journal file, and the platform 410 of making an inventory obtains described journal file from switch management server 420.Wherein, make an inventory the request comprise the management ip address of all switches in machine room name, the machine room and make an inventory the request send the time, the filename of described journal file comprise described make an inventory the request send the time.
According to the switch management server of the embodiment of the invention, the log information by crawl order crawl respective switch has advantages of crawl accurately and automation.
In flow chart the expression or in this logic of otherwise describing and/or step, for example, can be considered to the sequencing tabulation for the executable instruction that realizes logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (such as the computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), or use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can comprise, storage, communication, propagation or transmission procedure be for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.
The more specifically example of computer-readable medium (non-exhaustive list) comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), the erasable read-only memory (EPROM or flash memory) of editing, fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium even can be paper or other the suitable media that to print described program thereon, because can be for example by paper or other media be carried out optical scanner, then edit, decipher or process to obtain described program in the electronics mode with other suitable methods in case of necessity, then it is stored in the computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in the memory and by software or firmware that suitable instruction execution system is carried out.For example, if realize with hardware, the same in another embodiment, can realize with the combination of each or they in the following technology well known in the art: have for the discrete logic of data-signal being realized the logic gates of logic function, application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or the example in conjunction with specific features, structure, material or the characteristics of this embodiment or example description.In this manual, the schematic statement of above-mentioned term not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or characteristics can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that do not break away from principle of the present invention and aim can be carried out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.
Claims (24)
1. a line server method of making an inventory corresponding to the frame position is characterized in that, may further comprise the steps:
The platform of making an inventory sends the request of making an inventory to the switch management server;
Described switch management server is according to described software version information corresponding to acquisition request respective switch of making an inventory;
Described switch management server generates medium access control MAC Address crawl order corresponding to described respective switch and is sent to corresponding switch according to described software version information;
Described respective switch is carried out port information and the corresponding line server information of described MAC Address crawl order to obtain described respective switch all of the port; And
The described platform of making an inventory obtains port information and the corresponding line server information of described respective switch all of the port, and compares to generate the result that makes an inventory according to the port information of described respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore.
2. line server as claimed in claim 1 method of making an inventory corresponding to the frame position is characterized in that, also comprises:
Described switch management server writes to port information and the corresponding line server information of described respective switch all of the port in the journal file, and the described platform of making an inventory obtains described journal file from described switch management server.
3. line server as claimed in claim 2 method of making an inventory corresponding to the frame position is characterized in that,
The described platform of making an inventory sends the request of making an inventory by the group of networks workbench to described switch management server, and downloads described journal file by described group of networks workbench.
4. line server as claimed in claim 2 method of making an inventory corresponding to the frame position is characterized in that, the described request of making an inventory comprises the management ip address of all switches in machine room name and the machine room.
5. line server as claimed in claim 4 method of making an inventory corresponding to the frame position is characterized in that, described make an inventory the request also comprise make an inventory the request send the time, the filename of described journal file comprise described make an inventory the request send the time.
6. line server as claimed in claim 2 method of making an inventory corresponding to the frame position, it is characterized in that, described port information comprises port numbers and port status information, reach the mac address information of line server corresponding to described port, and described frame position information comprises the corresponding relation of port numbers and frame position, and described frame position information comprises online frame position information and idle frame position information.
7. line server as claimed in claim 6 method of making an inventory corresponding to the frame position, it is characterized in that, described port information and corresponding line server information and the server info that prestores and frame position information according to the respective switch all of the port is compared to generate the result that makes an inventory and is further comprised:
Information according to described port status information acquisition line server;
The mac address information of the line server among the described journal file is compared with the server info that prestores;
If the mac address information of the line server among the described journal file is not present among the mac address information of the described server info that prestores, then judge inventory profit;
If the mac address information of the described server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal; And
If the mac address information of the described server info that prestores is present in the mac address information of the line server among the described journal file, then further judge whether to occur intertwining according to the corresponding port numbers of described line server and online frame position information.
8. line server as claimed in claim 7 method of making an inventory corresponding to the frame position is characterized in that,
According to described port status information acquisition idle port information;
According to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position;
Described corresponding result and described idle frame position information are compared to obtain the comparative result of idle frame position.
9. the line server system that make an inventory corresponding to the frame position is characterized in that, the switch management server that comprise the platform of making an inventory, links to each other with the described platform of making an inventory and a plurality of switches that link to each other with described switch management server,
The described platform of making an inventory, be used for sending the request of making an inventory to described switch management server, and obtain the port information of described a plurality of switch all of the ports and corresponding line server information from described switch management server, and compare to generate the result that makes an inventory according to the port information of described a plurality of switch all of the ports and corresponding line server information with the server info and the frame position information that prestore;
Described switch management server is used for according to described software version information corresponding to acquisition request respective switch of making an inventory, and generates MAC Address crawl order corresponding to described respective switch and be sent to corresponding described switch according to described software version information;
Described a plurality of switch, be used for carrying out port information and the corresponding line server information of described MAC Address crawl order to obtain described a plurality of switch all of the ports, and port information and the corresponding line server information of described a plurality of switch all of the ports is fed back to described switch management server.
10. the line server as claimed in claim 9 system that make an inventory corresponding to the frame position, it is characterized in that, described switch management server also is used for the port information of described respective switch all of the port and corresponding line server information are write to journal file, and the described platform of making an inventory obtains described journal file from described switch management server.
11. the line server as claimed in claim 10 system that make an inventory corresponding to the frame position is characterized in that, also comprises:
The group of networks workbench, described group of networks workbench is connected to described making an inventory between platform and the described switch management server, the described platform of making an inventory sends the request of making an inventory by described group of networks workbench to described switch management server, and downloads described journal file by described group of networks workbench.
12. the line server as claimed in claim 10 system that make an inventory corresponding to the frame position is characterized in that, the described request of making an inventory comprises the management ip address of all switches in machine room name and the machine room.
13. the line server as claimed in claim 12 system that make an inventory corresponding to the frame position is characterized in that, described make an inventory the request also comprise make an inventory the request send the time, the filename of described journal file comprise described make an inventory the request send the time.
14. the line server as claimed in claim 10 system that make an inventory corresponding to the frame position, it is characterized in that, described port information comprises port numbers and port status information, reach the mac address information of line server corresponding to described port, and described frame position information comprises the corresponding relation of port numbers and frame position, and described frame position information comprises online frame position information and idle frame position information.
15. the line server as claimed in claim 14 system that make an inventory corresponding to the frame position, it is characterized in that, the described platform of making an inventory, be used for the information according to described port status information acquisition line server, and the mac address information of the line server among the described journal file and the server info that prestores compared, wherein
If the mac address information of the line server among the described journal file is not present among the mac address information of the described server info that prestores, then judge inventory profit;
If the mac address information of the described server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal; And
If the mac address information of the described server info that prestores is present in the mac address information of the line server among the described journal file, then further judge whether to occur intertwining according to the corresponding port numbers of described line server and online frame position information.
16. the line server as claimed in claim 15 system that make an inventory corresponding to the frame position, it is characterized in that, the described platform of making an inventory, also be used for according to described port status information acquisition idle port information, and according to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position, and the comparative result that described corresponding result and described idle frame position information is compared to obtain idle frame position.
17. the platform of making an inventory is characterized in that, comprising:
Sending module is used for sending the request of making an inventory to the switch management server;
Receiver module is used for obtaining the port information of described respective switch all of the port and the line server information of correspondence from described switch management server; And
The module of making an inventory is used for comparing to generate the result that makes an inventory according to the port information of described respective switch all of the port and corresponding line server information with the server info and the frame position information that prestore.
18. the platform of making an inventory as claimed in claim 17 is characterized in that, the described request of making an inventory comprises the management ip address of all switches in machine room name and the machine room.
19. the platform of making an inventory as claimed in claim 18, it is characterized in that, described port information comprises port numbers and port status information, reach the mac address information of line server corresponding to described port, and described frame position information comprises the corresponding relation of port numbers and frame position, and described frame position information comprises online frame position information and idle frame position information.
20. the platform of making an inventory as claimed in claim 19 is characterized in that, the described module of making an inventory comprises:
Online frame position comparer module is used for the information according to described port status information acquisition line server, and the mac address information of the line server among the described journal file is compared with the server info that prestores, wherein,
If the mac address information of the line server among the described journal file is not present among the mac address information of the described server info that prestores, then judge inventory profit;
If the mac address information of the described server info that prestores do not exist with described journal file among the mac address information of line server among, then judge loss on disposal; And
If the mac address information of the described server info that prestores is present in the mac address information of the line server among the described journal file, then further judge whether to occur intertwining according to the corresponding port numbers of described line server and online frame position information.
21. the platform of making an inventory as claimed in claim 20, it is characterized in that, described online frame position comparer module, also be used for according to described port status information acquisition idle port information, and according to described idle port information from the corresponding result of information acquisition described idle port information in described frame position with the frame position, and the comparative result that described corresponding result and described idle frame position information is compared to obtain idle frame position.
22. a switch management server is characterized in that, comprising:
Receiver module is for the request of making an inventory that receives the platform transmission of making an inventory;
The order generation module is used for according to described software version information corresponding to acquisition request respective switch of making an inventory, and generates MAC Address crawl order corresponding to described respective switch and be sent to corresponding described switch according to described software version information;
The arrangement feedback module, be used for to receive port information and the corresponding line server information of the respective switch all of the port of respective switch feedback, and port information and the corresponding line server information of described respective switch all of the port is fed back to the described platform of making an inventory.
23. switch management server as claimed in claim 22, it is characterized in that, described arrangement feedback module, also be used for port information and the corresponding line server information of described respective switch all of the port are write to journal file, the described platform of making an inventory obtains described journal file from described switch management server.
24. switch management server as claimed in claim 23, it is characterized in that, described make an inventory the request comprise the management ip address of all switches in machine room name, the machine room and make an inventory the request send the time, the filename of described journal file comprise described make an inventory the request send the time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210065933.XA CN103312530B (en) | 2012-03-13 | 2012-03-13 | Method and system for correspondingly counting on-line server and rack position, and counting platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210065933.XA CN103312530B (en) | 2012-03-13 | 2012-03-13 | Method and system for correspondingly counting on-line server and rack position, and counting platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103312530A true CN103312530A (en) | 2013-09-18 |
CN103312530B CN103312530B (en) | 2017-02-01 |
Family
ID=49137335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210065933.XA Active CN103312530B (en) | 2012-03-13 | 2012-03-13 | Method and system for correspondingly counting on-line server and rack position, and counting platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103312530B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486432A (en) * | 2014-12-19 | 2015-04-01 | 北京百度网讯科技有限公司 | Automatic server asset information input method and device |
CN107483653A (en) * | 2017-08-24 | 2017-12-15 | 郑州云海信息技术有限公司 | The acquisition methods and device of host information in computer room |
CN108234680A (en) * | 2016-12-09 | 2018-06-29 | 成都华为技术有限公司 | The acquisition methods and device of the positioning mapping relations of physical node in storage system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060028352A1 (en) * | 2004-08-03 | 2006-02-09 | Mcnamara Paul T | Integrated real-time automated location positioning asset management system |
US20100100965A1 (en) * | 2004-05-21 | 2010-04-22 | Computer Associates Think, Inc. | System and method for providing remediation management |
CN101867490A (en) * | 2010-06-09 | 2010-10-20 | 中兴通讯股份有限公司 | Maintenance operation system and method |
CN102088377A (en) * | 2011-01-04 | 2011-06-08 | 深圳市易聆科信息技术有限公司 | Man-machine correspondence method and device for assets management |
CN103297287A (en) * | 2012-02-28 | 2013-09-11 | 北京百度网讯科技有限公司 | Network device and rack position information detection method and system and checking platform |
-
2012
- 2012-03-13 CN CN201210065933.XA patent/CN103312530B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100100965A1 (en) * | 2004-05-21 | 2010-04-22 | Computer Associates Think, Inc. | System and method for providing remediation management |
US20060028352A1 (en) * | 2004-08-03 | 2006-02-09 | Mcnamara Paul T | Integrated real-time automated location positioning asset management system |
CN101867490A (en) * | 2010-06-09 | 2010-10-20 | 中兴通讯股份有限公司 | Maintenance operation system and method |
CN102088377A (en) * | 2011-01-04 | 2011-06-08 | 深圳市易聆科信息技术有限公司 | Man-machine correspondence method and device for assets management |
CN103297287A (en) * | 2012-02-28 | 2013-09-11 | 北京百度网讯科技有限公司 | Network device and rack position information detection method and system and checking platform |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104486432A (en) * | 2014-12-19 | 2015-04-01 | 北京百度网讯科技有限公司 | Automatic server asset information input method and device |
CN108234680A (en) * | 2016-12-09 | 2018-06-29 | 成都华为技术有限公司 | The acquisition methods and device of the positioning mapping relations of physical node in storage system |
CN107483653A (en) * | 2017-08-24 | 2017-12-15 | 郑州云海信息技术有限公司 | The acquisition methods and device of host information in computer room |
Also Published As
Publication number | Publication date |
---|---|
CN103312530B (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8792385B2 (en) | Method and device for auto-generating goose signal connection topology from substation level | |
EP1958169B1 (en) | Rfid architecture in an industrial controller environment | |
CN102622247B (en) | The BIOS information configuration-system of server and method | |
CN106055373A (en) | Automatic batch upgrading device and method for unmanned aerial vehicle firmware | |
US10216840B2 (en) | Asset tag template creation from readable elements | |
CN109101381A (en) | Configuration file update method, system, electronic equipment and storage medium | |
CN102571441A (en) | Method, system and device for intelligently managing whole machine cabinet | |
CN103236951A (en) | Method and system for distributing and identifying optical network resource | |
CN107911249A (en) | Order line sending method, device and the equipment of a kind of network equipment | |
US20160101876A1 (en) | Aircraft Troubleshooting Network | |
CN103297287B (en) | The network equipment and rack position information detection method, system and platform of making an inventory | |
CN105141449A (en) | Addition method and device for monitoring configuration | |
CN111800735A (en) | Asset management system and method for Bluetooth networking | |
CN102710436A (en) | Network equipment management method, device, relative equipment and system | |
US20160299826A1 (en) | Device topology definition system | |
CN106403188A (en) | Air conditioner maintenance method and maintenance device thereof | |
CN103237075A (en) | Data synchronizing method, device and system | |
CN103927793A (en) | Patrol system | |
CN103312530A (en) | Method and system for correspondingly counting on-line server and rack position, and counting platform | |
CN112311574B (en) | Network topology connection checking method, device and equipment | |
CN112788576B (en) | Equipment offline processing method and system, storage medium and electronic device | |
CN203492034U (en) | Data center server and asset management system, and server management device | |
CN111523782A (en) | Industrial control asset management method, device, equipment and storage medium | |
CN103957119A (en) | Method for managing network equipment by using MIB file and browser | |
CN103310290A (en) | Remote inventorying method and system for network equipment, and inventorying platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |