CN111953809A - Method, device, equipment and system for managing resource address - Google Patents

Method, device, equipment and system for managing resource address Download PDF

Info

Publication number
CN111953809A
CN111953809A CN202010759723.5A CN202010759723A CN111953809A CN 111953809 A CN111953809 A CN 111953809A CN 202010759723 A CN202010759723 A CN 202010759723A CN 111953809 A CN111953809 A CN 111953809A
Authority
CN
China
Prior art keywords
information
resource
preset
identifier
target
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
CN202010759723.5A
Other languages
Chinese (zh)
Other versions
CN111953809B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010759723.5A priority Critical patent/CN111953809B/en
Publication of CN111953809A publication Critical patent/CN111953809A/en
Application granted granted Critical
Publication of CN111953809B publication Critical patent/CN111953809B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Abstract

The embodiment of the specification relates to the technical field of Internet of things, and particularly provides a method, a device, equipment and a system for managing a resource address. The method comprises the steps of acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller; generating a strategy information identifier according to the position information and the unique equipment identifier; obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address; and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment. By using the embodiment of the specification, the allocation of the resource address can be completed quickly and efficiently, so that the efficient management of the resource address is realized.

Description

Method, device, equipment and system for managing resource address
Technical Field
The present application relates to the field of internet of things technology, and in particular, to a method, an apparatus, a device, and a system for managing a resource address.
Background
With the increasing scale of resource environment requirements and the mature cloud architecture technology, the scale of new adding and replacing requirements of devices such as servers and storages is increasing. At present, resource addresses of bottom layer hardware of devices such as a server and a memory need to be manually allocated one by one, so that when a large number of devices such as a server are added or replaced, allocation efficiency of the resource addresses is low.
Therefore, there is a need for a solution to the above technical problems.
Disclosure of Invention
Embodiments of the present specification provide a method, an apparatus, a device, and a system for managing a resource address, which can complete allocation of a resource address quickly and efficiently, thereby implementing efficient management of the resource address.
The method, the device, the equipment and the system for managing the resource address provided by the specification are realized in the following modes.
A method of managing resource addresses, comprising: acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller; generating a strategy information identifier according to the position information and the unique equipment identifier; obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address; and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
An apparatus for managing resource addresses, comprising: the information acquisition module is used for acquiring basic information of the target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller; the identification generation module is used for generating a strategy information identification according to the position information and the unique equipment identification; a resource address obtaining module, configured to obtain a target resource address corresponding to the policy information identifier based on the policy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address; and the allocation module is used for allocating the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
An apparatus for managing resource addresses, comprising a processor and a memory for storing processor-executable instructions, which when executed by the processor, implement steps comprising: acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller; generating a strategy information identifier according to the position information and the unique equipment identifier; obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address; and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
A system for managing resource addresses, comprising at least one processor and a memory storing computer-executable instructions, which when executed by the processor, perform the steps of the method of any one of the method embodiments of the present specification.
The specification provides a method, a device, equipment and a system for managing resource addresses. In some embodiments, by acquiring information of one or more target devices, processing on the target devices can be realized in batch, and the processing efficiency is improved. By setting a dynamic scanning function mechanism for monitoring the process, the device information generation strategy information identifier can be obtained in time when the device is accessed and connected out, so that guarantee can be provided for subsequently improving the resource address allocation efficiency. By matching the generated strategy information identification with the preset resource information centralized information, the allocation of the resource addresses of the baseboard management controller in the target equipment can be completed quickly and efficiently, and meanwhile, the effective management of the resource addresses can be realized. By adopting the implementation scheme provided by the specification, the allocation of the resource address can be completed quickly and efficiently, so that the effective management of the resource address is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, are incorporated in and constitute a part of this specification, and are not intended to limit the specification. In the drawings:
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a method for managing resource addresses;
FIG. 2 is a flow diagram illustrating one embodiment of assigning a resource address to a new pool provided herein;
FIG. 3 is a block diagram illustrating an exemplary architecture of an apparatus for managing resource addresses;
FIG. 4 is a block diagram illustrating the hardware architecture of one embodiment of a server for managing resource addresses provided herein.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments in the present specification, and not all of the embodiments. All other embodiments that can be obtained by a person skilled in the art on the basis of one or more embodiments of the present description without inventive step shall fall within the scope of protection of the embodiments of the present description.
The following describes an embodiment of the present disclosure with a specific application scenario as an example. Specifically, fig. 1 is a schematic flow chart diagram of an embodiment of a method for managing resource addresses provided in this specification. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus structures based on conventional or non-inventive efforts.
One embodiment provided by the specification can be applied to a client, a server, an operation and maintenance management system and the like. The client may include a terminal device, such as a smart phone, a tablet computer, and the like. The server may include a single computer device, or may include a server cluster formed by a plurality of servers, or a server structure of a distributed system, and the like.
It should be noted that the following description of the embodiments does not limit the technical solutions in other extensible application scenarios based on the present specification. In one embodiment, a method for managing resource addresses is provided in the present specification, and as shown in fig. 1, the method may include the following steps.
S0: acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target device comprises a substrate management controller.
In some embodiments of the present description, the dynamic scanning mechanism may be preset, and the devices in the network environment are determined to be accessed or accessed based on the preset dynamic scanning mechanism. Among other things, dynamic scanning mechanisms may be used to dynamically monitor device processes. A process is understood to be a process of a dynamic execution of a program with certain independent functions on a data set, an independent unit of resource allocation and scheduling performed by an operating system, and a carrier for running an application program. Therefore, when the equipment is accessed to the network environment, the equipment can be found in time through the preset dynamic scanning mechanism, and the relevant information of the equipment is obtained.
In some implementation scenarios, the preset dynamic scanning mechanism may be started at different times according to the requirements of the scenario. For example, a preset dynamic scanning mechanism may be started every wednesday and every saturday to monitor devices included in the network environment, so as to obtain basic information of devices such as a newly added device, a replaced device, a migrated device, and the like. Thus, server stress can be reduced and efficiency can be improved by periodic scanning.
In some embodiments of the present description, the target device may include an add device, a replace device, a migrate device, and the like. For example, in some implementation scenarios, due to upgrading or expanding of the system architecture, some additional devices are required to meet the requirement of the network environment after upgrading or expanding, and at this time, the additional devices may be referred to as target devices. In other implementation scenarios, due to the reduction of the performance of the old device, some old devices in the network environment may be replaced with devices with better performance to improve the information processing efficiency, and at this time, the devices with better performance after replacement may be referred to as target devices. In some embodiments, the device may be a server, a memory, or the like.
In some embodiments of the present description, a baseboard management controller may be included in the target device. The baseboard management controller may be configured to monitor hardware information in the target device. A Baseboard Management Controller (BMC) is a micro processing Controller embedded in a device motherboard, and can transmit basic information commands through an open standard hardware Management interface to complete a series of functions of monitoring device hardware and controlling a system. The BMC may be connected to other components in the device through different interfaces. IPMI (Intelligent Platform Management Interface) is an Interface matched with BMC, and all BMCs need to realize the Interface. By adopting the standard IPMI protocol, intelligent management can be realized by using hardware without entering an operating system on equipment for management, so that the task burden of transmitting system state data is not required to be generated.
In some implementation scenarios, the management user of the target device may monitor the physical health status of the target device, for example, basic information such as sensor index, memory, hard disk, CPU, voltage, fan operating status, and power status of hardware, out-of-band using the BMC. If the equipment is in an abnormal state, a user can log in the management platform through the BMC on the mainboard to restart the equipment in a reset mode, and record information and log information of various hardware for positioning hardware faults of the equipment.
In an embodiment of the present description, when it is monitored that a target device is accessed to a network environment based on a preset dynamic scanning mechanism, basic information of the device may be obtained in time, and a resource address is allocated to a BMC in the target device according to the basic information of the device.
In some embodiments of the present specification, the basic information may include location information and a device unique identifier. The location information may be used to determine a physical location corresponding to the target device, for example, a specific location where the target device is located. The device unique identifier may be used to uniquely identify the target device. The device identification may be comprised of one or more of numbers, letters, symbols, and the like.
In some implementations, the location information may include room information and cabinet information. The machine room information may include machine room code information, a geographical location of the machine room, label information of a UPS (Uninterruptible Power Supply) switch, and the like. The cabinet information may include cabinet identification information, location information of the cabinet in the machine room, and the like.
In some implementation scenarios, different machine rooms may be encoded in advance to obtain machine room encoding information corresponding to the different machine rooms. For example, the number of machine rooms may be counted first, and then an identifier may be allocated to each machine room, so as to encode information of different machine rooms. Wherein, the machine room coding information can be composed of one or more of numbers, letters, symbols and the like. E.g., B01, B02, B03, etc.
In some implementation scenarios, the cabinets included in the computer room may be uniquely identified in advance. For example, the machine room includes 5 cabinets, and an identifier may be allocated to the 5 cabinets according to the positions of the cabinets, so that the positions of the cabinets can be found conveniently according to the identifiers.
In some implementations, a computer room may be divided into one or more different areas, and each area may have one or more racks, and each rack may have one or more devices. Wherein, a computer room code information can uniquely identify a computer room. In a computer room, a cabinet identifier can uniquely identify a cabinet.
In some embodiments of the present description, the basic information of the target device may be stored in advance in the target device, the server, or other systems.
In some embodiments of the present description, the basic information of one or more devices may be obtained at a time.
In the embodiment of the present specification, by setting a dynamic scanning mechanism for monitoring a process, relevant information of a device can be scanned in time when the device is accessed and connected out, so as to provide a guarantee for subsequently improving resource address allocation efficiency. By acquiring the information of one or more target devices, the target devices can be processed in batch, and the processing efficiency is improved.
S2: and generating a strategy information identifier according to the position information and the unique equipment identifier.
In this embodiment of the present specification, after obtaining the basic information of the target device, the policy information identifier may be generated according to the location information and the device unique identifier included in the basic information, so as to subsequently allocate a resource address to the BMC of the target device according to the policy information identifier.
In some embodiments of the present description, the policy information identifier may be used to determine a resource address of the baseboard management controller. The resource address of the baseboard management controller may include an IP (Internet Protocol) address of the BMC. The IP address of the BMC may be used to uniquely identify the device BMC.
In some implementation scenarios, the location information and the unique device identifier may be combined to generate the policy information identifier. The combination mode can be splicing different information, or performing association and binding on different information. In order to clearly identify each piece of identification information, during the splicing process, different pieces of information may be separated by a predetermined symbol, such as "+", blank "/", and the like. The splicing sequence may be set according to a specific scenario, which is not limited in this specification.
For example, in some implementation scenarios, when the location information includes machine room information and cabinet information, the machine room encoding information included in the machine room information, the cabinet identification information included in the cabinet information, and the device unique identifier may be combined to generate a policy information identifier. Specifically, the machine room coding information, the cabinet identification information and the unique equipment identification can be spliced to generate the policy information identification. For example, if the obtained device unique identifier is a101, the room code is a1, and the cabinet identifier is 1-2, the policy information identifier obtained after splicing the device unique identifier and the cabinet identifier may be a 11-2 a101, a1 a 1011-1, a101 a 11-2, or the like. Preferably, the machine room coding information, the cabinet identification information and the equipment unique identification are spliced in sequence.
S4: obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address.
In this embodiment of the present specification, after the policy information identifier is generated, the policy information identifier may be matched with information in a preset resource information set, so as to determine a corresponding resource address for the generated policy information identifier.
In some embodiments of the present specification, the preset resource information set may include one or more pieces of resource information. The resource information may include a corresponding relationship between a preset policy information identifier and a resource address.
In some implementation scenarios, the unique device identifiers corresponding to all the devices, the machine room coding information corresponding to all the machine rooms, and the cabinet identification information corresponding to all the cabinets may be obtained in advance. The unique device identifier, the machine room coding information, and the cabinet identification information may be obtained from a database or a server. The above information may be stored in advance in a database or a server or the like by auto-scanning or other means.
In some implementation scenarios, after the unique device identifier, the machine room coding information, and the cabinet identifier information are obtained, the coding information of the same machine room may be combined with the identifier information of all the cabinets in the machine room to obtain all identifier combinations of different cabinets in the same machine room, and then the identifiers of different cabinets in the same machine room may be combined with the unique identifiers of all the devices to obtain the preset policy information identifier covering all the situations.
For example, there are 2 devices in the network environment, and the corresponding device unique identifiers are a101 and b 201; the total number of the machine rooms is 2, the corresponding machine room codes are A1 and A2 respectively, 5 cabinets are arranged in the machine room A1, the corresponding cabinet identifications are 1-1, 1-2, 1-3, 1-4 and 1-5 respectively, 3 cabinets are arranged in the machine room A2, and the corresponding cabinet identifications are 2-1, 2-2 and 2-3 respectively. At this time, the room code and the cabinet identifier included in the room may be spliced to obtain identifier combinations of different cabinets in the same room, for example, for room a1, the obtained identifier combinations may include a1/1-1, a1/1-2, a1/1-3, a1/1-4, and a1/1-5, and for room a2, the obtained identifier combinations may include a2/2-1, a2/2-2, and a 2/2-3. Furthermore, each identifier combination can be spliced with all the equipment identifiers to obtain all the preset strategy information identifiers, for example, A1/1-1/a101, A1/1-1/b201, A1/1-2/a101, A1/1-2/b101, A1/1-3/a101, A1/1-3/b101, A1/1-4/a101, A1/1-4/b101, A1/1-5/a101, A1/1-5/b101, A2/2-1/a101, A2/2-1/b101, A2/2-2/a101, A2/2-2/b101, A2/2-3/a10, A2/2-3/b 101.
The above description is merely exemplary, and other embodiments of the present disclosure are not limited thereto.
In some implementation scenarios, after obtaining the preset policy information identifier covering all situations, the resource address corresponding to the preset policy information identifier may be allocated to obtain the preset resource information. The allocation manner may be to divide different resource address ranges according to different rooms, may also be to divide different resource address ranges according to different areas to which the rooms belong, and may also be to allocate the resource address ranges in other manners, which is not limited in this specification.
In some implementation scenarios, after obtaining the preset resource information, all the preset resource information may be put into one set to form a preset resource information set.
In some implementation scenarios, after obtaining the preset resource information, the preset resource information may be stored in a resource pool or a data table. A resource pool is a configuration mechanism that can be used to partition resources. And can be divided into computing resources, storage resources and network resources according to resource types. For example, when the preset resource information is stored in the data table, one column may store the preset policy information identifier, and another column stores the resource address, and the associated preset policy information identifier and the resource address may be in the same row. The information of the same line represents a piece of preset resource information. Therefore, the corresponding resource address can be quickly acquired according to the preset strategy information identifier, and the allocation efficiency of the subsequent resource address is effectively improved.
In some implementation scenarios, the preset resource information may include, in addition to the correspondence between the preset policy information identifier and the resource address, a corresponding device unique identifier, machine room encoding information, and cabinet identification information. Accordingly, the associated data may be stored in a resource pool or a data table. For a specific storage manner, reference may be made to the above description, which is not repeated herein.
In some embodiments of this specification, the obtaining a target resource address corresponding to the policy information identifier based on the policy information identifier and a preset resource information set includes: and matching the strategy information identifier with preset resource information centralized information according to the sequence of the target equipment accessing the network environment to obtain a target resource address corresponding to the strategy information identifier. The sequence of accessing the network environment may be a time sequence of accessing the network environment, or may be other sequences.
In some implementation scenarios, since the preset resource information set may pre-store the corresponding relationship between the preset policy information identifier and the resource address, when the generated policy information identifier is matched with the preset resource information set, the generated policy information identifier may be directly matched with the preset policy information identifier included in the preset resource information set, so as to obtain the resource address corresponding to the preset policy information identifier that is the same as the generated policy information identifier, and then the resource address is used as the target resource address.
In some implementation scenarios, when the generated policy information identifier is matched with the resource information in the resource pool, the generated policy information identifier may be decomposed to obtain machine room coding information, cabinet identification information and a unique device identifier corresponding to the target device, and then the machine room coding information and the cabinet identification information are matched with the machine room coding information and the cabinet identification information included in the preset resource information set preset resource information to obtain the preset resource information having the same machine room coding information and the same cabinet identification information. It can be understood that, since the network environment may include a plurality of devices, the acquired preset resource information having the same machine room coding information and the same cabinet identification information may include a plurality of devices, and at this time, the acquired preset resource information having the same machine room coding information and the same cabinet identification information may be recorded as a first preset resource information set. Further, preset resource information that is the same as the device unique identifier of the target device may be acquired from the acquired first preset resource information set, and a resource address corresponding to a preset policy information identifier included in the preset resource information is used as the target resource address.
It should be understood that the foregoing is only exemplary, and other embodiments of the present disclosure are not limited, and the matching may be performed in other manners in the examples of the present disclosure. It should be noted that "first" is only used to distinguish different preset resource sets, and has no practical meaning.
S6: and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
In this embodiment of this specification, after obtaining the target resource address corresponding to the policy information identifier, the target resource address may be allocated to the corresponding baseboard management controller, so as to obtain the resource address of the baseboard management controller in the target device, and complete allocation of the resource address.
In some implementations, the target resource address may be assigned to the baseboard management controller via a switch dynamic assignment mechanism. Wherein a switch dynamic allocation mechanism may be used to dynamically allocate resource addresses.
In the embodiment of the present specification, since information of a plurality of target devices can be acquired at one time, allocation of resource addresses can be dynamically realized in batches, and thus resource allocation efficiency can be improved.
In this embodiment of the present description, after allocating a resource address to the BMC of a target device, the resource address may be recovered correspondingly, so as to reduce resource waste.
In some embodiments of this specification, after obtaining the resource address of the bmc in the target device, the obtaining may include: receiving a preset operation request sent by the target device, wherein the preset operation request comprises a library withdrawal operation, a migration operation and a replacement operation; judging whether the target equipment responds within preset scanning time; and when no response is determined, recovering the resource address of the baseboard management controller in the target equipment. Here, the preset scan time may be understood as a preset recovery time, which may be set in the auto-scan function.
In some implementation scenarios, whether to recycle the resource address corresponding to the target device may be determined based on a preset recycling time. For example, since the device replacement, migration, etc. are usually performed during the day, the preset recovery time may be 11 to 12 pm every wednesday and 10 to 12 pm every saturday. Therefore, when the device is in the recovery time range, the device included in the network environment can be automatically scanned, the condition that the resource address is randomly recovered due to instantaneous power failure can be prevented, and the device can be determined to be not used any more at regular intervals, so that the resource address corresponding to the substrate management controller in the device can be timely recovered and reused. The recovery time may be set according to an actual situation, and the present specification does not limit this.
In the embodiment of the present specification, by setting the recovery time in advance, when the target device performs operations such as library withdrawal, replacement, migration, and the like for other reasons, it is not necessary to manually recover resources, and it is only necessary to determine whether the device has a response within the recovery time range, and when it is determined that there is no response, the resource address of the device can be recovered and reused, so that the information processing efficiency can be improved.
In some implementation scenarios, it is possible to set whether to start the auto-scan function in global in the system configuration file conf. For example, it can be set as:
client _ SM _ min true/start auto-scan function
client _ SM _ min false/shut down auto-scan function
In some implementations, when the system is in the off state, the scanning function is disabled and the auto-scan function is not available. In some implementations, if the configuration parameter is set to true, the auto-scan function may be turned on by rebooting the service or re-mounting the device. Correspondingly, after the automatic scanning function is started, the time scanning process can be started, and the system can perform automatic scanning regularly.
In some implementation scenarios, the parameters may be set in global in the system configuration file conf by:
client _ SM _ timeout _ min 1// minimum 1 hour
client _ SM _ update _ min 1// timing scan time in hours
It should be noted that in some implementation scenarios, if the parameters of the client _ SM _ timeout or the client _ SM _ update are modified, the service process may need to be reinstalled, and the data service may be revalidated.
In some implementation scenarios, if the set scan time is 1 hour, the system may scan the resource information of the device every hour. Wherein, the scanning time can be defined according to the actual scene.
In some implementation scenarios, since the information such as the location information, the unique device identifier, and the resource address may be associated and bound in advance, when the device 1, the device 2, the device …, and the device N are no longer used, the corresponding relationship between the location information L, the unique device identifier S, and the resource address IP may be sent to the resource recovery pool, and the resource recovery pool may determine whether the resource address is reusable according to a recovery policy, and if reusable, the resource recovery pool may release the relationship between S, L, IP. Thus, if the resource address is reusable, the resource address can be preferentially allocated to the device with the unique identifier S next time a new resource request is made at the location. If the resource address is not reusable, the resource address may be reclaimed, waiting for the next reallocation.
In some embodiments of this specification, when a migration operation request or a replacement operation request sent by the target device is received, location information after migration or replacement of the target device may be obtained; correspondingly, generating a first strategy information identifier according to the migrated or replaced position information and the unique equipment identifier; acquiring a target resource address corresponding to the first strategy information identifier based on the first strategy information identifier and a preset resource information set; and allocating the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment after migration or replacement.
In some implementation scenarios, possibly due to an increase in service demand, some devices need to be replaced or migrated from one machine room to another machine room, and accordingly, the location information after replacement or migration of the devices may be obtained, then, according to the location information after migration and the device unique identifier, a corresponding policy information identifier is generated, and finally, a resource address corresponding to a preset policy information identifier that is the same as the policy information identifier is found from a resource pool, and the resource address is used as the resource address after replacement or migration of the devices.
For example, in some implementation scenarios, in the process of device migration or replacement, the auto-scan function may be started to recycle the original resource information of the device, and resource allocation may be performed again for the migrated or replaced device. Therefore, manual intervention is not needed, the blank of dynamic intelligent resource information distribution in a production machine room environment can be made up, the time cost can be reduced, and the equipment management efficiency and the resource distribution accuracy are improved.
In some embodiments of this specification, after obtaining the resource address of the bmc in the target device, the obtaining may include: and sending the resource address of the substrate management controller in the target equipment to a preset monitoring system so that the monitoring system monitors the target equipment in real time according to the resource address. The preset monitoring system can monitor the state of the equipment in the network environment in real time according to the resource address. Therefore, compared with the manual input of BMC information into the monitoring system, the embodiment of the specification can manage the interface path information of the equipment in real time and update the equipment state in time, so that the hardware state of the equipment is effectively monitored.
As shown in fig. 2, fig. 2 is a schematic flow chart of an embodiment of allocating a resource address for a new extension according to the present disclosure. In this embodiment, the operation and maintenance management system includes a preset dynamic scanning mechanism for monitoring a device process in a network environment, and when it is monitored that a newly added device a accesses the network environment, the operation and maintenance management system may obtain basic information such as a unique identifier S, a machine room code N, a cabinet identifier M, and a cabinet height L of the newly added device a, generate a policy information identifier, and then send the generated policy information identifier to the resource distribution server, and after receiving the policy information identifier, the resource distribution server may capture preset resource information that can be used and is matched with the resource pool from the resource pool, and further allocate a resource address that can be used to the BMC of the newly added device a. The operation and maintenance management system and the resource distribution server can be in network communication. The resource distribution server may be in the operation and maintenance management system or may be independent of the operation and maintenance management system. The resource distribution server may be used to allocate resource addresses. The resource pool may be in the operation and maintenance management system, in the resource distribution server, or in other servers or systems. The information of the device a to be newly added may be stored in the resource pool in advance, may also be stored in the device a to be newly added in advance, and may also be stored in the operation and maintenance management system or other systems and devices in advance. Correspondingly, the operation and maintenance management system can acquire the information of the equipment A to be newly added from the resource pool, the equipment A to be newly added and the like.
In some implementation scenarios, when it is monitored that the newly added device a accesses a network environment, basic information such as a unique identifier S, a machine room code N, a cabinet identifier M, and a cabinet height L of the device a to be newly added can be obtained, and then the obtained basic information is sent to a resource distribution server, and the resource distribution server generates a policy information identifier according to the basic information.
It is to be understood that the foregoing is only an exemplary illustration, and the resource address allocation method is not limited to the foregoing examples, and other modifications may be made by those skilled in the art within the spirit of the present application, but all that is needed is to achieve the same or similar functions and effects as the present application, and all that is included in the scope of the present application.
From the above description, it can be seen that the embodiments of the present application can achieve the following technical effects: by acquiring the information of one or more target devices, the target devices can be processed in batch, and the processing efficiency is improved. By setting a dynamic scanning function mechanism for monitoring the process, the device information generation strategy information identifier can be obtained in time when the device is accessed and connected out, so that guarantee can be provided for subsequently improving the resource address allocation efficiency. By matching the generated strategy information identification with the preset resource information centralized information, the allocation of the resource addresses of the baseboard management controller in the target equipment can be completed quickly and efficiently, and meanwhile, the effective management of the resource addresses can be realized. In addition, through setting up the automatic recovery mechanism, and the automatic recovery mechanism can set up the time effect by individuation, not only can reduce the IO occupancy of bottom resource, improve the quick scanning efficiency of system, can practice thrift a large amount of time costs moreover, improve the real-time of control.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts in each embodiment may be joined together, and each embodiment focuses on the differences from the other embodiments. Reference is made to the description of the method embodiments.
Based on the method for managing the resource address, one or more embodiments of the present specification further provide an apparatus for managing the resource address. The apparatus may include systems (including distributed systems), software (applications), modules, components, servers, clients, etc. that use the methods described in the embodiments of the present specification in conjunction with any necessary apparatus to implement the hardware. Based on the same innovative conception, embodiments of the present specification provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific implementation of the apparatus in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 3 is a schematic block diagram of an embodiment of an apparatus for managing a resource address provided in this specification, and as shown in fig. 3, the apparatus for managing a resource address provided in this specification may include: the system comprises an information acquisition module 120, an identification generation module 122, a resource address acquisition module 124 and an allocation module 126.
The information obtaining module 120 may be configured to obtain basic information of the target device based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller;
an identifier generating module 122, configured to generate a policy information identifier according to the location information and the device unique identifier;
a resource address obtaining module 124, configured to obtain a target resource address corresponding to the policy information identifier based on the policy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address;
the allocating module 126 may be configured to allocate the target resource address to the bmc, and obtain the resource address of the bmc in the target device.
It should be noted that the above-mentioned description of the apparatus according to the method embodiment may also include other embodiments, and specific implementation manners may refer to the description of the related method embodiment, which is not described herein again.
This specification also provides an embodiment of an apparatus for managing resource addresses, comprising a processor and a memory for storing processor-executable instructions, which when executed by the processor, perform steps comprising:
acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller;
generating a strategy information identifier according to the position information and the unique equipment identifier;
obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address;
and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
It should be noted that the above-mentioned apparatuses may also include other embodiments according to the description of the method or apparatus embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
This specification also provides an embodiment of a system for managing resource addresses, comprising at least one processor and a memory storing computer-executable instructions, which when executed by the processor, implement the steps of the method described in any one or more of the above embodiments, for example, comprising: acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller; generating a strategy information identifier according to the position information and the unique equipment identifier; obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address; and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment. The system may be a single server, or may include a server cluster, a system (including a distributed system), software (applications), an actual operating device, a logic gate device, a quantum computer, etc. using one or more of the methods or one or more of the example devices of the present specification, in combination with a terminal device implementing hardware as necessary.
The method embodiments provided in the present specification may be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking an example of the server running on the server, fig. 4 is a block diagram of a hardware structure of an embodiment of a server for managing resource addresses provided in this specification, where the server may be an apparatus for managing resource addresses or a system for managing resource addresses in the above embodiments. As shown in fig. 4, the server 10 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer components than shown in FIG. 4, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 4, for example.
The memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the method for managing resource addresses in the embodiments of the present specification, and the processor 100 executes various functional applications and data processing by executing the software programs and modules stored in the memory 200. Memory 200 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 200 may further include memory located remotely from processor 100, which may be connected to a computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The method or apparatus provided by the present specification and described in the foregoing embodiments may implement service logic through a computer program and record the service logic on a storage medium, where the storage medium may be read and executed by a computer, so as to implement the effect of the solution described in the embodiments of the present specification. The storage medium may include a physical device for storing information, and typically, the information is digitized and then stored using an electrical, magnetic, or optical media. The storage medium may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
The embodiments of the method or apparatus for managing resource addresses provided in this specification may be implemented in a computer by a processor executing corresponding program instructions, for example, implemented in a PC end using a c + + language of a windows operating system, implemented in a linux system, or implemented in an intelligent terminal using, for example, android and iOS system programming languages, implemented in processing logic based on a quantum computer, and the like.
It should be noted that descriptions of the apparatus, the device, and the system described above according to the related method embodiments may also include other embodiments, and specific implementations may refer to descriptions of corresponding method embodiments, which are not described in detail herein.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, when implementing one or more of the present description, the functions of some modules may be implemented in one or more software and/or hardware, or the modules implementing the same functions may be implemented by a plurality of sub-modules or sub-units, etc.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, devices, systems according to embodiments of the invention. It will be understood that the implementation can be by computer program instructions which can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims.

