CN103259875A - Method for detecting server IP addresses - Google Patents

Method for detecting server IP addresses Download PDF

Info

Publication number
CN103259875A
CN103259875A CN 201210034786 CN201210034786A CN103259875A CN 103259875 A CN103259875 A CN 103259875A CN 201210034786 CN201210034786 CN 201210034786 CN 201210034786 A CN201210034786 A CN 201210034786A CN 103259875 A CN103259875 A CN 103259875A
Authority
CN
China
Prior art keywords
server
administration module
address
detecting
identification code
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
CN 201210034786
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN 201210034786 priority Critical patent/CN103259875A/en
Publication of CN103259875A publication Critical patent/CN103259875A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for detecting server IP addresses. The method comprises the following steps: a step of providing a plurality of servers and a plurality of management modules, starting the detecting process of each management module and starting the initialization process of each server, a step of reading an identification code RackID from each management module and an identification code RackID from each server, a step of reading an identification code SlotID of the installing position of each management module and an identification code SlotID of the installing position of each server, a step of setting the Rack ID + SlotID as the MAC addresses of each management module and each server through software, a step of obtaining the IP addresses corresponding to the servers according to the MAC addresses of the servers, a step of sending network packets to the servers through the management modules according to the sequence of the MAC addresses and requesting each server to reply the IP address of the corresponding server, a step of responding the IP addresses to the corresponding management modules if the servers receive the net packets sent by the management modules, and finishing the initialization process of the servers, and a step of storing the IP addresses in a database if the management modules receive the IP addresses of the corresponding servers and finishing the detecting process of the management modules.

Description

The method for detecting of server ip address
Technical field
The present invention relates to a kind of automatic detection method of server ip address.
Background technology
Server design (for example, blade server) because share a variety of causes such as power supply, heat dissipation design, is that a plurality of servers are installed in the rack cabinet.(Management Module MM) connects, and by this administration module these a plurality of servers is carried out unified management for these a plurality of servers and an administration module.Because administration module must pass through Internet protocol (IP, Internet Protocol) address and transmit order, administration module need be learnt the IP address of each server.At present, common way is manually to import the IP address of the server of being managed, but such way relies on artificial input, can't be managed by administration module because of the server that mistake causes easily.
Summary of the invention
In view of this, be necessary to provide a kind of automatic detection method of server ip address.
A kind of method for detecting of server ip address, it may further comprise the steps:
Step 1 provides a server system, and this server system comprises a plurality of servers and a plurality of administration module that is connected, and starts the detecting process of each administration module and the initialize process of each server;
Step 2 reads identification code Rack ID from each administration module and each server, and judges that Rack ID is effective value, if not effectively be worth, then enters a diagnostic mode; If effective value then enters step 3;
Step 3 reads the identification code Slot ID of each administration module and each server installation site separately;
Step 4, each administration module and each server are Rack ID+Slot ID by the software set MAC Address;
Step 5, each server obtains separately IP address according to its MAC Address;
Step 6, administration module sends network package to each server according to the sequencing of MAC Address, requires each server to reply its IP address;
Step 7 if each server is received the network package that administration module sends, is then given administration module with the IP address response, and the initialize process of server finishes;
Step 8, administration module are if the IP address of receiving each server is then left the IP address in a database, and the detecting process of end administration module.
Adopt the method for detecting of server ip address of the present invention can avoid the user manually to import the mistake of setting the IP address, and because the network package that administration module sends all is at the server in the same server system, the IP address range of detecting is confined to the server in the same server system, the detecting time is shorter, and can not disturb other not server in same server system.
Description of drawings
Fig. 1 and Fig. 2 are the flow chart of automatic detection method of the server ip address of a preferred embodiment of the present invention.
Embodiment
Be the automatic detection method based on the server ip address of medium access control (MAC, Media Access Control) address of a preferred embodiment of the present invention as shown in Figures 1 and 2, this method may further comprise the steps:
Step 1 provides a server system, and this server system comprises m server and n the administration module that is connected; Each administration module and server comprise a nonvolatile random access memory (NVRAM, Non-Volatile Random Access Memory), general I/O (GPIO, General Purpose Input Output) port and a MAC Address register (MAC address register); The NVRAM of each administration module and each server, burning is with the identification code Rack ID of MAC form when production and assembly; The GPIO port of each administration module and each server can read the identification code Slot ID of the installation site of each administration module and each server; In same server system, the value of the identification code Rack ID of the NVRAM of each administration module and each server is identical, and the value of the installation site Slot ID of each administration module and each server is all different each other;
Step 2 starts the detecting process of each administration module and the initialize process of each server;
Step 3 reads identification code Rack ID from the NVRAM of each administration module and each server, and judges that Rack ID is effective value.If not effectively be worth, show not write Rack ID in the NVRAM, then enter a diagnostic mode, to write the operation of Rack ID; If Rack ID is effective value, then enter step 4;
Step 4, read the identification code Slot ID of each administration module and each server installation site separately from the GPIO port of each administration module and each server, the identification code Slot ID of each administration module is made as successively: [0,1, n-1], the identification code Slot ID of each server is made as successively: [n, n+1 ... n+m-1];
Step 5, the MAC Address register of each administration module and each server is Rack ID+Slot ID by the software set MAC Address, then the MAC Address of each administration module is followed successively by: Rack ID+[0,1, n-1], the MAC Address of each server is followed successively by: Rack ID+[n, and n+1 ... n+m-1];
Step 6, each server obtains separately IP address according to its MAC Address; Particularly, in the present embodiment, by providing a DynamicHost that agreement (DHCP, Dynamic Host Configuration Protocol) device is set, this DHCP device is connected with each server, and each server obtains separately IP address from this DHCP device;
Step 7, administration module are sent network package and are given the MAC Address register of MAC Address at a most preceding server earlier, require this server to reply its IP address information;
Step 8 if server is received the network package that administration module sends, then responds a package that comprises the IP address information MAC Address register to administration module, and the initialize process of this server finishes;
Step 9, administration module is if receive the package that comprises the IP address information of server in the time of setting, then the IP address information with this server leaves a database in, enters following step 10 then; If the response of not receiving server in the time of setting then directly enters following step 10;
Step 10, administration module send network package give MAC Address after the MAC Address register of next server, require this server to reply its IP address information, repeating step 8-9 then;
Step 11, when administration module sent network package and gives MAC Address at the MAC Address register of last server and require this server to reply its IP address information, repeating step 8-9 finished the detecting process of administration module at last.
Adopt the method for detecting of server ip address of the present invention can avoid the user manually to import the mistake of setting the IP address, and because the network package that administration module sends all is at the server in the same server system, the IP address range of detecting is confined to the server in the same server system, the detecting time is shorter, and can not disturb other not server in same server system.

