CN107566548A - A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses - Google Patents

A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses Download PDF

Info

Publication number
CN107566548A
CN107566548A CN201710908283.3A CN201710908283A CN107566548A CN 107566548 A CN107566548 A CN 107566548A CN 201710908283 A CN201710908283 A CN 201710908283A CN 107566548 A CN107566548 A CN 107566548A
Authority
CN
China
Prior art keywords
node
mac addresses
network interface
interface card
whole machine
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
CN201710908283.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710908283.3A priority Critical patent/CN107566548A/en
Publication of CN107566548A publication Critical patent/CN107566548A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the method that a kind of whole machine cabinet batch automatically updates network interface card Mac addresses, belong to server technology field, this method is based on the automatic refreshing network interface card Mac addresses of batch under whole machine cabinet Linux environment, sequence node number and the corresponding relation storehouse of the mac addresses of node extrapolation network interface card are established, batch, which performs, refreshes Mac address instructions;Operating procedure is as follows:Establish sequence node number and Mac addresses corresponding relation storehouse;Whole machine cabinet server bulk filling linux system, and establish the access of the mutual trust between each node;Refresh tool and corresponding relation storehouse are uploaded to each node;Whole machine cabinet batch performs refreshing instruction;Restart and check whether Flushing success, refreshed again if failure.The present invention refreshes without node one by one into DOS environment, and refreshing can be performed in batches under Linux OS environment, and automatic Verification refreshes whether result is correct after the completion of brushing into, reduces the error rate for being manually entered Mac addresses.

Description

