CN111245971A - Method, system and storage medium for modifying network server BMC host name - Google Patents

Method, system and storage medium for modifying network server BMC host name Download PDF

Info

Publication number
CN111245971A
CN111245971A CN201911423284.4A CN201911423284A CN111245971A CN 111245971 A CN111245971 A CN 111245971A CN 201911423284 A CN201911423284 A CN 201911423284A CN 111245971 A CN111245971 A CN 111245971A
Authority
CN
China
Prior art keywords
node
bmc
host name
refreshed
refreshing
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
CN201911423284.4A
Other languages
Chinese (zh)
Other versions
CN111245971B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911423284.4A priority Critical patent/CN111245971B/en
Publication of CN111245971A publication Critical patent/CN111245971A/en
Application granted granted Critical
Publication of CN111245971B publication Critical patent/CN111245971B/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/30Managing network names, e.g. use of aliases or nicknames
    • 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/0803Configuration setting
    • 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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names
    • H04L2101/365Application layer names, e.g. buddy names, unstructured names chosen by a user or home appliance name

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method, a system and a storage medium for modifying a BMC host name of a network server, which comprises the following steps: s1: determining a node target in the cluster which needs to be subjected to hostname refreshing; s2: a step of cross-verifying the nodes that need to be refreshed, S3: refreshing a single node; s4: the regression verification method specifically comprises the following steps: searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.

Description