Claims (7)

1. the method for detecting of a server ip address, it may further comprise the steps:
Step 1 provides a server system, and this server system comprises a plurality of servers and a plurality of administration module that is connected, and starts the detecting process of each administration module and the initialize process of each server;
Step 2 reads identification code Rack ID from each administration module and each server, and judges that Rack ID is effective value, if not effectively be worth, then enters a diagnostic mode; If effective value then enters step 3;
Step 3 reads the identification code Slot ID of each administration module and each server installation site separately;
Step 4, each administration module and each server are Rack ID+Slot ID by the software set MAC Address;
Step 5, each server obtains separately IP address according to its MAC Address;
Step 6, administration module sends network package to each server according to the sequencing of MAC Address, requires each server to reply its IP address;
Step 7 if each server is received the network package that administration module sends, is then given administration module with the IP address response, and the initialize process of server finishes;
Step 8, administration module are if the IP address of receiving each server is then left the IP address in a database, and the detecting process of end administration module.
2. method for detecting as claimed in claim 1, it is characterized in that: each administration module and server comprise a NVRAM, the NVRAM of each administration module and each server when production and assembly burning with identification code Rack ID.
3. method for detecting as claimed in claim 1, it is characterized in that: each administration module and server comprise a GPIO port, and the GPIO port of each administration module and each server can read the identification code Slot ID of the installation site of each administration module and each server.
4. method for detecting as claimed in claim 1, it is characterized in that: each administration module and server comprise a MAC Address register, are used for depositing MAC Address.
5. method for detecting as claimed in claim 1, it is characterized in that: the value of the identification code Rack ID of each administration module and each server is identical.
6. method for detecting as claimed in claim 5 is characterized in that: the value of the installation site Slot ID of each administration module and each server is all different each other.
7. method for detecting as claimed in claim 1 is characterized in that: in step 5, obtaining of IP address is DHCP device by providing one to be connected with each server, and each server obtains separately IP address from this DHCP device.
CN 201210034786 2012-02-16 2012-02-16 Method for detecting server IP addresses Pending CN103259875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210034786 CN103259875A (en) 2012-02-16 2012-02-16 Method for detecting server IP addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210034786 CN103259875A (en) 2012-02-16 2012-02-16 Method for detecting server IP addresses

Publications (1)

Publication Number Publication Date
CN103259875A true CN103259875A (en) 2013-08-21

Family

ID=48963564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210034786 Pending CN103259875A (en) 2012-02-16 2012-02-16 Method for detecting server IP addresses

Country Status (1)

Country Link
CN (1) CN103259875A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636256A (en) * 2019-01-30 2019-04-16 四川长虹电器股份有限公司 A kind of MAC Address management method of MES system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636256A (en) * 2019-01-30 2019-04-16 四川长虹电器股份有限公司 A kind of MAC Address management method of MES system

Similar Documents

Publication Publication Date Title
CN109804648B (en) IoT configuration service
EP3526713B1 (en) Automatic provisioning of iot devices
CN106796556B (en) Emulated endpoint configuration
CN109951325B (en) Network cable connection checking method and device
CN103139326A (en) Method, device and system for tracing internet protocol (IP)
CN103744695A (en) Method and system for operating system remote installation on basis of PXE
US20070115981A1 (en) System and method for filtering communications at a network interface controller
US20100289620A1 (en) Connectionless location identification within a server system
US20060173955A1 (en) Method and apparatus for allocating network subscriber device addresses in a profinet IO network
WO2018085165A1 (en) Iot device authentication
CN103929439A (en) Data transmission method and MODBUS server
CN103544121B (en) A kind of method based on micro services system administration slot number, equipment and system
US20130131885A1 (en) System and method for obtaining and managing temperature data
CN112580730A (en) Terminal type identification method and device
CN102349267B (en) Plurality of sensors coupled to series of switching devices
CN103259875A (en) Method for detecting server IP addresses
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN106775818B (en) ECU (electronic control Unit) upgrading method and ECU upgrading equipment based on CAN (controller area network) bus
CN109840232A (en) It stores equipment and stores the component management method of equipment
CN102521195B (en) Address resource allocation method and memorizer
CN105281944B (en) Method for setting network protocol address and service management system
US20160344683A1 (en) Network switch having address configuration function
CN100397338C (en) Program installation system and method
CN103490913A (en) Pre-boot execution environment testing device, method and system
CN115514733A (en) Configuration method and configuration device for domain name resolution service (DNS)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130821