Claims (10)

1. A method of managing resource addresses, comprising:
acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller;
generating a strategy information identifier according to the position information and the unique equipment identifier;
obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address;
and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
2. The method of claim 1, wherein the location information includes room information and cabinet information;
correspondingly, the generating a policy information identifier according to the location information and the unique device identifier includes:
and combining the machine room coding information included in the machine room information, the cabinet identification information included in the cabinet information and the unique equipment identification to generate a strategy information identification.
3. The method according to claim 1, wherein the obtaining a target resource address corresponding to the policy information identifier based on the policy information identifier and a preset resource information set comprises:
and matching the strategy information identifier with preset resource information centralized information according to the sequence of the target equipment accessing the network environment to obtain a target resource address corresponding to the strategy information identifier.
4. The method of claim 1, wherein obtaining the resource address of the baseboard management controller in the target device comprises:
receiving a preset operation request sent by the target device, wherein the preset operation request comprises a library withdrawal operation, a migration operation and a replacement operation;
judging whether the target equipment responds within preset scanning time;
and when no response is determined, recovering the resource address of the baseboard management controller in the target equipment.
5. The method according to claim 4, wherein when a migration operation request or a replacement operation request sent by the target device is received, the location information after the migration or replacement of the target device is obtained;
correspondingly, generating a first strategy information identifier according to the migrated or replaced position information and the unique equipment identifier;
acquiring a target resource address corresponding to the first strategy information identifier based on the first strategy information identifier and a preset resource information set;
and allocating the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment after migration or replacement.
6. The method of claim 1, wherein the target device comprises a newly added device, a replaced device, and a migrated device.
7. The method of claim 1, wherein obtaining the resource address of the baseboard management controller in the target device comprises:
and sending the resource address of the substrate management controller in the target equipment to a preset monitoring system so that the monitoring system monitors the target equipment in real time according to the resource address.
8. An apparatus for managing resource addresses, comprising:
the information acquisition module is used for acquiring basic information of the target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller;
the identification generation module is used for generating a strategy information identification according to the position information and the unique equipment identification;
a resource address obtaining module, configured to obtain a target resource address corresponding to the policy information identifier based on the policy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address;
and the allocation module is used for allocating the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
9. An apparatus for managing resource addresses, comprising a processor and a memory for storing processor-executable instructions, which when executed by the processor, implement steps comprising:
acquiring basic information of target equipment based on a preset dynamic scanning mechanism; the basic information comprises position information and a unique device identifier; the preset dynamic scanning mechanism is used for monitoring equipment processes; the target equipment comprises a substrate management controller;
generating a strategy information identifier according to the position information and the unique equipment identifier;
obtaining a target resource address corresponding to the strategy information identifier based on the strategy information identifier and a preset resource information set; the preset resource information set comprises a corresponding relation between a preset strategy information identifier and a resource address;
and distributing the target resource address to the baseboard management controller to obtain the resource address of the baseboard management controller in the target equipment.
10. A system for managing resource addresses, comprising at least one processor and a memory storing computer-executable instructions, the processor implementing the steps of the method of any one of claims 1 to 7 when executing the instructions.
CN202010759723.5A 2020-07-31 2020-07-31 Method, device, equipment and system for managing resource address Active CN111953809B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010759723.5A CN111953809B (en) 2020-07-31 2020-07-31 Method, device, equipment and system for managing resource address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010759723.5A CN111953809B (en) 2020-07-31 2020-07-31 Method, device, equipment and system for managing resource address

