CN111416882A - BMC IP setting method and device, electronic equipment and system - Google Patents

BMC IP setting method and device, electronic equipment and system Download PDF

Info

Publication number
CN111416882A
CN111416882A CN202010126451.5A CN202010126451A CN111416882A CN 111416882 A CN111416882 A CN 111416882A CN 202010126451 A CN202010126451 A CN 202010126451A CN 111416882 A CN111416882 A CN 111416882A
Authority
CN
China
Prior art keywords
bmc
setting
module
current system
determining
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.)
Pending
Application number
CN202010126451.5A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010126451.5A priority Critical patent/CN111416882A/en
Publication of CN111416882A publication Critical patent/CN111416882A/en
Priority to PCT/CN2020/134580 priority patent/WO2021169471A1/en
Pending legal-status Critical Current

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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a BMC IP setting method, which comprises the following steps: the system operation module reads the OS configuration file; determining a system IP of the current system from the OS configuration file; detecting a communication state with a current system; if the current system is connected, a setting instruction corresponding to the system IP is sent to the BMC in the current system, so that the BMC determines the corresponding BMC IP according to the setting instruction, and the BMC IP is set through an IPMI command. According to the method and the device, the system IP of the current system is determined from the OS configuration file through the system operation module, after the system operation module is communicated with the current system, the setting instruction corresponding to the system IP is sent to the BMC, the BMC is enabled to automatically set the BMC IP, all the BMC IPs are sequentially set through the operation, and the setting efficiency of the BMC IP is improved. The application also provides a BMC IP setting device, an electronic device and a BMC IP setting system, and the BMC IP setting device, the electronic device and the BMC IP setting system have the beneficial effects.

Description