A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses
Technical field
The present invention relates to server technology field, and in particular to a kind of whole machine cabinet batch automatically updates network interface card Mac addresses Method.
Background technology
In the batch production of whole machine cabinet, run into extrapolation network interface card Mac addresses and asked with what mainboard integrated network card Mac addresses repeated Topic, it is that extrapolation network interface card supplier mistake refreshing Mac addresses cause to trace it to its cause.The mac addresses of network interface card are typically to be produced by network interface card The EPROM of the burned network interface card of producer, but in whole machine cabinet server manufacturer's batch process, it is clear that cumbersome burning can not be used The mode for recording EPROM updates mac addresses.
If according to the server manufacturer mode of production at this stage, DOS environment can only be manually entered in turn to each node, Manually enter mac addresses and perform refreshing instruction.However, this will greatly increase the error rate of manually input, while reduce production Efficiency, delay product deliver the duration.
The content of the invention
The technical assignment of the present invention is to provide a kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses, utilizes Under Linux environment can mutual trust the characteristics of accessing, batch is automatic to perform network interface card Mac refurbishing procedures, and automatic Verification refreshes result, reduces Manual operation and the probability for examining the cumbersome and wrong generation brought.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses, this method are based under whole machine cabinet Linux environment in batches certainly It is dynamic to refresh network interface card Mac addresses, sequence node number and the corresponding relation storehouse of the mac addresses of node extrapolation network interface card are established, batch performs Refresh Mac address instructions;
The operating procedure of this method is as follows:
1), establish sequence node number and Mac addresses corresponding relation storehouse;
2), whole machine cabinet server bulk filling linux system, and establish the mutual trust between each node access;
3), refresh tool and corresponding relation storehouse be uploaded to each node
4), whole machine cabinet batch perform refreshing instruction
5), restart and check whether Flushing success, refreshed again if failure.
The Mac(Medium/Media Access Control)Address represents the mark of each website on internet Symbol, is represented, six bytes totally using hexadecimal number.
Further, in process of production, using barcode scanning gun by mac addresses typing corresponding to extrapolation network interface card on each node System, form node and the one-to-one relationship storehouse of mac addresses;The sequence number carried between each node by node is distinguished, Increase the one-to-one relationship of node and sequence number in above-mentioned corresponding relation storehouse;Ultimately form sequence node number and node extrapolation net The corresponding relation storehouse of the mac addresses of card.Concrete form is as follows:
SN Number Mac1 Address Mac2 Address
216393196 6C92BF285556 6c92bf285557
216393197 6C92BF282233 6C92BF284455
... ... ...
Preferably, corresponding relation storehouse and refreshing script are uploaded under each server node of whole machine cabinet/root/ catalogues.Utilize The characteristics of being accessed between Linux OS with mutual trust, batch, which performs, refreshes Mac address instructions.
Further, refresh after terminating, restart automatic Verification and refresh result, judged whether just by the UID lamps of node Really, illustrate that network interface card mac addresses are correctly refreshed when UID lamps are bright, UID lamps are not bright, illustrate non-Flushing success, then continue to return Refresh until Flushing success.
A kind of whole machine cabinet batch of the present invention automatically updates the methods of network interface card Mac addresses compared with prior art, have with Lower beneficial effect:
This method refreshes without node one by one into DOS environment, can perform refreshing in batches under Linux OS environment, brush into It is whether correct into rear automatic Verification refreshing result, reflect refreshing result so that whether UID lamps light this intuitive way, simply Understand, save cumbersome operating process, reduce the error rate for being manually entered Mac addresses;
The method that this whole machine cabinet batch automatically updates network interface card Mac addresses, suitable for whole machine cabinet batch refresh Mac addresses, this method Realize batch crawl, refresh and verify the automation mechanized operation of Mac addresses, remove from and manually refresh the cumbersome of contrast one by one, reduce Human cost, the working time for examining contrast is reduced, while also reduce the artificial probability for mistake occur, substantially increase product Quality and production efficiency.
Brief description of the drawings
Fig. 1 is the FB(flow block) that whole machine cabinet batch of the present invention automatically updates network interface card Mac addresses.
Embodiment
With reference to specific embodiment, the invention will be further described.
A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses, this method are based on lower batch of whole machine cabinet Linux environment Amount is automatic to refresh network interface card Mac addresses, establishes sequence node number and the corresponding relation storehouse of the mac addresses of node extrapolation network interface card, batch Perform and refresh Mac address instructions;
The operating procedure of this method is as follows:
1), establish sequence node number and Mac addresses corresponding relation storehouse;
2), whole machine cabinet server bulk filling linux system, and establish the mutual trust between each node access;
3), refresh tool and corresponding relation storehouse be uploaded to each node
4), whole machine cabinet batch perform refreshing instruction
5), restart and check whether Flushing success, refreshed again if failure.
The Mac(Medium/Media Access Control)Address represents the mark of each website on internet Symbol, is represented, six bytes totally using hexadecimal number.
In process of production, using barcode scanning gun by mac addresses input system corresponding to extrapolation network interface card on each node, formed Node and the one-to-one relationship storehouse of mac addresses;The sequence number carried between each node by node is distinguished, in above-mentioned correspondence Relation storehouse increases the one-to-one relationship of node and sequence number;Ultimately form sequence node number with the mac of node extrapolation network interface card The corresponding relation storehouse of location.Concrete form is as follows:
SN Number Mac1 Address Mac2 Address
216393196 6C92BF285556 6c92bf285557
216393197 6C92BF282233 6C92BF284455
... ... ...
The filling Linux OS in the node of whole machine cabinet server, corresponding relation storehouse and refreshing script are uploaded to whole machine cabinet and respectively taken It is engaged under device node/root/ catalogues.The characteristics of using that can be accessed between Linux OS with mutual trust, batch are performed refreshing Mac addresses and referred to Order.Specific refreshing instruction flash.sh is as follows:
#!/bin/bash
# obtains the sequence number of present node
Serial=`ipmitool fru |grep "Product Serial" |uniq |awk '{print $4}'`
Mac1 addresses corresponding to the sequence number lookup that # obtains according to previous step
Mac1=`cat /root/all.txt |grep $Serial |awk '{print $2}'`
# is by the EPROM of the Mac1 address flush found to node extrapolation network interface card
/root/eeupdate64e /nic=1 /mac=$Mac1
Whether Flushing success instructs the automatic inspection Mac addresses of # increase starts
echo “sh /root/check.sh” >>/etc/rc.d/rc.local
More than # is restarted automatically after the completion of performing, so that Mac addresses are come into force
reboot
After refreshing terminates, restart automatic Verification and refresh result, judged whether by the UID lamps of node correctly, when UID lamps are bright Illustrate that network interface card mac addresses are correctly refreshed, UID lamps are not bright, illustrate non-Flushing success, then continue return refresh until refresh into Work(.Particular exam instruction check.sh is as follows:
#!/bin/bash
# obtains present node sequence number
Serial=`ipmitool fru |grep "Product Serial" |uniq |awk '{print $4}'`
Mac1 addresses corresponding to the sequence number lookup that # obtains according to previous step
Mac1=`cat /root/all.txt |grep $Serial |awk '{print $2}'`
# obtains the Mac addresses of current network interface card
Mac11=`/root/eeupdate64e /nic=1 /mac_dump |grep MAC |awk '{print $6}'|awk -F. '{print $1}'`
if [ "$Mac1" == "$Mac11" ] ; then
echo "Mac1 is updated successfully"
service ipmi restart
ipmitool chassis identify force
else
echo "Mac1 is updated failed"
sh /root/flash.sh
fi
By embodiment above, the those skilled in the art can readily realize the present invention.But it should manage Solution, the present invention are not limited to above-mentioned embodiment.On the basis of disclosed embodiment, the skill of the technical field Art personnel can be combined different technical characteristics, so as to realize different technical schemes.

Claims (5)

1. a kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses, it is characterised in that this method is based on whole machine cabinet Linux Batch is automatic under environment refreshes network interface card Mac addresses, establishes sequence node number and the corresponding relation of the mac addresses of node extrapolation network interface card Storehouse, batch, which performs, refreshes Mac address instructions;
The operating procedure of this method is as follows:
1), establish sequence node number and Mac addresses corresponding relation storehouse;
2), whole machine cabinet server bulk filling linux system, and establish the mutual trust between each node access;
3), refresh tool and corresponding relation storehouse be uploaded to each node;
4), whole machine cabinet batch perform refreshing instruction;
5), restart and check whether Flushing success, refreshed again if failure.
2. the method that a kind of whole machine cabinet batch according to claim 1 automatically updates network interface card Mac addresses, it is characterised in that institute The identifier that Mac addresses represent each website on internet is stated, is represented using hexadecimal number, totally six bytes.
3. the method that a kind of whole machine cabinet batch according to claim 1 or 2 automatically updates network interface card Mac addresses, its feature exist In by mac addresses input system corresponding to extrapolation network interface card on each node, forming node using barcode scanning gun with mac addresses one by one Corresponding relation storehouse;The sequence number carried between each node by node is distinguished, and increases node and sequence in above-mentioned corresponding relation storehouse The one-to-one relationship of row number;Ultimately form sequence node number and the corresponding relation storehouse of the mac addresses of node extrapolation network interface card.
4. the method that a kind of whole machine cabinet batch according to claim 1 automatically updates network interface card Mac addresses, it is characterised in that will Corresponding relation storehouse and refreshing script are uploaded under each server node of whole machine cabinet/root/ catalogues.
5. the method that a kind of whole machine cabinet batch according to claim 1 automatically updates network interface card Mac addresses, it is characterised in that brush After newly terminating, restart automatic Verification and refresh result, judge whether correctly, to illustrate net when UID lamps are bright by the UID lamps of node Card mac correctly refreshes address, and UID lamps are not bright, illustrate non-Flushing success, then continues to return and refresh until Flushing success.
CN201710908283.3A 2017-09-29 2017-09-29 A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses Pending CN107566548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710908283.3A CN107566548A (en) 2017-09-29 2017-09-29 A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710908283.3A CN107566548A (en) 2017-09-29 2017-09-29 A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses

