Nothing Special   »   [go: up one dir, main page]

CN113094224A - Server asset management method and device, computer equipment and storage medium - Google Patents

Server asset management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113094224A
CN113094224A CN201911322931.2A CN201911322931A CN113094224A CN 113094224 A CN113094224 A CN 113094224A CN 201911322931 A CN201911322931 A CN 201911322931A CN 113094224 A CN113094224 A CN 113094224A
Authority
CN
China
Prior art keywords
server
information
hardware
old
scrapped
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
Application number
CN201911322931.2A
Other languages
Chinese (zh)
Other versions
CN113094224B (en
Inventor
孙海涛
杨林
张建强
窦毅
杨华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Quantong System Integration Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Quantong System Integration Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Quantong System Integration Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201911322931.2A priority Critical patent/CN113094224B/en
Publication of CN113094224A publication Critical patent/CN113094224A/en
Application granted granted Critical
Publication of CN113094224B publication Critical patent/CN113094224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/30Administration of product recycling or disposal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Sustainable Development (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a server asset management method, a server asset management device, computer equipment and a storage medium. The server asset management method comprises the following steps: acquiring server basic information and server identification information input by a user, inputting the server basic information, and inputting server hardware information according to the server identification information; scanning basic information of the server and hardware information of the server at preset time intervals to acquire asset information of the server; when the situation that the server hardware information is not matched occurs in scanning, the server hardware information with a larger timestamp value is stored, and warning information is sent out; and determining whether the server is scrapped or not based on the server asset information, and if so, distributing the scrapped hardware of the server according to the server hardware information. By adopting the server asset management method, the server asset management with higher efficiency can be realized.

Description

Server asset management method and device, computer equipment and storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of management informatization, and in particular, to a server asset management method, apparatus, computer device, and storage medium.
[ background of the invention ]
The full life cycle of the common server asset management comprises warehousing, inventory and scrapping, and the management content of each life cycle is as follows: 1. warehousing the assets of the server: inputting basic information of a manufacturer, a model, a price, a position and the like of the server, and simultaneously inputting hardware information of the server; 2. inventory of server asset information: asset information such as the location of server assets is periodically checked; 3. scrapping a server: the unavailable server is scrapped. However, the existing server asset management needs to consume a large amount of manpower to assist implementation, lacks an efficient server hardware management function, and cannot implement efficient server asset management.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a server asset management method, an apparatus, a computer device, and a storage medium, so as to solve the problem that efficient server asset management cannot be implemented at present.
In a first aspect, an embodiment of the present invention provides a server asset management method, including:
acquiring server basic information and server identification information input by a user, inputting the server basic information, and inputting server hardware information according to the server identification information;
scanning the basic information of the server and the hardware information of the server at preset time intervals to acquire asset information of the server;
when the situation that the server hardware information is not matched occurs in scanning, the server hardware information with a larger timestamp value is stored, and warning information is sent out;
and determining whether the server is scrapped or not based on the server asset information, and if so, distributing the worn hardware of the scrapped server according to the server hardware information.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the server identification information includes an intranet IP address of a server, a ROOT user name, and a server password, and the entering of the server hardware information according to the server identification information includes:
acquiring the server hardware information by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the server password;
and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the server hardware information includes hardware basic information and hardware advanced information, and the scanning the server hardware information to obtain server asset information includes:
scanning and acquiring the hardware basic information and the hardware advanced information by adopting a preset programming language and calling through an interface/instruction of the programming language;
and acquiring the server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
The above aspect and any possible implementation manner further provide an implementation manner, where allocating the obsolete hardware of the obsolete server according to the server hardware information includes:
according to the server hardware information, the scrapped server is allocated to a used resource library;
and distributing the used hardware of the scrapped server according to a distribution instruction based on the used resource library.
The above aspect and any possible implementation manner further provide an implementation manner, where allocating, based on the used resource pool, used hardware of the obsolete server according to an allocation instruction includes:
acquiring the model of a server to be expanded and the requirement information of the worn hardware input by a user;
determining whether a scrapped server with the same type as the server to be expanded exists in a waste resource library according to the type of the server to be expanded;
if yes, determining whether the old hardware meeting the requirement information of the old hardware exists in an old resource library, if yes, generating an old suggestion, generating a distribution instruction after a user confirms the old suggestion, and distributing the old hardware of the scrapped server;
if not, screening in an old resource library according to the type of the old hardware, determining whether the old hardware meeting the requirement information of the old hardware exists, if so, generating an old suggestion, generating a distribution instruction after the user determines the old suggestion, and distributing the old hardware of the scrapped server.
In a second aspect, an embodiment of the present invention provides a server asset management apparatus, including:
the first processing module is used for acquiring server basic information and server identification information input by a user, inputting the server basic information and inputting server hardware information according to the server identification information;
the second processing module is used for scanning the basic information of the server and the hardware information of the server at preset time intervals to acquire asset information of the server;
the third processing module is used for storing the server hardware information with a larger timestamp value and sending out warning information when the situation that the server hardware information is unmatched occurs in the scanning process;
and the fourth processing module is used for determining whether the server is scrapped or not based on the server asset information, and if so, distributing the worn hardware of the scrapped server according to the server hardware information.
Further, the server identification information includes an intranet IP address of the server, a ROOT user name, and a server password, and the first processing module is further specifically configured to:
acquiring the server hardware information by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the server password;
and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
Further, the server hardware information includes hardware basic information and hardware advanced information, and the second processing module is further specifically configured to:
scanning and acquiring the hardware basic information and the hardware advanced information by adopting a preset programming language and calling through an interface/instruction of the programming language;
and acquiring the server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
Further, the fourth processing module is further specifically configured to:
according to the server hardware information, the scrapped server is allocated to a used resource library;
and distributing the used hardware of the scrapped server according to a distribution instruction based on the used resource library.
Further, the fourth processing module is further specifically configured to:
acquiring the model of a server to be expanded and the requirement information of the worn hardware input by a user;
determining whether a scrapped server with the same type as the server to be expanded exists in a waste resource library according to the type of the server to be expanded;
if yes, determining whether the old hardware meeting the requirement information of the old hardware exists in an old resource library, if yes, generating an old suggestion, generating a distribution instruction after a user confirms the old suggestion, and distributing the old hardware of the scrapped server;
if not, screening in an old resource library according to the type of the old hardware, determining whether the old hardware meeting the requirement information of the old hardware exists, if so, generating an old suggestion, generating a distribution instruction after the user determines the old suggestion, and distributing the old hardware of the scrapped server.
In a third aspect, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above server asset management method when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including: computer program for implementing the steps of the above-mentioned server asset management method when executed by a processor.
In the embodiment of the invention, the basic information of the server and the identification information of the server input by a user are firstly obtained, the basic information of the server is input, the hardware information of the server is input according to the identification information of the server, the hardware information of the server can be automatically input into the asset management system of the server by utilizing the identification information of the server, and the input efficiency and the input accuracy of the hardware information of the server are improved; then, scanning basic information of the server and hardware information of the server at preset time intervals to acquire asset information of the server, so that the server can be detected and monitored in time, and a user can know and acquire the asset information of the server in time; when the situation that the server hardware information is not matched is scanned, the server hardware information with a large timestamp value is stored, the alarm information is sent out, the synchronization function of the server hardware information can be realized, and a server which is possibly abnormal is informed to a user and is repaired in time; and finally, determining whether the server is scrapped or not based on the server asset information, if so, distributing the used hardware of the scrapped server according to the server hardware information, and realizing asset value maximization of the scrapped server and intelligent distribution of the used hardware.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow diagram of a server asset management method in one embodiment of the invention;
FIG. 2 is a flowchart of step S42 according to an embodiment of the present invention;
FIG. 3 is a system architecture diagram of a server asset management method in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of a server asset management device in accordance with an embodiment of the present invention;
FIG. 5 is a schematic diagram of a computer device according to an embodiment of the invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely a field that describes the same of an associated object, meaning that three relationships may exist, e.g., A and/or B, may indicate: a is present alone, and A and B are present, B is present alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe preset ranges, etc. in embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, the first preset range may also be referred to as a second preset range, and similarly, the second preset range may also be referred to as the first preset range, without departing from the scope of the embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Fig. 1 shows a flowchart of a server asset management method in the present embodiment. The server asset management method can be applied to a server asset management system, and can be realized by adopting the server asset management system when the server asset management is carried out. The server asset management system can be applied to computer devices, wherein the computer devices are devices capable of performing human-computer interaction with users, and include, but are not limited to, computers, smart phones, tablets and other devices. As shown in fig. 1, the server asset management method includes the steps of:
s10: the method comprises the steps of obtaining server basic information input by a user and server basic information input by the user and input, and inputting server hardware information according to server identification information.
The basic information of the server comprises basic information of a manufacturer, a model, a price, a position of the server and the like. The server identification information includes an identification capable of uniquely identifying the server, and may include identification information such as a password, a user name, and the like required to log in to the server.
In one embodiment, the server asset management system will save and enter based on the server base information entered by the user. And for the server hardware information needing to be input, storing and inputting the server hardware information according to the server identification information input by the user. It can be understood that the basic information of the server is simple, the difference between manual entry and automatic entry is not very large, the hardware information of the server is relatively complex, and the accuracy and efficiency of the manual entry are obviously insufficient, so that the hardware information of the server can be uniquely determined by adopting the server identification information in the implementation, and the hardware information of the server can be automatically entered into the asset management system of the server.
Further, in step S10, the server identification information includes an intranet IP address of the server, a ROOT user name, and a server password, and the server hardware information is entered according to the server identification information, including:
s11: and acquiring the hardware information of the server by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the password of the server.
S12: and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
The hardware automatic monitoring module has a function of calling server hardware information and is preset to acquire the server hardware information from a hardware information storage address of the server.
It can be understood that the server can be uniquely determined by the IP address of the server intranet, the hardware automatic monitoring module can successfully access the server by the ROOT user name and the server (login) password, and the server hardware information is obtained from the hardware information storage address of the server according to the preset function of calling the server hardware information. In one embodiment, the hardware automatic monitoring module monitors server identification information input by a user, accesses a target server according to a server intranet IP address, a ROOT user name and a server password obtained through monitoring, and automatically stores and inputs server hardware information of the target server into a server asset management system.
In steps S11-S12, a specific implementation of entering server hardware information according to server identification information is provided, and a preset hardware automatic monitoring module accesses a target server according to the server identification information obtained through monitoring, and automatically stores and enters the server hardware information of the target server into a server asset management system.
S20: and scanning the basic information of the server and the hardware information of the server at preset time intervals to acquire the asset information of the server.
Wherein the preset time interval indicates that the setting of the time period is variable, for example, taking one day as a time interval or taking three days as a time interval. In an embodiment, the server may be scanned every other day, where the scanning includes scanning basic information of the server and scanning hardware information of the server, and the information is related to the server and can be used as the asset information of the server.
Further, in step S20, the server hardware information includes hardware basic information and hardware advanced information, and the scanning server hardware information and the obtaining server asset information include:
s21: and scanning and acquiring hardware basic information and hardware advanced information by adopting a preset programming language and calling through an interface/instruction of the programming language.
It can be understood that the server hardware information includes basic hardware information and more detailed hardware information, so that the server hardware information can be divided into hardware basic information and hardware advanced information.
In an embodiment, in the scanning stage, the basic information of the server hardware may be obtained by specifically calling an IPMI Interface using a python programming language, where IPMI (Intelligent Platform Management Interface) is an open standard hardware Management Interface specification. In an embodiment, the python programming language may be used to call instructions or tools such as dmicode, MegaCli, fdisk, hdparm, and the like to obtain advanced hardware information. It is understood that the hardware basic information and the hardware advanced information can be obtained by means of interface/instruction call.
S22: and acquiring server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
It is understood that the basic hardware information and the advanced hardware information are server hardware information, and server asset information can be obtained by adding the basic server information.
In steps S21-S22, a specific embodiment of scanning server hardware information and obtaining server asset information is provided, wherein the server hardware information is obtained by scanning and obtaining the server hardware information by calling an IPMI interface using, for example, python programming language.
S30: and when the situation that the server hardware information is not matched occurs in the scanning process, the server hardware information with a larger timestamp value is stored, and warning information is sent.
It can be understood that, the server hardware information is scanned with a synchronization function, and when the server hardware information is not matched, the server hardware information is updated synchronously, and the server hardware information with a larger timestamp value (latest time) is stored. It is understood that the mismatch of the server hardware information may be a failure of the server, or the server may perform an improvement such as capacity expansion, so that the server hardware information is changed. In an embodiment, when there is a mismatch between server hardware information, the server may be considered to have a risk of failure, and an alarm message should be sent in time, such as a mail notification, to notify a user that the server may have a failure and to confirm whether the change of the server hardware information is normal.
S40: and determining whether the server is scrapped or not based on the server asset information, and if so, distributing the scrapped hardware of the server according to the server hardware information.
The server asset information includes basic hardware information of whether the server is scrapped or not, and labels 1 and 0 can be used for respectively representing scrapping and availability. It is understood that whether the server is scrapped or not can be pre-recorded or changed in the server asset information when the server is determined to be failed and scrapped according to the alarm information.
It will be appreciated that the scrapping of a server does not represent that the scrapped server is useless, and there may be a lot of reusable hardware in the scrapped server, which may be used as obsolete hardware, wherein obsolete means that the obsolete resources are fully utilized.
In an embodiment, when it is determined that a server is scrapped, the scrapped hardware of the server can be allocated according to the server hardware information, so that the full utilization of resources is realized.
Further, in step S40, the allocating the obsolete hardware of the obsolete server according to the server hardware information includes:
s41: and distributing the scrapped servers to the used resource libraries according to the server hardware information.
It is understood that the server hardware information includes specific information such as a server model, a CPU, a memory size, a disk capacity, and the like, and may be classified according to the server hardware information by using a preset classification rule. Specifically, the scrapped servers are distributed to the used resource bases according to preset classification rules after classification.
S42: and distributing the worn hardware of the scrapped server according to the distribution instruction based on the worn resource library.
The method can be understood that the allocation information of the scrapped server after allocation is stored in the used resource library, and a user can search the used resource library to obtain the required used hardware in the scrapped server at any time according to needs when the scrapped server is not used. In particular, the allocation will be performed by a user generated allocation instruction.
Further, in step S42, based on the used resource pool, allocating the used hardware of the obsolete server according to the allocation instruction, including:
s421: and acquiring the model of the server to be expanded and the requirement information of the old hardware input by the user.
S422: and determining whether a scrapped server with the same type as the server to be expanded exists in the old-interest resource library according to the type of the server to be expanded.
S423: if yes, determining whether the waste hardware meeting the waste hardware requirement information exists in the waste resource library, if yes, generating a waste suggestion, generating a distribution instruction after a user confirms the waste suggestion, and distributing the waste hardware of the scrapped server.
S424: if not, screening the old-fashioned resource library according to the type of the old-fashioned hardware, determining whether the old-fashioned hardware meeting the requirement information of the old-fashioned hardware exists, if so, generating an old-fashioned suggestion, generating a distributing instruction after the user determines the old-fashioned suggestion, and distributing the old-fashioned hardware of the scrapped server.
In an embodiment, as shown in fig. 2, a server asset management system selects a model of a server to be expanded and inputs demand information of the old hardware on a front-end page, then the front-end transmits the model of the server to be expanded and the demand information of the old hardware to a back-end, and performs intelligent analysis in an intelligent old module at the back-end, specifically, first, it is determined whether there is a scrapped server having the same model as the server to be expanded, if there is a scrapped server having the same model as the server to be expanded, it is determined whether there is old hardware meeting the demand information of the old hardware in an old resource library, if there is old hardware, an old suggestion is generated, and a distributing instruction is generated after a user confirms the old suggestion, and the old hardware of the scrapped server is distributed. If no scrapped server with the same model as the server to be expanded exists, screening in the waste resource library according to the model of the waste hardware, determining whether the waste hardware meeting the requirement information of the waste hardware exists, if so, generating a waste suggestion, generating a distribution instruction after the user determines the waste suggestion, and distributing the waste hardware of the scrapped server.
In the embodiment of the present invention, the overall architecture design of the system may be specifically as shown in fig. 3, and as can be seen from fig. 3, the server asset management system may be summarized as four functional modules of intelligent entry, intelligent monitoring, intelligent discard and intelligent discard, and the four functions of intelligent entry, intelligent monitoring, intelligent discard and intelligent discard are implemented by monitoring and scanning through a hardware monitoring and scanning module (having functions of monitoring and scanning hardware) and by using a manner such as IPMI interface calling.
In the embodiment of the invention, the basic information of the server and the identification information of the server input by a user are firstly obtained, the basic information of the server is input, the hardware information of the server is input according to the identification information of the server, the hardware information of the server can be automatically input into the asset management system of the server by utilizing the identification information of the server, and the input efficiency and the input accuracy of the hardware information of the server are improved; then, scanning basic information of the server and hardware information of the server at preset time intervals to acquire asset information of the server, so that the server can be detected and monitored in time, and a user can know and acquire the asset information of the server in time; when the situation that the server hardware information is not matched is scanned, the server hardware information with a large timestamp value is stored, the alarm information is sent out, the synchronization function of the server hardware information can be realized, and a server which is possibly abnormal is informed to a user and is repaired in time; and finally, determining whether the server is scrapped or not based on the server asset information, if so, distributing the used hardware of the scrapped server according to the server hardware information, and realizing asset value maximization of the scrapped server and intelligent distribution of the used hardware.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Based on the server asset management method provided in the embodiment, the embodiment of the present invention further provides an embodiment of an apparatus for implementing each step and method in the above method embodiment.
Fig. 4 shows a schematic block diagram of a server asset management apparatus in one-to-one correspondence with the server asset management method in the embodiment. As shown in fig. 4, the server asset management device includes a first process module 10, a second process module 20, a third process module 30, and a fourth process module 40. The implementation functions of the first processing module 10, the second processing module 20, the third processing module 30, and the fourth processing module 40 correspond to the steps corresponding to the server asset management method in the embodiment one to one, and for avoiding repeated descriptions, detailed descriptions are not needed in this embodiment.
The first processing module 10 is configured to obtain server basic information and server identification information input by a user, enter the server basic information, and enter server hardware information according to the server identification information.
And the second processing module 20 is configured to scan the server basic information and the server hardware information at preset time intervals, and acquire the server asset information.
And the third processing module 30 is configured to, when the server hardware information is not matched during scanning, store the server hardware information with a larger timestamp value and send out alarm information.
And the fourth processing module 40 is configured to determine whether a server is scrapped based on the server asset information, and if so, allocate the used hardware of the scrapped server according to the server hardware information.
Optionally, the server identification information includes an intranet IP address of the server, a ROOT user name, and a server password, and the first processing module is further specifically configured to:
acquiring server hardware information by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the server password;
and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
Optionally, the server hardware information includes hardware basic information and hardware advanced information, and the second processing module is further specifically configured to:
adopting a preset programming language, and scanning and acquiring hardware basic information and hardware advanced information through interface/instruction calling of the programming language;
and acquiring server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
Optionally, the fourth processing module is further specifically configured to:
according to the server hardware information, distributing the scrapped servers to the used resource libraries;
and distributing the worn hardware of the scrapped server according to the distribution instruction based on the worn resource library.
Optionally, the fourth processing module is further specifically configured to:
acquiring the model of a server to be expanded and the requirement information of the worn hardware input by a user;
determining whether a scrapped server with the same type as the server to be expanded exists in the old-interest resource library according to the type of the server to be expanded;
if yes, determining whether the waste hardware meeting the waste hardware requirement information exists in a waste resource library, if yes, generating a waste suggestion, generating a distribution instruction after a user confirms the waste suggestion, and distributing the waste hardware of the scrapped server;
if not, screening the old-fashioned resource library according to the type of the old-fashioned hardware, determining whether the old-fashioned hardware meeting the requirement information of the old-fashioned hardware exists, if so, generating an old-fashioned suggestion, generating a distributing instruction after the user determines the old-fashioned suggestion, and distributing the old-fashioned hardware of the scrapped server.
In the embodiment of the invention, the basic information of the server and the identification information of the server input by a user are firstly obtained, the basic information of the server is input, the hardware information of the server is input according to the identification information of the server, the hardware information of the server can be automatically input into the asset management system of the server by utilizing the identification information of the server, and the input efficiency and the input accuracy of the hardware information of the server are improved; then, scanning basic information of the server and hardware information of the server at preset time intervals to acquire asset information of the server, so that the server can be detected and monitored in time, and a user can know and acquire the asset information of the server in time; when the situation that the server hardware information is not matched is scanned, the server hardware information with a large timestamp value is stored, the alarm information is sent out, the synchronization function of the server hardware information can be realized, and a server which is possibly abnormal is informed to a user and is repaired in time; and finally, determining whether the server is scrapped or not based on the server asset information, if so, distributing the used hardware of the scrapped server according to the server hardware information, and realizing asset value maximization of the scrapped server and intelligent distribution of the used hardware.
The present embodiment provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for managing server assets in the embodiments is implemented, which is not repeated herein. Alternatively, the computer program is executed by the processor to implement the functions of each module/unit in the server asset management device in the embodiments, which are not described herein again to avoid redundancy.
Fig. 5 is a schematic diagram of a computer device provided by an embodiment of the invention. As shown in fig. 5, the computer apparatus 50 of this embodiment includes: the processor 51, the memory 52, and the computer program 53 stored in the memory 52 and capable of running on the processor 51, where the computer program 53 is executed by the processor 51 to implement the server asset management method in the embodiment, and in order to avoid repetition, details are not repeated herein. Alternatively, the computer program 53 is executed by the processor 51 to implement the functions of each model/unit in the server asset management device in the embodiment, which are not described herein again to avoid redundancy.
The computing device 50 may be a desktop computer, a notebook, a palm top computer, a cloud server, or other computing device. The computer device 50 may include, but is not limited to, a processor 51, a memory 52. Those skilled in the art will appreciate that fig. 5 is merely an example of a computer device 50 and is not intended to limit the computer device 50 and that it may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 51 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 52 may be an internal storage unit of the computer device 50, such as a hard disk or a memory of the computer device 50. The memory 52 may also be an external storage device of the computer device 50, such as a plug-in hard disk provided on the computer device 50, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 52 may also include both internal and external storage devices for the computer device 50. The memory 52 is used to store computer programs and other programs and data required by the computer device. The memory 52 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for server asset management, the method comprising:
acquiring server basic information and server identification information input by a user, inputting the server basic information, and inputting server hardware information according to the server identification information;
scanning the basic information of the server and the hardware information of the server at preset time intervals to acquire asset information of the server;
when the situation that the server hardware information is not matched occurs in scanning, the server hardware information with a larger timestamp value is stored, and warning information is sent out;
and determining whether the server is scrapped or not based on the server asset information, and if so, distributing the worn hardware of the scrapped server according to the server hardware information.
2. The method according to claim 1, wherein the server identification information includes an intranet IP address of a server, a ROOT user name, and a server password, and the entering of the server hardware information according to the server identification information includes:
acquiring the server hardware information by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the server password;
and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
3. The method of claim 1, wherein the server hardware information comprises hardware basic information and hardware advanced information, and the scanning the server hardware information to obtain server asset information comprises:
scanning and acquiring the hardware basic information and the hardware advanced information by adopting a preset programming language and calling through an interface/instruction of the programming language;
and acquiring the server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
4. The method of claim 1, wherein the allocating the obsolete hardware of the obsolete servers according to the server hardware information comprises:
according to the server hardware information, the scrapped server is allocated to a used resource library;
and distributing the used hardware of the scrapped server according to a distribution instruction based on the used resource library.
5. The method according to claim 4, wherein the allocating obsolete hardware of obsolete servers according to allocation instructions based on the obsolete resource pool comprises:
acquiring the model of a server to be expanded and the requirement information of the worn hardware input by a user;
determining whether a scrapped server with the same type as the server to be expanded exists in a waste resource library according to the type of the server to be expanded;
if yes, determining whether the old hardware meeting the requirement information of the old hardware exists in an old resource library, if yes, generating an old suggestion, generating a distribution instruction after a user confirms the old suggestion, and distributing the old hardware of the scrapped server;
if not, screening in an old resource library according to the type of the old hardware, determining whether the old hardware meeting the requirement information of the old hardware exists, if so, generating an old suggestion, generating a distribution instruction after the user determines the old suggestion, and distributing the old hardware of the scrapped server.
6. A server asset management device, characterized in that the device comprises:
the first processing module is used for acquiring server basic information and server identification information input by a user, inputting the server basic information and inputting server hardware information according to the server identification information;
the second processing module is used for scanning the basic information of the server and the hardware information of the server at preset time intervals to acquire asset information of the server;
the third processing module is used for storing the server hardware information with a larger timestamp value and sending out warning information when the situation that the server hardware information is unmatched occurs in the scanning process;
and the fourth processing module is used for determining whether the server is scrapped or not based on the server asset information, and if so, distributing the worn hardware of the scrapped server according to the server hardware information.
7. The apparatus according to claim 6, wherein the server identification information includes an intranet IP address of the server, a ROOT user name, and a server password, and the first processing module is further specifically configured to:
acquiring the server hardware information by adopting a preset hardware automatic monitoring module according to the intranet IP address of the server, the ROOT user name and the server password;
and automatically inputting the hardware information of the server based on the hardware automatic monitoring module.
8. The apparatus of claim 6, wherein the server hardware information includes hardware basic information and hardware advanced information, and the second processing module is further specifically configured to:
scanning and acquiring the hardware basic information and the hardware advanced information by adopting a preset programming language and calling through an interface/instruction of the programming language;
and acquiring the server asset information based on the hardware basic information and the hardware advanced information, wherein the server asset information comprises the server basic information.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the server asset management method according to any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the server asset management method according to any one of claims 1 to 5.
CN201911322931.2A 2019-12-20 2019-12-20 Server asset management method and device, computer equipment and storage medium Active CN113094224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911322931.2A CN113094224B (en) 2019-12-20 2019-12-20 Server asset management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911322931.2A CN113094224B (en) 2019-12-20 2019-12-20 Server asset management method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113094224A true CN113094224A (en) 2021-07-09
CN113094224B CN113094224B (en) 2022-07-29

Family

ID=76662753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911322931.2A Active CN113094224B (en) 2019-12-20 2019-12-20 Server asset management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113094224B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556348A (en) * 2021-07-23 2021-10-26 中能融合智慧科技有限公司 Server asset management system based on integrated monitoring
CN113890818A (en) * 2021-09-28 2022-01-04 广州超云科技有限公司 Equipment replacement alarm method, device, equipment and medium in server
CN115913872A (en) * 2022-11-30 2023-04-04 浪潮(山东)计算机科技有限公司 Server monitoring operation and maintenance method, device, equipment and medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003203112A (en) * 2002-01-08 2003-07-18 Nec Fielding Ltd Computer part reuse assistance system
CN1912843A (en) * 2005-08-10 2007-02-14 英业达股份有限公司 Automatic re-built method and system of access authority after storage device platform transition
US7181574B1 (en) * 2003-01-30 2007-02-20 Veritas Operating Corporation Server cluster using informed prefetching
CN102957567A (en) * 2012-11-09 2013-03-06 北京百度网讯科技有限公司 Server information management method and server management device
CN105335256A (en) * 2014-08-15 2016-02-17 中国电信股份有限公司 Method, device and system for switching backup disks in complete cabinet server
CN105373899A (en) * 2015-12-03 2016-03-02 广州云新信息技术有限公司 Server asset management method and apparatus
US9595019B1 (en) * 2013-03-13 2017-03-14 Allstate Insurance Company Parts inventory management
CN106844145A (en) * 2016-12-29 2017-06-13 北京奇虎科技有限公司 A kind of server hardware fault early warning method and device
CN107526651A (en) * 2016-06-21 2017-12-29 深圳中电长城信息安全系统有限公司 A kind of method and system of disk array backup
CN107544890A (en) * 2017-08-30 2018-01-05 郑州云海信息技术有限公司 The acquisition methods and system of server assets information after equipment hot swap
CN107798086A (en) * 2017-10-19 2018-03-13 福建中金在线信息科技有限公司 Server info update method, device, system and electronic equipment
CN207764802U (en) * 2017-12-06 2018-08-24 广西电网有限责任公司电力科学研究院 A kind of power distribution network synthesis data buffering system hardware platform
CN108880897A (en) * 2018-06-29 2018-11-23 平安科技(深圳)有限公司 Acceptance method, device, computer equipment and the storage medium of server
CN109039692A (en) * 2018-06-01 2018-12-18 广州云新信息技术有限公司 A kind of device configuration management system and method
CN109358998A (en) * 2018-10-10 2019-02-19 郑州云海信息技术有限公司 A kind of server detection method, apparatus and system
CN110443568A (en) * 2019-07-09 2019-11-12 上海易点时空网络有限公司 Server accessory manages method and device, storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003203112A (en) * 2002-01-08 2003-07-18 Nec Fielding Ltd Computer part reuse assistance system
US7181574B1 (en) * 2003-01-30 2007-02-20 Veritas Operating Corporation Server cluster using informed prefetching
CN1912843A (en) * 2005-08-10 2007-02-14 英业达股份有限公司 Automatic re-built method and system of access authority after storage device platform transition
CN102957567A (en) * 2012-11-09 2013-03-06 北京百度网讯科技有限公司 Server information management method and server management device
US9595019B1 (en) * 2013-03-13 2017-03-14 Allstate Insurance Company Parts inventory management
CN105335256A (en) * 2014-08-15 2016-02-17 中国电信股份有限公司 Method, device and system for switching backup disks in complete cabinet server
CN105373899A (en) * 2015-12-03 2016-03-02 广州云新信息技术有限公司 Server asset management method and apparatus
CN107526651A (en) * 2016-06-21 2017-12-29 深圳中电长城信息安全系统有限公司 A kind of method and system of disk array backup
CN106844145A (en) * 2016-12-29 2017-06-13 北京奇虎科技有限公司 A kind of server hardware fault early warning method and device
CN107544890A (en) * 2017-08-30 2018-01-05 郑州云海信息技术有限公司 The acquisition methods and system of server assets information after equipment hot swap
CN107798086A (en) * 2017-10-19 2018-03-13 福建中金在线信息科技有限公司 Server info update method, device, system and electronic equipment
CN207764802U (en) * 2017-12-06 2018-08-24 广西电网有限责任公司电力科学研究院 A kind of power distribution network synthesis data buffering system hardware platform
CN109039692A (en) * 2018-06-01 2018-12-18 广州云新信息技术有限公司 A kind of device configuration management system and method
CN108880897A (en) * 2018-06-29 2018-11-23 平安科技(深圳)有限公司 Acceptance method, device, computer equipment and the storage medium of server
CN109358998A (en) * 2018-10-10 2019-02-19 郑州云海信息技术有限公司 A kind of server detection method, apparatus and system
CN110443568A (en) * 2019-07-09 2019-11-12 上海易点时空网络有限公司 Server accessory manages method and device, storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556348A (en) * 2021-07-23 2021-10-26 中能融合智慧科技有限公司 Server asset management system based on integrated monitoring
CN113890818A (en) * 2021-09-28 2022-01-04 广州超云科技有限公司 Equipment replacement alarm method, device, equipment and medium in server
CN115913872A (en) * 2022-11-30 2023-04-04 浪潮(山东)计算机科技有限公司 Server monitoring operation and maintenance method, device, equipment and medium

Also Published As

Publication number Publication date
CN113094224B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
WO2021073144A1 (en) Distributed file system monitoring method and device, terminal, and storage medium
US8595564B2 (en) Artifact-based software failure detection
CN113094224B (en) Server asset management method and device, computer equipment and storage medium
CN109150572B (en) Method, device and computer readable storage medium for realizing alarm association
US8336099B2 (en) Methods, hardware products, and computer program products for implementing introspection data comparison utilizing hypervisor guest introspection data
CN109117141B (en) Method, device, electronic equipment and computer readable storage medium for simplifying programming
CN109634802B (en) Process monitoring method and terminal equipment
CN110751376B (en) Work order distribution scheduling method and device, computer equipment and storage medium
CN109670091B (en) Metadata intelligent maintenance method and device based on data standard
CN112148700A (en) Log data processing method and device, computer equipment and storage medium
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
CN112131196A (en) Distributed log processing method and device, terminal equipment and storage medium
KR20180044579A (en) System and method for managing container-based distributed application
CN110018932B (en) Method and device for monitoring container magnetic disk
CN115103007A (en) Service discovery method and device based on distributed cloud and readable storage medium
KR20110037969A (en) Targeted user notification of messages in a monitoring system
CN107798086B (en) Server information updating method, device and system and electronic equipment
EP3399483A1 (en) Ticket routing
CN113537845A (en) Task distribution method and device, electronic equipment and computer readable storage medium
US10637741B2 (en) Instance usage facilitating system
CN111400085A (en) Transaction rollback exception processing method and device, computer equipment and storage medium
KR102464688B1 (en) Method and apparatus for detrmining event level of monitoring result
CN115643172A (en) Abnormity detection method, abnormity detection device, terminal equipment and storage medium
US20110251867A1 (en) Method and system for integrated operations and service support
CN114418488B (en) Inventory information processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant