CN113094224B - Server asset management method, apparatus, computer equipment and storage medium - Google Patents
Server asset management method, apparatus, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113094224B CN113094224B CN201911322931.2A CN201911322931A CN113094224B CN 113094224 B CN113094224 B CN 113094224B CN 201911322931 A CN201911322931 A CN 201911322931A CN 113094224 B CN113094224 B CN 113094224B
- Authority
- CN
- China
- Prior art keywords
- server
- information
- hardware
- recycling
- 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.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 62
- 238000004064 recycling Methods 0.000 claims description 53
- 238000012545 processing Methods 0.000 claims description 33
- 238000012544 monitoring process Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 15
- 238000000034 method Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008439 repair process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods 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/0022—Methods 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/30—Administration of product recycling or disposal
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02W—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
- Y02W90/00—Enabling 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, device, computer equipment and storage medium. The server asset management method includes: acquiring basic server information and server identification information input by a user, entering basic server information, and entering server hardware information according to the server identification information; scanning the basic information of the server every preset time interval, and scanning The server hardware information is obtained, and the server asset information is obtained; wherein, when the server hardware information does not match the scan, the server hardware information with a larger timestamp value is saved, and an alarm information is issued; based on the server asset information, it is determined whether the server is scrapped , if it is, according to the server hardware information, the old hardware of the scrapped server will be allocated. The server asset management method can realize high-efficiency server asset management.
Description
【技术领域】【Technical field】
本发明涉及管理信息化领域,尤其涉及一种服务器资产管理方法、装置、计算机设备和存储介质。The present invention relates to the field of management informatization, in particular to a server asset management method, device, computer equipment and storage medium.
【背景技术】【Background technique】
一般服务器资产管理的全生命周期包括入库、盘点和报废,各生命周期管理的内容如下:1、服务器资产入库:录入服务器的生产厂家、型号、价格、位置等基本信息,同时录入服务器的硬件信息;2、服务器资产信息的盘点:不定期盘点服务器资产的位置等资产信息;3、服务器报废:报废不可用的服务器。然而,目前的服务器资产管理需要耗费大量的人力来辅助实现,缺少高效的服务器硬件管理功能,无法实现效率较高的服务器资产管理。Generally, the whole life cycle of server asset management includes storage, inventory and scrapping. The contents of each life cycle management are as follows: 1. Server asset storage: enter the basic information such as the manufacturer, model, price, and location of the server, and enter the server's information at the same time. Hardware information; 2. Inventory of server asset information: Inventory the location of server assets and other asset information from time to time; 3. Server scrap: scrap the unavailable server. However, the current server asset management requires a lot of manpower to assist in the realization, lacks efficient server hardware management functions, and cannot achieve efficient server asset management.
【发明内容】[Content of the Invention]
有鉴于此,本发明实施例提供了一种服务器资产管理方法、装置、计算机设备和存储介质,用以解决目前无法实现效率较高的服务器资产管理的问题。In view of this, the embodiments of the present invention provide a server asset management method, apparatus, computer equipment and storage medium, so as to solve the problem that high-efficiency server asset management cannot be realized at present.
第一方面,本发明实施例提供了一种服务器资产管理方法,包括:In a first aspect, an embodiment of the present invention provides a server asset management method, including:
获取用户输入的服务器基本信息和服务器标识信息,录入所述服务器基本信息,以及根据所述服务器标识信息录入服务器硬件信息;Obtain the server basic information and server identification information input by the user, enter the server basic information, and enter the server hardware information according to the server identification information;
每隔一预设的时间间隔,扫描所述服务器基本信息,以及扫描所述服务器硬件信息,获取服务器资产信息;Every preset time interval, scan the basic information of the server, and scan the hardware information of the server to obtain the server asset information;
其中,当扫描出现所述服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息;Wherein, when a situation in which the server hardware information does not match occurs in the scan, the server hardware information with a larger timestamp value is saved, and an alarm message is issued;
基于所述服务器资产信息确定是否出现服务器报废的情况,若是,根据所述服务器硬件信息将报废服务器的利旧硬件进行分配。Based on the server asset information, it is determined whether the server is scrapped, and if so, the scrapped server's used hardware is allocated according to the server hardware information.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述服务器标识信息包括服务器内网IP地址、ROOT用户名称和服务器密码,所述根据所述服务器标识信息录入服务器硬件信息,包括:The above-mentioned aspect and any possible implementation mode further provide an implementation mode, the server identification information includes the server intranet IP address, the ROOT user name and the server password, and the server hardware is entered according to the server identification information. information, including:
采用预设的硬件自动监控模块,根据所述服务器内网IP地址、ROOT用户名称和服务器密码,获取所述服务器硬件信息;Adopt a preset hardware automatic monitoring module to obtain the server hardware information according to the server intranet IP address, ROOT user name and server password;
基于所述硬件自动监控模块,自动录入所述服务器硬件信息。Based on the hardware automatic monitoring module, the server hardware information is automatically entered.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述服务器硬件信息包括硬件基本信息和硬件进阶信息,所述扫描所述服务器硬件信息,获取服务器资产信息,包括:The above aspects and any possible implementation manners further provide an implementation manner, wherein the server hardware information includes hardware basic information and hardware advanced information, and the scanning of the server hardware information to obtain server asset information includes: :
采用预设的编程语言,通过所述编程语言的接口/指令调用,扫描并获取所述硬件基本信息和硬件进阶信息;Using a preset programming language, through the interface/instruction call of the programming language, scan and acquire the hardware basic information and hardware advanced information;
基于所述硬件基本信息和硬件进阶信息获取所述服务器资产信息,其中,所述服务器资产信息包括所述服务器基本信息。The server asset information is acquired based on the hardware basic information and the hardware advanced information, wherein the server asset information includes the server basic information.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述服务器硬件信息将报废服务器的利旧硬件进行分配,包括:According to the above aspect and any possible implementation manner, an implementation manner is further provided, wherein according to the server hardware information, allocating the used hardware of the scrapped server, including:
根据所述服务器硬件信息,将所述报废服务器分配到利旧资源库中;according to the server hardware information, allocating the scrapped server to the recycling resource pool;
基于所述利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配。Based on the recycling resource pool, the recycling hardware of the scrapped server is allocated according to the allocation instruction.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述基于所述利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配,包括:The above-mentioned aspects and any possible implementation manners further provide an implementation manner, wherein based on the recycling resource library, the recycling hardware of the scrapped server is allocated according to the allocation instruction, including:
获取用户输入的待扩容服务器型号和利旧硬件需求信息;Obtain the information of the server model to be expanded and the demand information of the old hardware entered by the user;
根据所述待扩容服务器型号在利旧资源库中确定是否存在与所述待扩容服务器相同型号的报废服务器;According to the model of the server to be expanded, determine whether there is a scrapped server of the same model as the server to be expanded in the old resource library;
若有,确定在利旧资源库中是否存在满足所述利旧硬件需求信息的利旧硬件,若有,生成利旧建议,并在用户确认所述利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配;If so, determine whether there is recyclable hardware that meets the recyclable hardware requirement information in the recyclable resource library, if so, generate a recycling suggestion, and generate an allocation instruction after the user confirms the recycling suggestion, and scrap the server distribution of old hardware;
若无,按照利旧硬件型号在利旧资源库中进行筛选,确认是否存在满足所述利旧硬件需求信息的利旧硬件,若存在,生成利旧建议,并在用户确认所述利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配。If not, filter the recyclable resource library according to the recyclable hardware model to confirm whether there is any recyclable hardware that meets the recyclable hardware requirement information. Then, an allocation instruction is generated, and the used hardware of the scrapped server is allocated.
第二方面,本发明实施例提供了一种服务器资产管理装置,包括:In a second aspect, an embodiment of the present invention provides a server asset management device, including:
第一处理模块,用于获取用户输入的服务器基本信息和服务器标识信息,录入所述服务器基本信息,以及根据所述服务器标识信息录入服务器硬件信息;a first processing module, configured to obtain the server basic information and server identification information input by the user, enter the server basic information, and enter the server hardware information according to the server identification information;
第二处理模块,用于每隔一预设的时间间隔,扫描所述服务器基本信息,以及扫描所述服务器硬件信息,获取服务器资产信息;The second processing module is configured to scan the basic information of the server and scan the hardware information of the server every preset time interval to obtain the asset information of the server;
第三处理模块,用于当扫描出现所述服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息;a third processing module, configured to save the server hardware information with a larger timestamp value and issue an alarm message when the server hardware information does not match in the scan;
第四处理模块,用于基于所述服务器资产信息确定是否出现服务器报废的情况,若是,根据所述服务器硬件信息将报废服务器的利旧硬件进行分配。The fourth processing module is configured to determine whether the server is scrapped based on the server asset information, and if so, allocate the scrapped server's used hardware according to the server hardware information.
进一步地,所述服务器标识信息包括服务器内网IP地址、ROOT用户名称和服务器密码,所述第一处理模块还具体用于:Further, the server identification information includes the server intranet IP address, ROOT user name and server password, and the first processing module is also specifically used for:
采用预设的硬件自动监控模块,根据所述服务器内网IP地址、ROOT用户名称和服务器密码,获取所述服务器硬件信息;Adopt a preset hardware automatic monitoring module to obtain the server hardware information according to the server intranet IP address, ROOT user name and server password;
基于所述硬件自动监控模块,自动录入所述服务器硬件信息。Based on the hardware automatic monitoring module, the server hardware information is automatically entered.
进一步地,所述服务器硬件信息包括硬件基本信息和硬件进阶信息,所述第二处理模块还具体用于:Further, the server hardware information includes hardware basic information and hardware advanced information, and the second processing module is also specifically used for:
采用预设的编程语言,通过所述编程语言的接口/指令调用,扫描并获取所述硬件基本信息和硬件进阶信息;Using a preset programming language, through the interface/instruction call of the programming language, scan and acquire the hardware basic information and hardware advanced information;
基于所述硬件基本信息和硬件进阶信息获取所述服务器资产信息,其中,所述服务器资产信息包括所述服务器基本信息。The server asset information is acquired based on the hardware basic information and the hardware advanced information, wherein the server asset information includes the server basic information.
进一步地,所述第四处理模块还具体用于:Further, the fourth processing module is also specifically used for:
根据所述服务器硬件信息,将所述报废服务器分配到利旧资源库中;according to the server hardware information, allocating the scrapped server to the recycling resource pool;
基于所述利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配。Based on the recycling resource pool, the recycling hardware of the scrapped server is allocated according to the allocation instruction.
进一步地,所述第四处理模块还具体用于:Further, the fourth processing module is also specifically used for:
获取用户输入的待扩容服务器型号和利旧硬件需求信息;Obtain the information of the server model to be expanded and the demand information of the old hardware entered by the user;
根据所述待扩容服务器型号在利旧资源库中确定是否存在与所述待扩容服务器相同型号的报废服务器;According to the model of the server to be expanded, determine whether there is a scrapped server of the same model as the server to be expanded in the old resource library;
若有,确定在利旧资源库中是否存在满足所述利旧硬件需求信息的利旧硬件,若有,生成利旧建议,并在用户确认所述利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配;If so, determine whether there is recyclable hardware that meets the recyclable hardware requirement information in the recyclable resource library, if so, generate a recycling suggestion, and generate an allocation instruction after the user confirms the recycling suggestion, and scrap the server distribution of old hardware;
若无,按照利旧硬件型号在利旧资源库中进行筛选,确认是否存在满足所述利旧硬件需求信息的利旧硬件,若存在,生成利旧建议,并在用户确认所述利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配。If not, filter the recyclable resource library according to the recyclable hardware model to confirm whether there is any recyclable hardware that meets the recyclable hardware requirement information. Then, an allocation instruction is generated, and the used hardware of the scrapped server is allocated.
第三方面,一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述服务器资产管理方法的步骤。In a third aspect, a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the above server asset management method when executing the computer program A step of.
第四方面,本发明实施例提供了一种计算机可读存储介质,包括:计算机程序,所述计算机程序被处理器执行时实现上述服务器资产管理方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, including: a computer program, when the computer program is executed by a processor, implementing the steps of the foregoing server asset management method.
在本发明实施例中,首先获取用户输入的服务器基本信息和服务器标识信息,录入服务器基本信息,以及根据服务器标识信息录入服务器硬件信息,能够利用服务器标识信息自动将服务器硬件信息导入到服务器资产管理系统中,提高服务器硬件信息导入的效率及准确率;然后,每隔一预设的时间间隔,扫描服务器基本信息,以及扫描服务器硬件信息,获取服务器资产信息,能够对服务器进行及时的检测及监控,帮助用户及时了解并获取服务器资产信息;其中,当扫描出现服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息,能够实现服务器硬件信息的同步功能,并将可能出现异常的服务器告知用户,以及时进行修复;最后,基于服务器资产信息确定是否出现服务器报废的情况,若是,根据服务器硬件信息将报废服务器的利旧硬件进行分配,能够实现报废服务器的资产价值最大化和利旧硬件的智能化分配,在本发明实施例中,通过对服务器资产管理全生命周期的智能管理,实现了效率较高的服务器资产管理。In the embodiment of the present invention, the basic information of the server and the server identification information input by the user are first obtained, the basic information of the server is entered, and the hardware information of the server is entered according to the identification information of the server, and the hardware information of the server can be automatically imported into the server asset management by using the server identification information In the system, the efficiency and accuracy of importing server hardware information are improved; then, every preset time interval, the basic information of the server is scanned, and the hardware information of the server is scanned to obtain the information of the server assets, which can detect and monitor the server in time. , to help users understand and obtain server asset information in a timely manner; among them, when the server hardware information does not match in the scan, the server hardware information with a larger timestamp value is saved, and an alarm information is issued, which can realize the synchronization function of the server hardware information. Inform the user of the server that may be abnormal, and repair it in time; finally, determine whether the server is scrapped based on the server asset information. Maximizing asset value and intelligent allocation of used hardware, in the embodiment of the present invention, through the intelligent management of the entire life cycle of server asset management, high-efficiency server asset management is realized.
【附图说明】[Description of drawings]
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1是本发明一实施例中服务器资产管理方法的一流程图;1 is a flowchart of a server asset management method in an embodiment of the present invention;
图2是本发明一实施例中步骤S42中的一流程图;FIG. 2 is a flowchart in step S42 in an embodiment of the present invention;
图3是本发明一实施例中服务器资产管理方法的一系统架构图;3 is a system architecture diagram of a server asset management method in an embodiment of the present invention;
图4是本发明一实施例中服务器资产管理装置的一示意图;4 is a schematic diagram of a server asset management apparatus in an embodiment of the present invention;
图5是本发明一实施例中计算机设备的一示意图。FIG. 5 is a schematic diagram of a computer device in an embodiment of the present invention.
【具体实施方式】【Detailed ways】
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solutions of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的相同的字段,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,且存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only one of the same fields to describe the associated objects, indicating that three relationships can exist, for example, A and/or B, can mean: A alone exists, and A exists and B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
应当理解,尽管在本发明实施例中可能采用术语第一、第二、第三等来描述预设范围等,但这些预设范围不应限于这些术语。这些术语仅用来将预设范围彼此区分开。例如,在不脱离本发明实施例范围的情况下,第一预设范围也可以被称为第二预设范围,类似地,第二预设范围也可以被称为第一预设范围。It should be understood that although the terms first, second, third, etc. may be used in the embodiments of the present invention to describe the preset range and the like, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from one another. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determining" or "in response to detecting." Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".
图1示出本实施例中服务器资产管理方法的一流程图。该服务器资产管理方法可应用在服务器资产管理系统上,在进行服务器资产管理时可采用该服务器资产管理系统实现。该服务器资产管理系统具体可应用在计算机设备上,其中,该计算机设备是可与用户进行人机交互的设备,包括但不限于电脑、智能手机和平板等设备。如图1所示,该服务器资产管理方法包括如下步骤:FIG. 1 shows a flowchart of the server asset management method in this embodiment. The server asset management method can be applied to a server asset management system, and the server asset management system can be used to implement the server asset management. The server asset management system can be specifically applied to computer equipment, wherein the computer equipment is a device that can perform human-computer interaction with a user, including but not limited to devices such as computers, smart phones, and tablets. As shown in Figure 1, the server asset management method includes the following steps:
S10:获取用户输入的服务器基本信息和用户输入的,录入服务器基本信息,以及根据服务器标识信息录入服务器硬件信息。S10: Acquire the basic information of the server input by the user and the basic information of the server input by the user, and input the hardware information of the server according to the server identification information.
其中,服务器基本信息包括服务器的生产厂家、型号、价格、所在位置等基本信息。服务器标识信息包括能够唯一识别服务器的标识,以及可包括登录服务器所需的密码、用户名等标识信息。The basic information of the server includes basic information such as the manufacturer, model, price, and location of the server. The server identification information includes an identification that can uniquely identify the server, and may include identification information such as password and user name required to log in to the server.
在一实施例中,服务器资产管理系统将根据用户输入的服务器基本信息,保存并录入。而对于需要录入的服务器硬件信息,则根据用户输入的服务器标识信息保存并录入。可以理解地,服务器基本信息比较简单,人工录入或自动录入差别不是很大,而服务器硬件信息则相对复杂,人工录入的准确率、效率都存在明显不足,故在本实施中具体可采用服务器标识信息唯一确定服务器硬件信息,并将服务器硬件信息自动录入到服务器资产管理系统中。In one embodiment, the server asset management system will save and input the basic information of the server entered by the user. For the server hardware information that needs to be entered, it is saved and entered according to the server identification information input by the user. Understandably, the basic information of the server is relatively simple, and the difference between manual entry and automatic entry is not very large, while the server hardware information is relatively complex, and the accuracy and efficiency of manual entry are obviously insufficient. Therefore, in this implementation, the server identification can be used. The information uniquely determines the server hardware information, and automatically enters the server hardware information into the server asset management system.
进一步地,在步骤S10中,服务器标识信息包括服务器内网IP地址、ROOT用户名称和服务器密码,根据服务器标识信息录入服务器硬件信息,包括:Further, in step S10, the server identification information includes the server intranet IP address, the ROOT user name and the server password, and the server hardware information is entered according to the server identification information, including:
S11:采用预设的硬件自动监控模块,根据服务器内网IP地址、ROOT用户名称和服务器密码,获取服务器硬件信息。S11: Use the preset hardware automatic monitoring module to obtain server hardware information according to the server's intranet IP address, ROOT user name and server password.
S12:基于硬件自动监控模块,自动录入服务器硬件信息。S12: Based on the hardware automatic monitoring module, the server hardware information is automatically entered.
其中,该硬件自动监控模块具有调用服务器硬件信息的功能,预设置为在服务器的硬件信息存储地址中获取服务器硬件信息。Wherein, the hardware automatic monitoring module has the function of calling the hardware information of the server, and is preset to obtain the hardware information of the server in the hardware information storage address of the server.
可以理解地,通过服务器内网IP地址可以唯一确定服务器,通过ROOT用户名称和服务器(登录)密码可使硬件自动监控模块成功访问接入到服务器中,并根据预设置的调用服务器硬件信息的功能,在服务器的硬件信息存储地址中获取服务器硬件信息。在一实施例中,硬件自动监控模块监控用户输入的服务器标识信息,根据监控获取到的服务器内网IP地址、ROOT用户名称和服务器密码访问目标服务器,并自动将目标服务器的服务器硬件信息保存并录入到服务器资产管理系统中。Understandably, the server can be uniquely determined through the server's intranet IP address, and the hardware automatic monitoring module can be successfully accessed and connected to the server through the ROOT user name and server (login) password, and the function of calling the server hardware information according to the preset function. , and obtain the server hardware information from the hardware information storage address of the server. In one embodiment, the hardware automatic monitoring module monitors the server identification information input by the user, accesses the target server according to the server intranet IP address, ROOT user name and server password obtained by monitoring, and automatically saves and automatically stores the server hardware information of the target server. Enter into the server asset management system.
在步骤S11-S12中,提供了一种根据服务器标识信息录入服务器硬件信息的具体实施方式,通过预设的硬件自动监控模块,根据监控获取到的服务器标识信息访问目标服务器,并自动将目标服务器的服务器硬件信息保存并录入到服务器资产管理系统中。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 the target server according to the server identification information obtained by monitoring, and automatically records the target server. The server hardware information is saved and entered into the server asset management system.
S20:每隔一预设的时间间隔,扫描服务器基本信息,以及扫描服务器硬件信息,获取服务器资产信息。S20: Scan the basic information of the server and scan the hardware information of the server every preset time interval to obtain the information of the server assets.
其中,预设的时间间隔表示时间段的设置是可变的,例如取一天作为一个时间间隔,或者取三天作为一个时间间隔。在一实施例中,具体可以是每隔一天便对服务器进行一次扫描,其中,包括对服务器基本信息的扫描和服务器硬件信息的扫描,这些信息都与服务器相关,均可作为服务器资产信息。The preset time interval indicates that the setting of the time period is variable, for example, one day is taken as a time interval, or three days are taken as a time interval. In one embodiment, the server may be scanned every other day, including scanning of basic information of the server and scanning of server hardware information, all of which are related to the server and can be used as server asset information.
进一步地,在步骤S20中,服务器硬件信息包括硬件基本信息和硬件进阶信息,扫描服务器硬件信息,获取服务器资产信息,包括:Further, in step S20, the server hardware information includes hardware basic information and hardware advanced information, and the server hardware information is scanned to obtain server asset information, including:
S21:采用预设的编程语言,通过编程语言的接口/指令调用,扫描并获取硬件基本信息和硬件进阶信息。S21: Use a preset programming language to scan and acquire basic hardware information and advanced hardware information through the interface/instruction call of the programming language.
可以理解地,服务器硬件信息中有基本的硬件信息和较为详细的硬件信息,因此可将服务器硬件信息分为硬件基本信息和硬件进阶信息。Understandably, the server hardware information includes basic hardware information and more detailed hardware information, so the server hardware information can be divided into basic hardware information and advanced hardware information.
在一实施例中,在扫描阶段,具体可以采用python编程语言调用IPMI接口的方式获取服务器硬件基本信息,其中,IPMI(Intelligent Platform Management Interface,智能平台管理接口)是一个开放的标准硬件管理接口规范。在一实施例中,具体还可以采用python编程语言调用dmicode、MegaCli、fdisk、hdparm等指令或工具获取进阶硬件信息。可以理解地,可通过接口/指令调用的方式获取硬件基本信息和硬件进阶信息。In one embodiment, in the scanning stage, the basic information of the server hardware can be obtained by calling the IPMI interface using the python programming language, wherein the IPMI (Intelligent Platform Management Interface, intelligent platform management interface) is an open standard hardware management interface specification. . In one embodiment, the python programming language may also be used to call instructions or tools such as dmicode, MegaCli, fdisk, hdparm, etc., to obtain advanced hardware information. Understandably, the basic hardware information and the advanced hardware information can be acquired by means of an interface/instruction call.
S22:基于硬件基本信息和硬件进阶信息获取服务器资产信息,其中,服务器资产信息包括服务器基本信息。S22: Acquire server asset information based on basic hardware information and advanced hardware information, where the server asset information includes basic server information.
可以理解地,硬件基本信息和硬件进阶信息为服务器硬件信息,加上服务器基本信息,可得到服务器资产信息。Understandably, the basic hardware information and the advanced hardware information are server hardware information, and the server asset information can be obtained by adding the basic server information.
在步骤S21-S22中,提供了一种扫描服务器硬件信息,获取服务器资产信息的具体实施方式,通过采用如python编程语言调用IPMI接口等方式扫描获取得到服务器硬件信息,获取服务器资产信息。In steps S21-S22, a specific implementation manner of scanning server hardware information to obtain server asset information is provided, and the server hardware information and server asset information are obtained by scanning and obtaining the server hardware information by invoking the IPMI interface using a programming language such as python.
S30:当扫描出现服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息。S30: When the server hardware information does not match in the scan, save the server hardware information with a larger timestamp value, and issue an alarm message.
可以理解地,扫描服务器硬件信息的过程中是有同步功能的,当有服务器硬件信息不匹配时,则对服务器硬件信息进行同步更新,保存时间戳值较大(时间最新)的服务器硬件信息。可以理解地,服务器硬件信息不匹配有可能是服务器出现故障,也有可能是服务器进行扩容等改进,使得服务器硬件信息发生改变。在一实施例中,当存在服务器硬件信息不匹配时,可认为服务器有出现故障的风险,应当及时发出告警信息,如邮件通知的方式,告知用户服务器可能出现故障,需要确认服务器硬件信息的改变是否正常。Understandably, there is a synchronization function in the process of scanning the server hardware information. When the server hardware information does not match, the server hardware information is updated synchronously, and the server hardware information with a larger timestamp value (the latest time) is saved. Understandably, if the server hardware information does not match, the server may be faulty, or the server may undergo improvements such as capacity expansion, which changes the server hardware information. In one embodiment, when the server hardware information does not match, it can be considered that the server has a risk of failure, and an alarm message should be issued in time, such as an email notification, to inform the user that the server may fail, and it is necessary to confirm the change of the server hardware information. Is it normal.
S40:基于服务器资产信息确定是否出现服务器报废的情况,若是,根据服务器硬件信息将报废服务器的利旧硬件进行分配。S40: Determine whether the server is scrapped based on the server asset information, and if so, allocate the scrapped server's used hardware according to the server hardware information.
其中,服务器资产信息包括服务器是否报废的硬件基本信息,可以采用标识1和0分别表示报废和可用。可以理解地,服务器是否报废可以是预先录入的,或者是在根据告警信息确定服务器出现故障、出现服务器报废时,在服务器资产信息中更改的。Wherein, the server asset information includes basic hardware information of whether the server is scrapped, and identifiers 1 and 0 may be used to indicate scrapped and available, respectively. Understandably, whether the server is scrapped may be pre-entered, or changed in the server asset information when it is determined according to the alarm information that the server is faulty or scrapped.
可以理解地,服务器报废不代表该报废服务器就没有价值,该报废服务器中可能存在许多可继续使用的硬件,这些硬件可作为利旧硬件,其中,利旧是指充分利用旧有资源的意思。Understandably, scrapping a server does not mean that the scrapped server has no value. There may be many pieces of hardware that can continue to be used in the scrapped server, and these pieces of hardware can be used as used hardware. Recycling means making full use of old resources.
在一实施例中,在确定有服务器报废的情况下,可根据服务器硬件信息将报废服务器的利旧硬件进行分配,实现资源的充分利用。In one embodiment, when it is determined that a server is scrapped, the scrapped server hardware can be allocated according to the server hardware information, so as to achieve full utilization of resources.
进一步地,在步骤S40中,根据服务器硬件信息将报废服务器的利旧硬件进行分配,包括:Further, in step S40, according to the server hardware information, the disused hardware of the scrapped server is allocated, including:
S41:根据服务器硬件信息,将报废服务器分配到利旧资源库中。S41: According to the server hardware information, the scrapped server is allocated to the recycling resource library.
可以理解地,服务器硬件信息包括如服务器型号、CPU、内存大小、磁盘容量等具体的信息,可采用预设的分类规则,根据服务器硬件信息进行分类。具体地,在分类后将报废服务器按照预设的分类规则分配到利旧资源库中。It can be understood that the server hardware information includes specific information such as server model, CPU, memory size, disk capacity, etc., and can be classified according to the server hardware information by using a preset classification rule. Specifically, after the classification, the scrapped servers are allocated to the recyclable resource library according to the preset classification rules.
S42:基于利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配。S42: Allocate the recyclable hardware of the scrapped server according to the allocation instruction based on the recyclable resource library.
可以理解地,分配后的报废服务器的分配信息存储在利旧资源库中,在未被使用时用户可以随时根据需要,通过查找利旧资源库获取报废服务器中所需的利旧硬件。具体地,将通过用户生成的分配指令执行分配。It is understandable that the allocated information of the scrapped server is stored in the scrapped resource library, and the user can obtain scrapped hardware required in the scrapped server by searching the scrapped resource library at any time as needed when not in use. Specifically, the allocation will be performed by user-generated allocation instructions.
进一步地,在步骤S42中,基于利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配,包括:Further, in step S42, based on the recycling resource library, the recycling hardware of the scrapped server is allocated according to the allocation instruction, including:
S421:获取用户输入的待扩容服务器型号和利旧硬件需求信息。S421 : Acquire the model of the server to be expanded and the information on the requirement of old hardware input by the user.
S422:根据待扩容服务器型号在利旧资源库中确定是否存在与待扩容服务器相同型号的报废服务器。S422: According to the model of the server to be expanded, determine whether there is an obsolete server of the same model as the server to be expanded in the old resource library.
S423:若有,确定在利旧资源库中是否存在满足利旧硬件需求信息的利旧硬件,若有,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服器的利旧硬件进行分配。S423: If there is, determine whether there is recyclable hardware that meets the recyclable hardware requirement information in the recyclable resource library, and if so, generate a recycling suggestion, and generate an allocation instruction after the user confirms the recycling suggestion, and scrap the server's Distribute using old hardware.
S424:若无,按照利旧硬件型号在利旧资源库中进行筛选,确认是否存在满足利旧硬件需求信息的利旧硬件,若存在,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配。S424: If there is none, filter the recyclable resource library according to the recyclable hardware model, and confirm whether there is any recyclable hardware that meets the recyclable hardware requirement information. If so, generate a recycling suggestion, and generate the recycling suggestion after the user confirms the recycling suggestion. Allocate instruction to distribute the old hardware of the scrapped server.
在一实施例中,如图2所示,服务器资产管理系统在前端页面选择待扩容服务器型号和输入利旧硬件需求信息,随后,前端将待扩容服务器型号和利旧硬件需求信息传输到后端,在后端的智能利旧模块中进行智能分析,具体地,首先判断是否存在与待扩容服务器同型号的报废服务器,若存在与待扩容服务器同型号的报废服务器,确定在利旧资源库中是否存在满足利旧硬件需求信息的利旧硬件,若有,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服器的利旧硬件进行分配。若不存在与待扩容服务器同型号的报废服务器,按照利旧硬件型号在利旧资源库中进行筛选,确认是否存在满足利旧硬件需求信息的利旧硬件,若存在,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配。In one embodiment, as shown in FIG. 2 , the server asset management system selects the model of the server to be expanded on the front-end page and inputs the information on the demand for the old hardware, and then the front end transmits the model of the server to be expanded and the information on the demand for the old hardware to the back end. , carry out intelligent analysis in the intelligent recycling module at the back end. Specifically, first determine whether there is a scrapped server of the same model as the server to be expanded. If there is a scrapped server of the same model as the server to be expanded, determine whether it is in the recycling resource library. There is recyclable hardware that meets the recyclable hardware requirement information. If there is any recyclable hardware, a recycling suggestion is generated, and after the user confirms the recycling suggestion, an allocation instruction is generated, and the recycling hardware of the scrapped server is allocated. If there is no obsolete server of the same model as the server to be expanded, filter the recyclable resource library according to the recyclable hardware model to confirm whether there is recyclable hardware that meets the information required for recyclable hardware. After the user confirms the recycling proposal, an allocation instruction is generated, and the recycling hardware of the scrapped server is allocated.
在本发明实施例中,其整体架构设计具体可以如图3所示,从图3可以看出,服务器资产管理系统可以概括为智能录入、智能监测、智能报废、智能利旧四个功能模块,并通过硬件监控扫描模块(具有对硬件监控、扫描的功能),采用如IPMI接口调用的方式进行监控和扫描,实现智能录入、智能监测、智能报废、智能利旧该四种功能。In the embodiment of the present invention, the overall architecture design can be specifically shown in Figure 3. It can be seen from Figure 3 that the server asset management system can be summarized into four functional modules: intelligent entry, intelligent monitoring, intelligent scrapping, and intelligent recycling. And through the hardware monitoring and scanning module (with the functions of hardware monitoring and scanning), monitoring and scanning are carried out by means of IPMI interface calls, so as to realize the four functions of intelligent entry, intelligent monitoring, intelligent scrapping, and intelligent recycling.
在本发明实施例中,首先获取用户输入的服务器基本信息和服务器标识信息,录入服务器基本信息,以及根据服务器标识信息录入服务器硬件信息,能够利用服务器标识信息自动将服务器硬件信息导入到服务器资产管理系统中,提高服务器硬件信息导入的效率及准确率;然后,每隔一预设的时间间隔,扫描服务器基本信息,以及扫描服务器硬件信息,获取服务器资产信息,能够对服务器进行及时的检测及监控,帮助用户及时了解并获取服务器资产信息;其中,当扫描出现服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息,能够实现服务器硬件信息的同步功能,并将可能出现异常的服务器告知用户,以及时进行修复;最后,基于服务器资产信息确定是否出现服务器报废的情况,若是,根据服务器硬件信息将报废服务器的利旧硬件进行分配,能够实现报废服务器的资产价值最大化和利旧硬件的智能化分配,在本发明实施例中,通过对服务器资产管理全生命周期的智能管理,实现了效率较高的服务器资产管理。In the embodiment of the present invention, the basic information of the server and the server identification information input by the user are first obtained, the basic information of the server is entered, and the hardware information of the server is entered according to the identification information of the server, and the hardware information of the server can be automatically imported into the server asset management by using the server identification information In the system, the efficiency and accuracy of importing server hardware information are improved; then, every preset time interval, the basic information of the server is scanned, and the hardware information of the server is scanned to obtain the information of the server assets, which can detect and monitor the server in time. , to help users understand and obtain server asset information in a timely manner; among them, when the server hardware information does not match in the scan, the server hardware information with a larger timestamp value is saved, and an alarm information is issued, which can realize the synchronization function of the server hardware information. Inform the user of the server that may be abnormal, and repair it in time; finally, determine whether the server is scrapped based on the server asset information. Maximizing asset value and intelligent allocation of used hardware, in the embodiment of the present invention, through the intelligent management of the entire life cycle of server asset management, high-efficiency server asset management is realized.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
基于实施例中所提供的服务器资产管理方法,本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实施例。Based on the server asset management methods provided in the embodiments, the embodiments of the present invention further provide device embodiments for implementing the steps and methods in the above method embodiments.
图4示出与实施例中服务器资产管理方法一一对应的服务器资产管理装置的原理框图。如图4所示,该服务器资产管理装置包括第一处理模块10、第二处理模块20、第三处理模块30、第四处理模块40。其中,第一处理模块10、第二处理模块20、第三处理模块30、第四处理模块40的实现功能与实施例中服务器资产管理方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。FIG. 4 shows a principle block diagram of a server asset management apparatus corresponding to the server asset management method in the embodiment one-to-one. As shown in FIG. 4 , the server asset management apparatus includes a first processing module 10 , a second processing module 20 , a third processing module 30 , and a fourth processing 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 are in one-to-one correspondence with the steps corresponding to the server asset management method in the embodiment. Not detailed.
第一处理模块10,用于获取用户输入的服务器基本信息和服务器标识信息,录入服务器基本信息,以及根据服务器标识信息录入服务器硬件信息。The first processing module 10 is configured to acquire basic server information and server identification information input by the user, enter the basic information of the server, and enter the hardware information of the server according to the server identification information.
第二处理模块20,用于每隔一预设的时间间隔,扫描服务器基本信息,以及扫描服务器硬件信息,获取服务器资产信息。The second processing module 20 is configured to scan the basic information of the server and scan the hardware information of the server every preset time interval to obtain the asset information of the server.
第三处理模块30,用于当扫描出现服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息。The third processing module 30 is configured to save the server hardware information with a larger timestamp value, and issue alarm information when the server hardware information does not match in the scan.
第四处理模块40,用于基于服务器资产信息确定是否出现服务器报废的情况,若是,根据服务器硬件信息将报废服务器的利旧硬件进行分配。The fourth processing module 40 is configured to determine whether the server is scrapped based on the server asset information, and if so, allocate the scrapped server's used hardware according to the server hardware information.
可选地,服务器标识信息包括服务器内网IP地址、ROOT用户名称和服务器密码,第一处理模块还具体用于:Optionally, the server identification information includes the server intranet IP address, ROOT user name and server password, and the first processing module is also specifically used for:
采用预设的硬件自动监控模块,根据服务器内网IP地址、ROOT用户名称和服务器密码,获取服务器硬件信息;Use the preset hardware automatic monitoring module to obtain server hardware information according to the server's intranet IP address, ROOT user name and server password;
基于硬件自动监控模块,自动录入服务器硬件信息。Based on the hardware automatic monitoring module, the server hardware information is automatically entered.
可选地,服务器硬件信息包括硬件基本信息和硬件进阶信息,第二处理模块还具体用于:Optionally, the server hardware information includes hardware basic information and hardware advanced information, and the second processing module is further specifically used for:
采用预设的编程语言,通过编程语言的接口/指令调用,扫描并获取硬件基本信息和硬件进阶信息;Use the preset programming language to scan and obtain basic hardware information and advanced hardware information through the interface/instruction call of the programming language;
基于硬件基本信息和硬件进阶信息获取服务器资产信息,其中,服务器资产信息包括服务器基本信息。The server asset information is acquired based on the basic hardware information and the advanced hardware information, where the server asset information includes basic server information.
可选地,第四处理模块还具体用于:Optionally, the fourth processing module is also specifically used for:
根据服务器硬件信息,将报废服务器分配到利旧资源库中;According to the server hardware information, the scrapped server is allocated to the old resource library;
基于利旧资源库,根据分配指令将报废服务器的利旧硬件进行分配。Based on the recycling resource library, the recycling hardware of the scrapped server is allocated according to the allocation instruction.
可选地,第四处理模块还具体用于:Optionally, the fourth processing module is also specifically used for:
获取用户输入的待扩容服务器型号和利旧硬件需求信息;Obtain the information of the server model to be expanded and the demand information of the old hardware entered by the user;
根据待扩容服务器型号在利旧资源库中确定是否存在与待扩容服务器相同型号的报废服务器;According to the model of the server to be expanded, determine whether there is an abandoned server of the same model as the server to be expanded in the old resource library;
若有,确定在利旧资源库中是否存在满足利旧硬件需求信息的利旧硬件,若有,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配;If yes, determine whether there is any recyclable hardware in the recyclable resource library that meets the recyclable hardware requirement information, if so, generate a recycling suggestion, and generate an allocation instruction after the user confirms the recycling suggestion, and scrap the server's recycling hardware to allocate;
若无,按照利旧硬件型号在利旧资源库中进行筛选,确认是否存在满足利旧硬件需求信息的利旧硬件,若存在,生成利旧建议,并在用户确认利旧建议后生成分配指令,将报废服务器的利旧硬件进行分配。If not, filter the recyclable resource library according to the recyclable hardware model to confirm whether there is recyclable hardware that meets the recyclable hardware requirement information. , will distribute the old hardware of the scrapped server.
在本发明实施例中,首先获取用户输入的服务器基本信息和服务器标识信息,录入服务器基本信息,以及根据服务器标识信息录入服务器硬件信息,能够利用服务器标识信息自动将服务器硬件信息导入到服务器资产管理系统中,提高服务器硬件信息导入的效率及准确率;然后,每隔一预设的时间间隔,扫描服务器基本信息,以及扫描服务器硬件信息,获取服务器资产信息,能够对服务器进行及时的检测及监控,帮助用户及时了解并获取服务器资产信息;其中,当扫描出现服务器硬件信息不匹配的情况时,保存时间戳值较大的服务器硬件信息,并发出告警信息,能够实现服务器硬件信息的同步功能,并将可能出现异常的服务器告知用户,以及时进行修复;最后,基于服务器资产信息确定是否出现服务器报废的情况,若是,根据服务器硬件信息将报废服务器的利旧硬件进行分配,能够实现报废服务器的资产价值最大化和利旧硬件的智能化分配,在本发明实施例中,通过对服务器资产管理全生命周期的智能管理,实现了效率较高的服务器资产管理。In the embodiment of the present invention, the basic information of the server and the server identification information input by the user are first obtained, the basic information of the server is entered, and the hardware information of the server is entered according to the identification information of the server, and the hardware information of the server can be automatically imported into the server asset management by using the server identification information In the system, the efficiency and accuracy of importing server hardware information are improved; then, every preset time interval, the basic information of the server is scanned, and the hardware information of the server is scanned to obtain the information of the server assets, which can detect and monitor the server in time. , to help users understand and obtain server asset information in a timely manner; among them, when the server hardware information does not match in the scan, the server hardware information with a larger timestamp value is saved, and an alarm information is issued, which can realize the synchronization function of the server hardware information. Inform the user of the server that may be abnormal, and repair it in time; finally, determine whether the server is scrapped based on the server asset information. Maximizing asset value and intelligent allocation of used hardware, in the embodiment of the present invention, through the intelligent management of the entire life cycle of server asset management, high-efficiency server asset management is realized.
本实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现实施例中服务器资产管理方法,为避免重复,此处不一一赘述。或者,该计算机程序被处理器执行时实现实施例中服务器资产管理装置中各模块/单元的功能,为避免重复,此处不一一赘述。This embodiment provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by the processor, the server asset management method in the embodiment is implemented. To avoid repetition, details are not repeated here. . Alternatively, when the computer program is executed by the processor, the functions of each module/unit in the server asset management apparatus in the embodiment are implemented, and to avoid repetition, details are not repeated here.
图5是本发明一实施例提供的计算机设备的示意图。如图5所示,该实施例的计算机设备50包括:处理器51、存储器52以及存储在存储器52中并可在处理器51上运行的计算机程序53,该计算机程序53被处理器51执行时实现实施例中的服务器资产管理方法,为避免重复,此处不一一赘述。或者,该计算机程序53被处理器51执行时实现实施例中服务器资产管理装置中各模型/单元的功能,为避免重复,此处不一一赘述。FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in FIG. 5 , the
计算机设备50可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。计算机设备50可包括,但不仅限于,处理器51、存储器52。本领域技术人员可以理解,图5仅仅是计算机设备50的示例,并不构成对计算机设备50的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如计算机设备还可以包括输入输出设备、网络接入设备、总线等。The
所称处理器51可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
存储器52可以是计算机设备50的内部存储单元,例如计算机设备50的硬盘或内存。存储器52也可以是计算机设备50的外部存储设备,例如计算机设备50上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器52还可以既包括计算机设备50的内部存储单元也包括外部存储设备。存储器52用于存储计算机程序以及计算机设备所需的其他程序和数据。存储器52还可以用于暂时地存储已经输出或者将要输出的数据。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911322931.2A CN113094224B (en) | 2019-12-20 | 2019-12-20 | Server asset management method, apparatus, 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, apparatus, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113094224A CN113094224A (en) | 2021-07-09 |
CN113094224B true 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, apparatus, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113094224B (en) |
Families Citing this family (3)
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)
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 | 英业达股份有限公司 | Method and system for automatically rebuilding access authority table after storage device platform transfer |
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 |
-
2019
- 2019-12-20 CN CN201911322931.2A patent/CN113094224B/en active Active
Patent Citations (16)
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 | 英业达股份有限公司 | Method and system for automatically rebuilding access authority table after storage device platform transfer |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN113094224A (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113094224B (en) | Server asset management method, apparatus, computer equipment and storage medium | |
CN112311617A (en) | A configuration data monitoring and alarming method and system | |
CN109240876B (en) | Instance monitoring method, computer-readable storage medium, and terminal device | |
CN109670091B (en) | Metadata intelligent maintenance method and device based on data standard | |
CN110221145A (en) | Fault Diagnosis for Electrical Equipment method, apparatus and terminal device | |
CN109634802B (en) | Process monitoring method and terminal equipment | |
CN110825694A (en) | Data processing method, device, equipment and storage medium | |
CN110737689A (en) | Data standard conformance detection method, device, system and storage medium | |
CN113626869A (en) | Data processing method, system, electronic device and storage medium | |
CN110018932B (en) | Method and device for monitoring container magnetic disk | |
CN108733536B (en) | Monitoring management system and method | |
CN114647548A (en) | Log generation method and device | |
CN118277221A (en) | System abnormal data acquisition method and device, electronic equipment and storage medium | |
CN106649584A (en) | Index processing method and device in master-slave database system | |
KR102464688B1 (en) | Method and apparatus for detrmining event level of monitoring result | |
CN111124841B (en) | Alarm method and device for abnormal page and computer system | |
CN109902067B (en) | File processing method, device, storage medium and computer equipment | |
CN115580522A (en) | Method and device for monitoring running state of container cloud platform | |
CN111459411B (en) | Data migration method, device, equipment and storage medium | |
CN109150993B (en) | Method for obtaining network request tangent plane, terminal device and storage medium | |
CN113157406A (en) | Data calling method and device based on super-fusion architecture, electronic equipment and medium | |
CN111966515A (en) | Business abnormal data processing method and device, computer equipment and storage medium | |
CN111694628A (en) | Page display method based on application program thread and related equipment | |
CN111209284A (en) | Metadata-based table dividing method and device | |
US11513862B2 (en) | System and method for state management of devices |
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 |