Method, system and storage medium for modifying network server BMC host name
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a method, a system and a storage medium for modifying a BMC (baseboard management controller) host name of a network server.
Background
As an important component of computer networks, servers have developed applications in various fields, such as the internet, financial fields; the demands of clients on the server are also increasing.
In order to provide all-around services to clients, the BMC settings of the server need to be preset according to the requirements of users when the client leaves the factory. Often, a user requires setting a host name in the BMC, and each needs to be set to different content. The manual setting by using the traditional method has very low efficiency and random errors and simultaneously requires operators. Very high, inexperienced staff cannot accomplish this task. This is a drawback and deficiency in the prior art.
In view of the above, the present invention provides a method, system and storage medium for modifying a BMC host name of a web server; it is very necessary to solve the above-mentioned defects existing in the prior art.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, system and storage medium for modifying a BMC hostname of a web server, so as to solve the above-mentioned technical problems.
In order to achieve the purpose, the invention provides the following technical scheme:
in a first aspect, the present invention provides a method for modifying a BMC hostname of a web server, comprising the steps of:
s1: determining a node target in the cluster which needs to be subjected to hostname refreshing;
s2: the method for cross-verifying the nodes needing to be refreshed specifically comprises the following steps:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
s3: the single node refreshing method specifically comprises the following steps:
inputting a character string of a host name required to be set (manually input by a user or directly reading the character string requirement in an input file of the user through a script), analyzing the character string, converting the character string into a 16-system ASCII code, formatting the ASCII code according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by the BMC, sending the IPMI standard instruction to the BMC, restarting the BMC NDS, and enabling the just-brushed BMC NDS host name to take effect;
s4: the regression verification method specifically comprises the following steps:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
Preferably, in step S1, the BMC IP address of the node that needs to be refreshed is put in a file, and read from the file when refreshing.
Preferably, in step S1, the network of the cluster is automatically scanned, and all nodes in the network that meet the requirement are scanned.
In a second aspect, the present invention provides a system for modifying a host name of a BMC of a web server, including:
determining a node target module in a cluster which needs to be refreshed by a host name;
the module for cross validation of the refreshed nodes specifically comprises:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
the single node refreshing module specifically comprises:
inputting a character string of a host name required to be set (manually input by a user or directly reading the character string requirement in an input file of the user through a script), analyzing the character string, converting the character string into a 16-system ASCII code, formatting the ASCII code according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by the BMC, sending the IPMI standard instruction to the BMC, restarting the BMC NDS, and enabling the just-brushed BMC NDS host name to take effect;
the regression verification module specifically comprises:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
Preferably, in the node target module in the cluster which needs to be refreshed by the host name, the BMC IP address of the node which needs to be refreshed is put into a file, and the BMC IP address is read from the file during refreshing.
Preferably, in the node target module in the cluster which needs to be subjected to hostname refreshing, the network of the cluster is automatically scanned, and all nodes meeting the requirements in the network are scanned.
In a third aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The method and the system have the advantages that the nodes in the server cluster are scanned, the BMC DNS host names of all the nodes meeting the requirements are automatically set according to the requirements, the method and the system are simple and convenient, and testing labor and time can be saved. Human errors are reduced, time is saved, manpower is saved, and the requirement on the quality of personnel is lowered. The test method is simple to operate, high in automation degree and high in practicability, and when the method is used in a production line, the setting time can be saved, the production process is optimized, the labor input is reduced, the product quality is improved, and the cost is saved for a company.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for modifying a host name of a BMC of a web server according to the present invention.
Fig. 2 is a schematic block diagram of a system for modifying a host name of a BMC of a web server according to the present invention.
The method comprises the following steps of 1-determining a node target module in a cluster which needs to be refreshed by a host name, 2-refreshing a node and carrying out cross validation, 3-refreshing a single node and 4-regressing validation.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
as shown in fig. 1, the method for modifying the host name of the BMC of the web server provided in this embodiment includes the following steps:
s1: determining a node target in the cluster which needs to be subjected to hostname refreshing;
s2: the method for cross-verifying the nodes needing to be refreshed specifically comprises the following steps:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
s3: the single node refreshing method specifically comprises the following steps:
inputting a character string of a host name required to be set (manually input by a user or directly reading the character string requirement in an input file of the user through a script), analyzing the character string, converting the character string into a 16-system ASCII code, formatting the ASCII code according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by the BMC, sending the IPMI standard instruction to the BMC, restarting the BMC NDS, and enabling the just-brushed BMC NDS host name to take effect;
s4: the regression verification method specifically comprises the following steps:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
In step S1, the BMC IP address of the node to be refreshed is put in a file, and read from the file when refreshing. Or automatically scanning the cluster network to scan out all nodes meeting the requirements in the network.
Example 2:
as shown in fig. 2, the system for modifying the host name of the BMC of the web server according to this embodiment includes:
determining a node target module 1 in a cluster which needs to be subjected to hostname refreshing;
the module 2 for cross validation of refreshed nodes specifically comprises:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
the single node refreshing module 3 specifically includes:
inputting a character string of a host name required to be set (manually input by a user or directly reading the character string requirement in an input file of the user through a script), analyzing the character string, converting the character string into a 16-system ASCII code, formatting the ASCII code according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by the BMC, sending the IPMI standard instruction to the BMC, restarting the BMC NDS, and enabling the just-brushed BMC NDS host name to take effect;
the regression verification module 4 specifically includes:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
And in the node target module in the cluster which needs to be refreshed by the host name, the BMC IP address of the node which needs to be refreshed is put into a file, and the node is read from the file during refreshing. Or automatically scanning the cluster network to scan out all nodes meeting the requirements in the network.
Example 3:
the present embodiments provide a computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A method for modifying a BMC host name of a web server, comprising the steps of:
s1: determining a node target in the cluster which needs to be subjected to hostname refreshing;
s2: the method for cross-verifying the nodes needing to be refreshed specifically comprises the following steps:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
s3: the single node refreshing method specifically comprises the following steps:
inputting a character string of a host name required to be set, analyzing the character string, converting the character string into 16-system ASCII (American standard code for information interchange) codes, formatting the character strings according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by a BMC (baseboard management controller) and sending the standard IPMI standard instruction to the BMC, and restarting a BMC NDS (baseboard management controller) to enable the newly-refreshed BMC NDS host name to take effect;
s4: the regression verification method specifically comprises the following steps:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
2. The method as claimed in claim 1, wherein in step S1, the BMCIP address of the node to be refreshed is placed in a file, and read from the file when refreshing.
3. The method of claim 1, wherein in step S1, the network of the cluster is automatically scanned, and all nodes in the network that meet the requirement are scanned.
4. A system for modifying a BMC hostname of a web server, comprising:
determining a node target module in a cluster which needs to be refreshed by a host name;
the module for cross validation of the refreshed nodes specifically comprises:
reading and verifying FRU information in the substrate, and refreshing the host name of the node meeting the requirement;
the single node refreshing module specifically comprises:
inputting a character string of a host name required to be set, analyzing the character string, converting the character string into 16-system ASCII (American standard code for information interchange) codes, formatting the character strings according to the format of an IPMI raw instruction, generating a standard IPMI standard instruction which can be accepted by a BMC (baseboard management controller) and sending the standard IPMI standard instruction to the BMC, and restarting a BMC NDS (baseboard management controller) to enable the newly-refreshed BMC NDS host name to take effect;
the regression verification module specifically comprises:
searching a DNS server, checking whether the refreshed node has an access record of the NDS server, and if the record indicates that the node is modified and used successfully; if the DNS server has not been accessed within a predetermined time, the refresh is performed again.
5. The system of claim 4, wherein in the target module of the node in the cluster for which the host name is determined to be refreshed, the BMC IP address of the node to be refreshed is placed in a file, and the node is read from the file during refreshing.
6. The system of claim 4, wherein in the target module of the node in the cluster that needs to be updated with the host name, the network of the cluster is automatically scanned to scan out all nodes in the network that meet the requirements.
7. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1-3.
CN201911423284.4A 2019-12-31 2019-12-31 Method, system and storage medium for modifying network server BMC host name Active CN111245971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911423284.4A CN111245971B (en) 2019-12-31 2019-12-31 Method, system and storage medium for modifying network server BMC host name

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911423284.4A CN111245971B (en) 2019-12-31 2019-12-31 Method, system and storage medium for modifying network server BMC host name