BMC IP setting method and device, electronic equipment and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a BMC IP setting method, a BMC IP setting apparatus, an electronic device, and a BMC IP setting system.
Background
With the rapid development of IT technology, the stability requirement of traditional informatization services and increasingly strong cloud computing services on a server is higher and higher. The increase of the demand of each large manufacturer increases the workload of production line workers. Hundreds of factory machines need to be finished in a manual mode by swiping ip addresses according to requirements specified by customers, firmware refreshing and other work are finished, manpower and time are wasted, and efficiency is low.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a BMC IP setting method, a BMC IP setting device, an electronic device and a BMC IP setting system, and the BMC IP setting efficiency can be improved. The specific scheme is as follows:
the application provides a BMC IP setting method, which comprises the following steps:
the system operation module reads the OS configuration file;
determining a system IP of a current system from the OS configuration file;
detecting a connectivity status with the current system;
if the current system is communicated with the BMC, sending a setting instruction corresponding to the system IP to the BMC in the current system so that the BMC can determine the corresponding BMC IP according to the setting instruction and set the BMC IP through an IPMI command.
Optionally, the detecting the communication state with the current system includes:
sending a ping command to the current system;
if the feedback information is received, determining that the communication state is communicated;
and if the feedback information is not received, determining that the connection state is not connected.
Optionally, the method further includes:
if not, skipping the current system, recording the system IP, and determining the next system as a new current system;
executing the step of determining the system IP of the current system from the OS configuration file.
Optionally, if the connection is established, after sending the setting instruction corresponding to the system IP to the BMC in the current system, the method further includes:
judging whether the setting of the BMC IP of the BMC is finished or not;
and if so, displaying the setting results of the BMC IP of the BMC on a preset interface.
The application provides a BMC IP setting method, which comprises the following steps:
the method comprises the steps that a BMC receives a setting instruction sent by a system operation module, wherein the setting instruction is an instruction which is sent by the operation system module and corresponds to a system IP determined according to an OS configuration file after the operation system module is communicated with a current system;
determining a corresponding BMC IP according to the setting instruction;
and setting the BMC IP through an IPMI command.
Optionally, the determining the corresponding BMC IP according to the setting instruction includes:
analyzing the setting instruction to obtain first mark information corresponding to the system IP;
determining second flag information in the BMC configuration file according to the first flag information;
and determining the BMC IP according to the second mark information.
The application provides a BMC IP sets up device includes:
the OS configuration file reading module is used for reading the OS configuration file by the system operation module;
a system IP determining module, configured to determine a system IP of a current system from the OS configuration file;
the communication state detection module is used for detecting the communication state of the current system;
and the setting instruction sending module is used for sending a setting instruction corresponding to the system IP to the BMC in the current system if the connection is established, so that the BMC determines the BMC IP corresponding to the system IP according to the setting instruction and sets the BMC IP through an IPMI command.
The application provides a BMC IP sets up device includes:
the system comprises a setting instruction receiving module, a system operating module and a setting instruction receiving module, wherein the setting instruction receiving module is used for receiving a setting instruction sent by the BMC, and the setting instruction is an instruction which is sent by the operating system module and corresponds to a system IP determined according to an OS configuration file after the operating system module is communicated with a current system;
the BMC IP determining module is used for determining a corresponding BMC IP according to the setting instruction;
and the BMC IP setting module is used for setting the BMC IP through an IPMI command.
The application provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the BMC IP setting method when executing the computer program.
The application provides a BMC IP sets up system includes:
the system operation module is used for reading the OS configuration file; determining a system IP of a current system from the OS configuration file; detecting a connectivity status with the current system; if the current system is communicated with the BMC, sending a setting instruction corresponding to the system IP to the BMC in the current system;
and the BMC is used for determining a corresponding BMC IP according to the setting instruction and setting the BMCIP through an IPMI command.
The application provides a BMC IP setting method, which comprises the following steps: the system operation module reads the OS configuration file; determining a system IP of the current system from the OS configuration file; detecting a communication state with a current system; if the current system is connected, a setting instruction corresponding to the system IP is sent to the BMC in the current system, so that the BMC determines the corresponding BMC IP according to the setting instruction, and the BMC IP is set through an IPMI command.
Therefore, the system IP of the current system is determined from the OS configuration file through the system operation module, after the system operation module is communicated with the current system, the setting instruction corresponding to the system IP is sent to the BMC to achieve automatic setting of the BMCIP by the BMC, setting of the BMC IP of all the BMC is achieved sequentially through the operation, low efficiency of manually setting the BMC IP in the related technology is avoided, and user experience is improved.
This application still provides a BMC IP setting device, an electronic equipment and BMC IP setting system simultaneously, all has above-mentioned beneficial effect, no longer gives details here.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a BMC IP setting method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a BMC IP setting apparatus according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another BMC IP setting method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another BMC IP setting device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the rapid development of IT technology, the stability requirement of traditional informatization services and increasingly strong cloud computing services on a server is higher and higher. The increase of the demand of each large manufacturer increases the workload of production line workers. Hundreds of factory machines need to be finished in a manual mode by swiping ip addresses according to requirements specified by customers, firmware refreshing and other work are finished, manpower and time are wasted, and efficiency is low. Based on the foregoing technical problem, the present embodiment provides a BMC IP setting method, which can improve BMC IP setting efficiency, specifically refer to fig. 1, where fig. 1 is a flowchart of a BMCIP setting method provided in the present embodiment, and specifically includes:
s110, reading an OS configuration file by a system operation module;
the system operating module obtains the OS configuration file OS _ ip.txt through the communication module, and the communication module is not limited in this embodiment, and may be a wired network or a wireless network. The OS configuration file includes system IPs of a plurality of systems, for example, the OS configuration file includes a first system IP, a second system IP, a third system IP, and a fourth system IP. It can be understood that, in this embodiment, the BMC IP corresponding to the system IP is not randomly set, but is the only corresponding BMC IP determined by the user.
S120, determining a system IP of the current system from the OS configuration file;
and determining the system IP of the current system from the OS configuration file, wherein the current system refers to a system corresponding to the BMCIP currently being set, and the specific method for determining the system IP can be that the system IP of the current system is successfully matched with the identification information of all the system IPs in the OS configuration file according to the identification information of the current system, so that the system IP of the current system is obtained.
S130, detecting the communication state with the current system;
the purpose of this step is to detect the connected state, and only after the connection, step S140 can be executed.
If not, skipping the current system, recording the system IP, and determining the next system as a new current system; the step of determining the system IP of the current system from the OS configuration file is performed.
And S140, if the connection is established, sending a setting instruction corresponding to the system IP to the BMC in the current system so that the BMC can determine the corresponding BMC IP according to the setting instruction and set the BMC IP through an IPMI command.
After the system is communicated with the current system, the system can access the inside of the system through the system IP of the operating system, then the BMC system is accessed through the KCS in the IPMI protocol, and a setting instruction corresponding to the system IP is sent to the BMC, wherein the setting instruction comprises a setting instruction, the system IP. can enable the BMC to execute the operation of setting the BMC IP by using a SHE LL-based script at the moment, and specifically, the BMC can determine the BMC IP according to the setting instruction, and set the corresponding BMC IP for the BMC through the IPMI instruction.
Therefore, in this embodiment, the BMC IP is set for the bulk BMCs based on the SHE LL scripting language, the current system is accessed through the system IP of the existing operating system, and the corresponding BMC IP is set for each BMC through the IPMI command under the condition that the BMC system is accessed through the KCS in the IPMI protocol, where the BMC configuration file stored with the BMC IP corresponding to the corresponding OS configuration file stored with the OS IP can be listed in the txt document, so that the corresponding BMC IP can be directly obtained from the corresponding list.
Based on the technical scheme, the system operation module determines the system IP of the current system from the OS configuration file, and after the system operation module is communicated with the current system, the setting instruction corresponding to the system IP is sent to the BMC, so that the BMC automatically sets the BMC IP, and the settings of the BMC IPs of all BMCs are sequentially realized through the above operations, thereby avoiding the inefficiency of manually setting the BMC IP in the related art, and improving the user experience.
In one implementable embodiment, detecting a connectivity status with a current system comprises: sending a ping command to the current system; if the feedback information is received, determining that the connection state is connected; and if the feedback information is not received, determining that the connection state is not connected.
Specifically, a ping command, that is, ICMP echo request information, is sent to the current system, and the received feedback information, that is, an ICMP echo response, is reported, and it is indicated that the communication is established only if the feedback information is received. Further, if the feedback information is received, determining that the connected state is connected includes: if the feedback information is received, judging whether the time difference for receiving the feedback information is smaller than a preset threshold value, if so, determining that the connection state is connected, and if so, determining that the connection state is not connected. Wherein, the time difference is calculated by that the time stamp of sending the ping command is a, the time stamp of receiving the feedback information is b, and the time difference is b-a. It can be understood that, when the preset threshold is exceeded, it is proved that the system connection may be failed or unstable, and the setting of the BMC IP performed in this state may be stored in the occurrence of a setting failure or a long-time setting phenomenon, so that the success rate of the BMC IP setting can be ensured through the above manner.
In an implementation manner, if the connection is already established, after sending a setting instruction corresponding to the system IP in the current system to the BMC, the method further includes: judging whether the setting of the BMC IP of all the BMCs is finished or not; and if so, displaying the setting results of the BMC IP of all the BMCs on a preset interface.
It can be understood that, in the present application, the BMC IPs are set in a large batch, and therefore, after the steps S110 to S140 are performed, the next system is determined to be the current system, and the steps S110 to S140 are continuously performed until all the BMC IPs are set. After setting of all the BMC IPs is completed, displaying the setting results of all the BMC IPs on the preset interface, specifically, if the setting results of all the BMC IPs are displayed on the preset interface, a "pass" is printed, and in other cases, a fail is printed and distinguished by different colors. It can be seen that the setting result can be obtained simply and clearly through the above manner.
Referring to fig. 2, the BMC IP setting device described below and the BMC IP setting method described above may be referred to correspondingly, and fig. 2 is a schematic structural diagram of the BMC IP setting device provided in the embodiment of the present application, and includes:
an OS configuration file reading module 210 for the system operating module to read the OS configuration file;
a system IP determining module 220, configured to determine a system IP of the current system from the OS configuration file;
a connected state detection module 230 for detecting a connected state with the current system;
and a setting instruction sending module 240, configured to send a setting instruction corresponding to the system IP to the BMC in the current system if the connection is established, so that the BMC determines the BMC IP corresponding to the system IP according to the setting instruction, and sets the BMC IP through an IPMI command.
In some specific embodiments, the connection status detection module 230 includes:
a Ping command transmitting unit for transmitting a Ping command to the current system;
a connected determining unit, configured to determine that the connected state is connected if the feedback information is received;
and the unconnected determining unit is used for determining that the connected state is unconnected if the feedback information is not received.
In some specific embodiments, the method further comprises:
the new current system determining module is used for skipping the current system if the current system is not connected, recording the system IP and determining the next system as a new current system;
and the execution module is used for executing the step of determining the system IP of the current system from the OS configuration file.
In some specific embodiments, the method further comprises:
the judging module is used for judging whether the setting of the BMC IP of all the BMCs is finished or not;
and the display module is used for displaying the setting results of the BMC IP of all the BMCs on a preset interface if the setting results are positive.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
With the rapid development of IT technology, the stability requirement of traditional informatization services and increasingly strong cloud computing services on a server is higher and higher. The increase of the demand of each large manufacturer increases the workload of production line workers. Hundreds of factory machines need to be finished in a manual mode by swiping ip addresses according to requirements specified by customers, firmware refreshing and other work are finished, manpower and time are wasted, and efficiency is low. Based on the foregoing technical problem, the present embodiment provides a BMC IP setting method, which can improve BMC IP setting efficiency, specifically refer to fig. 3, where fig. 3 is a flowchart of the BMCIP setting method provided in the present embodiment, and specifically includes:
s310, the BMC receives a setting instruction sent by a system operation module, wherein the setting instruction is an instruction which is sent by the operation system module and corresponds to a system IP determined according to an OS configuration file after the operation system module is communicated with a current system;
s320, determining a corresponding BMC IP according to the setting instruction;
s330, setting the BMC IP through an IPMI command.
Further, determining a corresponding BMC IP according to the setting instruction includes: analyzing the setting instruction to obtain first mark information corresponding to the system IP; determining second flag information in the BMC configuration file according to the first flag information; and determining the BMC IP according to the second mark information.
Each system IP corresponds to one mark information, each BMC IP corresponds to one mark information, the two mark information are in one-to-one correspondence, and the BMC IP can be determined through the mark information.
Based on the above embodiment, in this embodiment, please determine the system IP of the current system from the OS configuration file through the system operation module, after the system operation module is communicated with the current system, send a setting instruction corresponding to the system IP to the BMC, determine the corresponding BMC IP according to the setting instruction, set the BMC IP through the IPMI command, complete automatic setting of the BMC IP by the BMC, sequentially implement setting of the BMC IPs of all BMCs through the above operations, avoid inefficiency of manually setting the BMC IP in related technologies, and improve user experience.
Referring to fig. 4, the BMC IP setting device described below and the BMC IP setting method described above may be referred to correspondingly, and fig. 4 is a schematic structural diagram of another BMC IP setting device provided in the embodiment of the present application, and includes:
a setting instruction receiving module 410, configured to receive, by the BMC, a setting instruction sent by the system operation module, where the setting instruction is an instruction, which is sent by the operating system module after the operating system module is communicated with the current system and corresponds to the system IP determined according to the OS configuration file;
a BMC IP determining module 420, configured to determine a corresponding BMC IP according to the setting instruction;
and a BMC IP setting module 430, configured to set the BMC IP through an IPMI command.
In some specific embodiments, the BMC IP determining module 420 specifically includes:
the first mark information obtaining unit is used for analyzing the setting instruction to obtain first mark information corresponding to the system IP;
the second mark information determining unit is used for determining second mark information in the BMC configuration file according to the first mark information;
and the BMC IP determining unit is used for determining the BMC IP according to the second mark information.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
The embodiment provides a specific BMC IP setting method, the whole process is mainly based on a shell script, two configuration files are set, including an OS configuration file (OS _ IP.txt) and a BMC configuration file, wherein the OS _ IP (system IP) and a corresponding BMC _ IP (BMC IP) to be set are respectively included, each OS _ IP listed in the OS _ IP.txt can be accessed into the system, whether ping can be conducted to the current system is judged firstly, if ping can be conducted, the OS _ IP enters the current system through a ssh command, and the BMC is controlled to set an IP address (BMC IP) through an ipmi command, and if ping can not skip the OS _ IP.
It can be seen that the embodiment includes two scripts, one of which is applied to the system operation module, and the other is applied to the BMC;
specifically, an OS configuration file is read; determining a system IP of the current system from the OS configuration file; detecting a communication state with a current system; and if the connection is established, sending a setting instruction corresponding to the system IP to the BMC in the current system. It will be appreciated that detecting a connectivity status with the current system may be determining whether the current system is connectable. Txt obtains the current OS ip by reading OS _ ip, if ping is available, the OS enters the OS by ssh command, if ping is not available, skipping is carried out, and the ip which cannot be ping is recorded.
And the BMC determines the corresponding BMC IP according to the setting instruction and sets the BMC IP through the IPMI command. Specifically, the system operation module sets an IP to the BMC through an ipmitool lan set 1ipaddr xxxx command under the current system, and the set IP needs to be an IP address corresponding to the system IP, namely the BMC IP. If the setup is successful, a pass is printed, otherwise a fail is printed and distinguished by a different color.
The test script is as follows.
Figure BDA0002394513240000091
Figure BDA0002394513240000101
In the following, an electronic device provided by an embodiment of the present application is introduced, and the electronic device described below and the BMC IP setting method described above may be referred to correspondingly.
The present embodiment provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the BMC IP setting method when executing the computer program.
In an implementation manner, the processor in the electronic device provided in this embodiment is configured to implement the system operating module to read the OS configuration file when executing the computer program; determining a system IP of the current system from the OS configuration file; detecting a communication state with a current system; if the current system is connected, a setting instruction corresponding to the system IP is sent to the BMC in the current system, so that the BMC determines the corresponding BMC IP according to the setting instruction, and the BMC IP is set through an IPMI command.
In another implementation manner, when executing the computer program, the processor in the electronic device provided in this embodiment is configured to enable the BMC to receive a setting instruction sent by the system operating module, where the setting instruction is an instruction corresponding to the system IP determined according to the OS configuration file and sent by the operating system module after the operating system module is connected to the current system; determining a corresponding BMC IP according to the setting instruction; and setting the BMC IP through an IPMI command.
Since the embodiment of the electronic device portion corresponds to the embodiment of the BMC IP setting method portion, please refer to the description of the embodiment of the BMC IP setting method portion for the embodiment of the electronic device portion, which is not repeated here.
In the following, a BMC IP setting system provided in an embodiment of the present application is introduced, and the BMC IP setting system described below and the BMC IP setting method described above may be referred to correspondingly.
This embodiment provides a BMC IP setting system, including:
the system operation module is used for reading the OS configuration file; determining a system IP of the current system from the OS configuration file; detecting a communication state with a current system; if the connection is established, sending a setting instruction corresponding to the system IP to the BMC in the current system;
and the BMC is used for determining the corresponding BMC IP according to the setting instruction and setting the BMC IP through the IPMI command.
Since the embodiment of the BMC IP setting system portion corresponds to the embodiment of the BMC IP setting method portion, please refer to the description of the embodiment of the BMC IP setting method portion for the embodiment of the BMC IP setting system portion, which is not described herein for a while.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The BMC IP setting method, BMC IP setting device, electronic device, and BMCIP setting system provided in the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A BMC IP setting method is characterized by comprising the following steps:
the system operation module reads the OS configuration file;
determining a system IP of a current system from the OS configuration file;
detecting a connectivity status with the current system;
if the current system is communicated with the BMC, sending a setting instruction corresponding to the system IP to the BMC in the current system so that the BMC can determine the corresponding BMC IP according to the setting instruction and set the BMC IP through an IPMI command.
2. The BMC IP setting method of claim 1, wherein the detecting a connectivity status with the current system comprises:
sending a ping command to the current system;
if the feedback information is received, determining that the communication state is communicated;
and if the feedback information is not received, determining that the connection state is not connected.
3. The BMC IP setting method of claim 1, further comprising:
if not, skipping the current system, recording the system IP, and determining the next system as a new current system;
executing the step of determining the system IP of the current system from the OS configuration file.
4. The BMC IP setting method of claim 3, wherein if the connection is established, after sending the setting instruction corresponding to the system IP to the BMC in the current system, the method further comprises:
judging whether the setting of the BMC IP of the BMC is finished or not;
and if so, displaying the setting results of the BMC IP of the BMC on a preset interface.
5. A BMC IP setting method is characterized by comprising the following steps:
the method comprises the steps that a BMC receives a setting instruction sent by a system operation module, wherein the setting instruction is an instruction which is sent by the operation system module and corresponds to a system IP determined according to an OS configuration file after the operation system module is communicated with a current system;
determining a corresponding BMC IP according to the setting instruction;
and setting the BMC IP through an IPMI command.
6. The method of claim 5, wherein the determining the corresponding BMC IP according to the setting instruction comprises:
analyzing the setting instruction to obtain first mark information corresponding to the system IP;
determining second flag information in the BMC configuration file according to the first flag information;
and determining the BMC IP according to the second mark information.
7. A BMC IP setting device, comprising:
the OS configuration file reading module is used for reading the OS configuration file by the system operation module;
a system IP determining module, configured to determine a system IP of a current system from the OS configuration file;
the communication state detection module is used for detecting the communication state of the current system;
and the setting instruction sending module is used for sending a setting instruction corresponding to the system IP to the BMC in the current system if the connection is established, so that the BMC determines the BMC IP corresponding to the system IP according to the setting instruction and sets the BMC IP through an IPMI command.
8. A BMC IP setting device, comprising:
the system comprises a setting instruction receiving module, a system operating module and a setting instruction receiving module, wherein the setting instruction receiving module is used for receiving a setting instruction sent by the BMC, and the setting instruction is an instruction which is sent by the operating system module and corresponds to a system IP determined according to an OS configuration file after the operating system module is communicated with a current system;
the BMC IP determining module is used for determining a corresponding BMC IP according to the setting instruction;
and the BMC IP setting module is used for setting the BMC IP through an IPMI command.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the BMC IP setting method according to any of claims 1 to 6 when executing the computer program.
10. A BMC IP setting system, comprising:
the system operation module is used for reading the OS configuration file; determining a system IP of a current system from the OS configuration file; detecting a connectivity status with the current system; if the current system is communicated with the BMC, sending a setting instruction corresponding to the system IP to the BMC in the current system;
and the BMC is used for determining a corresponding BMC IP according to the setting instruction and setting the BMC IP through an IPMI command.
CN202010126451.5A 2020-02-28 2020-02-28 BMC IP setting method and device, electronic equipment and system Pending CN111416882A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010126451.5A CN111416882A (en) 2020-02-28 2020-02-28 BMC IP setting method and device, electronic equipment and system
PCT/CN2020/134580 WO2021169471A1 (en) 2020-02-28 2020-12-08 Bmc ip setting method and apparatus, electronic device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010126451.5A CN111416882A (en) 2020-02-28 2020-02-28 BMC IP setting method and device, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN111416882A true CN111416882A (en) 2020-07-14