Publications (1)

Publication Number Publication Date
CN107566548A true CN107566548A (en) 2018-01-09

Family

ID=60984731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710908283.3A Pending CN107566548A (en) 2017-09-29 2017-09-29 A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses

Country Status (1)

Country Link
CN (1) CN107566548A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880865A (en) * 2018-05-29 2018-11-23 郑州云海信息技术有限公司 According to the method and device of SN batch configuration parameter under a kind of linux system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029618A1 (en) * 2012-07-27 2014-01-30 Dell Products L.P. Systems and methods for optimizing layer three routing in an information handling system
CN105183497A (en) * 2015-07-21 2015-12-23 浪潮电子信息产业股份有限公司 Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server
CN105373398A (en) * 2015-10-10 2016-03-02 浪潮电子信息产业股份有限公司 Method for setting server BMC IP of whole cabinet in bulk on basis of Xshell script
CN105426184A (en) * 2015-11-12 2016-03-23 浪潮电子信息产业股份有限公司 Method for setting static IP (Internet Protocol) of Linux system of whole cabinet in batches
CN105955742A (en) * 2016-04-29 2016-09-21 浪潮电子信息产业股份有限公司 BIOS refreshing method, service system and BIOS refreshing system
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 A kind of method of Smart Rack whole machine cabinet BIOS batch upgrading automatically

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140029618A1 (en) * 2012-07-27 2014-01-30 Dell Products L.P. Systems and methods for optimizing layer three routing in an information handling system
CN105183497A (en) * 2015-07-21 2015-12-23 浪潮电子信息产业股份有限公司 Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server
CN105373398A (en) * 2015-10-10 2016-03-02 浪潮电子信息产业股份有限公司 Method for setting server BMC IP of whole cabinet in bulk on basis of Xshell script
CN105426184A (en) * 2015-11-12 2016-03-23 浪潮电子信息产业股份有限公司 Method for setting static IP (Internet Protocol) of Linux system of whole cabinet in batches
CN105955742A (en) * 2016-04-29 2016-09-21 浪潮电子信息产业股份有限公司 BIOS refreshing method, service system and BIOS refreshing system
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 A kind of method of Smart Rack whole machine cabinet BIOS batch upgrading automatically

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880865A (en) * 2018-05-29 2018-11-23 郑州云海信息技术有限公司 According to the method and device of SN batch configuration parameter under a kind of linux system