Publications (2)

Publication Number Publication Date
CN111245971A true CN111245971A (en) 2020-06-05
CN111245971B CN111245971B (en) 2022-07-08

Family

ID=70872364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911423284.4A Active CN111245971B (en) 2019-12-31 2019-12-31 Method, system and storage medium for modifying network server BMC host name

Country Status (1)

Country Link
CN (1) CN111245971B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872825A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 BMC DNS function automatic test method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317667A (en) * 2014-10-27 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronizing DMI (desktop management interface) and FRU (field replace unit)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872825A (en) * 2021-08-20 2021-12-31 苏州浪潮智能科技有限公司 BMC DNS function automatic test method and device

Also Published As

Publication number Publication date
CN111245971B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN106874389B (en) Data migration method and device
CN110096517B (en) Method, device and system for monitoring cache data based on distributed system
US8549479B2 (en) Test automation tool for domain registration systems
CN105099811A (en) Interface testing method and device
US10379984B2 (en) Compliance testing through sandbox environments
AU2018200693A1 (en) Method and design for automated testing system
CN104899134B (en) Domain name registration service device automatization test system and method
RU2662405C2 (en) Certification documents automatic generation
CN107040518A (en) A kind of private clound server log method and system
CN111245971B (en) Method, system and storage medium for modifying network server BMC host name
US10812346B1 (en) Application discovery and dependency mapping
CN103001934A (en) Terminal application login method and terminal application login system
CN113055391B (en) Method and device for policy configuration conversion during firewall replacement
CN108920377A (en) A kind of log playback test method, system, device and readable storage medium storing program for executing
CN109286692A (en) A kind of method of configuration server IPMI static ip address
CN111651330B (en) Data acquisition method, data acquisition device, electronic equipment and computer readable storage medium
CN109587282B (en) Method and system for SR (scheduling request) oriented automatic node IP (Internet protocol) configuration of complete equipment cabinet
CN109901871A (en) The environment configurations of burn-in test and the method for operation are realized automatically under a kind of Linux
CN111240703A (en) Cluster system adaptation detection method and device for AI platform deployment
CN113065078B (en) Statistical analysis method for simulating user behavior to dial and test multistage domain names of WEB sites
US20240152356A1 (en) Automated developer configuration tool
CN113449035B (en) Data synchronization method, device, computer equipment and readable storage medium
EP4300408A1 (en) Code generation system and code generation method
US20230196009A1 (en) Systems and methods for browser rendering
US20030186211A1 (en) Training support program, application installation support program, and training support method

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