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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000012795 verification Methods 0.000 claims abstract description 7
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 6
- 239000000758 substrate Substances 0.000 claims description 6
- 238000002790 cross-validation Methods 0.000 claims description 4
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/30—Types of network names
- H04L2101/365—Application 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
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.
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317667A (en) * | 2014-10-27 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | DMI FRU synchronization method |
-
2019
- 2019-12-31 CN CN201911423284.4A patent/CN111245971B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317667A (en) * | 2014-10-27 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | DMI FRU synchronization method |
Cited By (1)
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 | |
CN103023710B (en) | A kind of safety test system and method | |
US8549479B2 (en) | Test automation tool for domain registration systems | |
CN105099811A (en) | Interface testing method and device | |
US20190370138A1 (en) | Compliance testing through sandbox environments | |
CN104899134B (en) | Domain name registration service device automatization test system and method | |
WO2021139322A1 (en) | Method and apparatus for processing network device data, computer equipment and storage medium | |
US20160094544A1 (en) | Automated production of certification controls by translating framework controls | |
CN103970655A (en) | Expect-based automatic server cluster testing method | |
CN111240968A (en) | Automatic test management method and system | |
CN111245971B (en) | Method, system and storage medium for modifying network server BMC host name | |
CN110120886A (en) | A kind of method that batch obtains server hardware configuration information | |
US10812346B1 (en) | Application discovery and dependency mapping | |
CN115033639A (en) | Method and related device for generating relation graph for data sharing among clusters | |
CN113055391B (en) | Method and device for policy configuration conversion during firewall replacement | |
CN109886015A (en) | The detection method and device of the installation kit of application program | |
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 | |
CN114138839A (en) | Test account number implementation method based on database routing | |
CN111800782A (en) | Method, system, device and medium for generating differential packet on line | |
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 | |
Freitas | Design and Development of Computer Network and Login Page Using Mirotic Router Universitas Oriental Timor Lorosa'e | |
CN113449035B (en) | Data synchronization method, device, computer equipment and readable storage medium | |
EP4300408A1 (en) | Code generation system and code generation 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 |