Publications (2)

Publication Number Publication Date
CN111953809A true CN111953809A (en) 2020-11-17
CN111953809B CN111953809B (en) 2022-10-18

Family

ID=73338632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010759723.5A Active CN111953809B (en) 2020-07-31 2020-07-31 Method, device, equipment and system for managing resource address

Country Status (1)

Country Link
CN (1) CN111953809B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244842A (en) * 2021-12-23 2022-03-25 绿盟科技集团股份有限公司 Security resource scheduling method and device, electronic equipment and storage medium
CN115277232A (en) * 2022-07-31 2022-11-01 招商局金融科技有限公司 Security policy recovery method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180191733A1 (en) * 2017-01-03 2018-07-05 International Business Machines Corporation Verification of geolocation of devices in a cloud data center
CN109447685A (en) * 2018-09-26 2019-03-08 中国平安人寿保险股份有限公司 Product data method for pushing, device and computer equipment based on machine learning
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN111352689A (en) * 2018-12-21 2020-06-30 中国电信股份有限公司 Method and device for realizing seamless migration of application containerized deployment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180191733A1 (en) * 2017-01-03 2018-07-05 International Business Machines Corporation Verification of geolocation of devices in a cloud data center
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN109447685A (en) * 2018-09-26 2019-03-08 中国平安人寿保险股份有限公司 Product data method for pushing, device and computer equipment based on machine learning
CN111352689A (en) * 2018-12-21 2020-06-30 中国电信股份有限公司 Method and device for realizing seamless migration of application containerized deployment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114244842A (en) * 2021-12-23 2022-03-25 绿盟科技集团股份有限公司 Security resource scheduling method and device, electronic equipment and storage medium
CN115277232A (en) * 2022-07-31 2022-11-01 招商局金融科技有限公司 Security policy recovery method and device
CN115277232B (en) * 2022-07-31 2024-02-06 招商局金融科技有限公司 Security policy recycling method and device