Family

ID=71492812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010126451.5A Pending CN111416882A (en) 2020-02-28 2020-02-28 BMC IP setting method and device, electronic equipment and system

Country Status (2)

Country Link
CN (1) CN111416882A (en)
WO (1) WO2021169471A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272382A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 BMC management system and method based on wireless communication
CN112965649A (en) * 2021-02-24 2021-06-15 浪潮电子信息产业股份有限公司 Server and IP information near-end visual control system of BMC module thereof
WO2021169471A1 (en) * 2020-02-28 2021-09-02 浪潮电子信息产业股份有限公司 Bmc ip setting method and apparatus, electronic device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084424A1 (en) * 2010-09-30 2012-04-05 Acer Incorporated Method for managing server apparatuses and management apparatus thereof
CN103685602A (en) * 2013-12-13 2014-03-26 浪潮电子信息产业股份有限公司 In-band out-band multiple-address associating method bringing convenience to node management
CN107277193A (en) * 2017-08-09 2017-10-20 郑州云海信息技术有限公司 A kind of baseboard management controller address management method, device and system
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
CN109587284A (en) * 2018-11-22 2019-04-05 郑州云海信息技术有限公司 A kind of method and system of remote auto configuration computer room server B MC network interface IP

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8930519B2 (en) * 2013-01-08 2015-01-06 American Megatrends, Inc. Emulated communication between master management instance and assisting management instances on baseboard management controller
CN107895107A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of batch setting BMC username and passwords
CN110704115A (en) * 2019-09-16 2020-01-17 中盈优创资讯科技有限公司 Method, device and system for configuring BMC (baseboard management controller) of server
CN111416882A (en) * 2020-02-28 2020-07-14 浪潮电子信息产业股份有限公司 BMC IP setting method and device, electronic equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120084424A1 (en) * 2010-09-30 2012-04-05 Acer Incorporated Method for managing server apparatuses and management apparatus thereof
CN103685602A (en) * 2013-12-13 2014-03-26 浪潮电子信息产业股份有限公司 In-band out-band multiple-address associating method bringing convenience to node management
CN107277193A (en) * 2017-08-09 2017-10-20 郑州云海信息技术有限公司 A kind of baseboard management controller address management method, device and system
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
CN109587284A (en) * 2018-11-22 2019-04-05 郑州云海信息技术有限公司 A kind of method and system of remote auto configuration computer room server B MC network interface IP

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021169471A1 (en) * 2020-02-28 2021-09-02 浪潮电子信息产业股份有限公司 Bmc ip setting method and apparatus, electronic device and system
CN112272382A (en) * 2020-10-16 2021-01-26 苏州浪潮智能科技有限公司 BMC management system and method based on wireless communication
CN112965649A (en) * 2021-02-24 2021-06-15 浪潮电子信息产业股份有限公司 Server and IP information near-end visual control system of BMC module thereof