Similar Documents

Publication Publication Date Title
CN104461611A (en) Method for refreshing node BIOSes of RACK cabinet in batches
US11140241B2 (en) IoT hardware certification
CN103970566B (en) A kind of method and apparatus of router firmware upgrading
WO2018059062A1 (en) Network repairing method and apparatus, and terminal
US20080298257A1 (en) Method and apparatus for detecting a router that improperly responds to arp requests
CN106445591A (en) Automatic and batched RAID card FW refreshing method of servers
US20060026289A1 (en) System, method and user interface for network status reporting
US20150012623A1 (en) Automated standalone bootstrapping of hardware inventory
TW201344580A (en) Firmware update management system and firmware update management method
US10116619B2 (en) Systems and methods for provisioning, configuring, diagnosing, and maintaining out-of band management of computing devices
CN106775877A (en) A kind of firmware method for refreshing and a kind of server
CN102722420A (en) Self-diagnosis terminal, detection method and remote maintenance system
CN106572200A (en) IP address configuration method and IP address configuration device for baseboard management controller BMC
EP3198792B1 (en) Automated standalone bootstrapping of hardware inventory
WO2019227619A1 (en) Hardware controller for nand apparatus, control method, and liquid crystal display
CN109634632A (en) A kind of automatic method for refreshing of server firmware and system
CN101605189A (en) The online upgrade system of intelligent platform management controller and method
CN105260274A (en) Linux-based hard disk random hot plug stability detection method
CN107566548A (en) A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses
CN106790756B (en) Automatic generation method and system for MAC address of power distribution terminal
CN109885336B (en) Offline configuration method and device of intelligent equipment
CN113568646A (en) Novel portable program upgrading method
CN103678058A (en) Hardware detection system and method
CN109413018A (en) A kind of port scanning method and device
CN113050980B (en) Function configuration information acquisition method and device and computer readable storage medium

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: 20180109