Also Published As

Publication number Publication date
CN111953809B (en) 2022-10-18

Similar Documents

Publication Publication Date Title
JP6490913B2 (en) Task execution by idle resources of grid computing system
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN103677858A (en) Method, system and device for managing virtual machine software in cloud environment
CN111953809B (en) Method, device, equipment and system for managing resource address
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
CN113037794B (en) Method, device and system for computing resource allocation scheduling
US10778597B1 (en) Orchestration management system and method for managing a resource pool across multiple computing clouds
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN110109741B (en) Method and device for managing circular tasks, electronic equipment and storage medium
CN112799596A (en) Capacity expansion control method and device for storage resources and electronic equipment
CN109257396B (en) Distributed lock scheduling method and device
CN108989123A (en) A kind of server configuration method and device
CN109962941B (en) Communication method, device and server
CN104216780A (en) Control method and control device for application program association operation
CN109254782B (en) Operating system installation method and device
CN106375372B (en) big data resource allocation method and device
CN111343152B (en) Data processing method and device, electronic equipment and storage medium
CN114189439A (en) Automatic capacity expansion method and device
CN114443295A (en) Heterogeneous cloud resource management scheduling method, device and system
CN102810067A (en) Virtual machine template updating system and method
CN113656378A (en) Server management method, device and medium
CN115242637A (en) Deployment method of remote desktop gateway, computer device and storage medium
CN111857836A (en) Server startup management system, method and device
CN111625193A (en) Configuration method, device, equipment and medium of multipath alias
CN111061503A (en) Cluster system configuration method and cluster 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