Also Published As

Publication number Publication date
WO2021169471A1 (en) 2021-09-02

Similar Documents

Publication Publication Date Title
US11997734B2 (en) Wireless headphone matching method, device, terminal and charging box
CN111416882A (en) BMC IP setting method and device, electronic equipment and system
WO2021243968A1 (en) Network distribution method of home appliance, terminal, storage medium, and home appliance
US8285855B2 (en) System, method and user interface for network status reporting
CN108235081B (en) Multi-screen interaction method and device
CN109525461B (en) Network equipment testing method, device, equipment and storage medium
WO2018014857A1 (en) Set top box wifi throughput testing system, method and device
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN105471678A (en) Method and system for detecting networking failure reason of household appliance and mobile terminal
CN104079717A (en) Method for displaying device interface and server
CN108519935B (en) Board card testing method and device, readable storage medium and computer equipment
CN110806965A (en) Automatic test method, device, equipment and medium
CN106992893A (en) The management method and device of router
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
TWI507889B (en) Management node , method , machine 一accessible medium and system for reservation and execution image writing of native computing devices
CN111212155B (en) Log debugging method, television and storage medium
CN110572857B (en) Network connection processing method and device, electronic equipment and storage medium
CN104065519A (en) Method for improving conversation interactive performance and automatic configuration server
CN104079634A (en) Method, device and system for displaying device interface
EP3570495A1 (en) Device management method and related device
CN115604163A (en) Network terminal equipment testing system and method
CN110798381B (en) Method, device and equipment for verifying KCS channel communication stability
CN110673799B (en) Cluster partnership establishment method, system, equipment and computer medium
CN115276844A (en) Communication module testing method and device and electronic equipment
CN111064794B (en) Fault detection method, device, equipment and storage medium of terminal equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200714