CN106155784A - Method and device for automatically switching IPMI network port working mode - Google Patents
Method and device for automatically switching IPMI network port working mode Download PDFInfo
- Publication number
- CN106155784A CN106155784A CN201610045809.5A CN201610045809A CN106155784A CN 106155784 A CN106155784 A CN 106155784A CN 201610045809 A CN201610045809 A CN 201610045809A CN 106155784 A CN106155784 A CN 106155784A
- Authority
- CN
- China
- Prior art keywords
- ipmi
- switch
- network interface
- mode
- program
- 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
Links
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000013515 script Methods 0.000 claims description 20
- 230000003068 static effect Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
- 238000003756 stirring Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a device for automatically switching an IPMI network port working mode, and relates to the technical field of computer storage. The method for automatically switching the working mode of the IPMI network port is provided, the state of a toggle switch can be fully automatically detected under an unattended Linux system in the aspect of usability, the state of the toggle switch is automatically transmitted to an operating system in real time, and the operation of relevant switching working states is executed, so that the working state of the IPMI network port meets the requirements of users.
Description
Technical field
The present invention relates to computer memory technical field, particularly relate to a kind of automatic switchover based on (SuSE) Linux OS
The method of IPMI network interface mode of operation and device thereof.
Background technology
Along with the development of the new technique such as cloud computing, big data, the demand that server is stablized, reliably worked by people
Require more and more higher with mean time between failures (MTBF), the most effectively shorten server failure repair time, improve machine
Device is a pendulum difficult problem in face of each attendant non-failure operation time.Due to IPMI network interface as server production line test,
The operation such as attendant's gather information, customer management apparatus is necessarily required to the interface used, the configuration side of present stage IPMI network interface
Formula complexity is dumb, for this kind of problem, proposes mode of operation when simple and easy to do switch three kinds of different scenes of switching use,
Meet the requirement of various user.
Summary of the invention
In order to solve above technical problem, the present invention propose a kind of IPMI network interface mode of operation that automatically switches method and
Its device, has detecting real-time, the feature that unmanned is automatically performed.
A kind of method of IPMI network interface mode of operation that automatically switches, is performed by automatized script under (SuSE) Linux OS
Program completes toggle switch state detecting, and according to switch current state, operating system converts IPMI mouth mode of operation automatically.Propose
The method of automatization's switching IPMI network interface mode of operation, ease for use can accomplish under unmanned, linux system full-automatic
Detecting toggle switch state, is automatically delivered to toggle switch state operating system in real time, and performs relevant switch operating state
Operation so that IPMI network interface working state meets user demand.
The invention also discloses the device of a kind of IPMI network interface mode of operation that automatically switches, specifically include that (1) IPMI;(2)
IPMI mouth mode of operation;(3) automated detection toggle switch shell script;(4) ipmitool instrument;(5) IPMI state switching
Switch;
Wherein:
(1), IPMI: wisdom platform management interface (Intelligent Platform Management Interface),
IPMI can take in a large number across different operating system, firmware and hardware platform in the supervision of intelligence, control and automatic return
The functioning condition of business device, IPMI independent of the outer self-contained operation of operating system, even and if allow manager lack operating system or
The system management software or monitored system closedown but remain to remote management system in the case of connecing power supply, IPMI also can be
After os starting, activity, is also provided that reinforcement function, boots up, restarts, closes when using in the lump with system management function
Machines etc. operate.
(2), IPMI mouth mode of operation: IPMI network interface mode of operation has 3 kinds, and DHCP obtains IP address pattern automatically,
STATIC has static ip address pattern, the pattern that multiplexing IPMI network interface uses with the binding of independent IPMI network interface.
(3), automated detection toggle switch shell script: the automatized script write, automatic acquisition is currently stirred
The state of switch, performs operation and the mode of operation of IPMI network interface is switched to required state.
(4), ipmitool instrument: ipmitool is that the ipmi of a kind of command line mode that can be used under Linux system puts down
Platform management instrument, it is supported IPMI 2.0 specification, can realize obtaining in the information of sensor, display system daily record by it
Appearance, network remote switching on and shutting down, the function such as restart.
(5), IPMI state switch: a kind of syllogic toggle switch, embed in server master board parts, by stirring
The mode of switch distinguishes the duty of IPMI network interface.
The present invention comprises two program file rc.local and switch.sh and performs file, and content is as follows:
Rc.local program:
#!/bin/sh
#
#This script will be executed*after*all the other init scripts.
#You can put your own initialization stuff in here if you don't
#want to do the full Sys V style init stuff.
sh/linux/switch.sh
Illustrate: rc.local program is the program being first carried out during current operation system startup, i.e. opens whenever operating system
Automatically detecting script is run time dynamic
Switch.sh program:
Full-automatic detecting toggle switch state under unmanned, linux system can be accomplished, automatically by toggle switch state
It is delivered to operating system in real time, and performs relevant switch operating state operation so that IPMI network interface working state meets user
Demand.Simultaneously, it is proposed that the method for the automated detection on off state that a kind of multi version linux system is general.
Accompanying drawing explanation
Fig. 1. the script file needed under system;
Fig. 2. the content of script;
Fig. 3. start is set and automatically runs.
Detailed description of the invention
For making objects and advantages of the present invention clearer, the present invention is done describe in detail further below.
1. any one catalogue copy switch.sh program, such as/linux catalogue in server OS, and hold
Row chmod 777switch.sh, gives this program and can perform authority, such as Fig. 1, content for script such as Fig. 2.
Dispose start execution program rc.local the most on the server, use order vi/etc/rc.d/rc.local to create
Start performs the program of switch.sh.Such as Fig. 3
3. detecting process and result of implementation:
(1) create start execution program under system and give after switch.sh program can perform authority, whole detecting
Process can automatically begin to run, it is not necessary to manually intervene.
(2), after switch.sh program starts to perform, from sensor, reading ,/usr/bin/ipmitool are first obtained
sdr|grep ipmi_status.Such as table 1
Table 1
(3), after obtaining respective sensor reading, calculated by corresponding expression formula:
If on off state value is 1, then switching IPMI network interface is that DHCP obtains IP pattern automatically:
If [ss==1];then/usr/bin/ipmitool lan set 1ipsrc dhcp&&/usr/bin/
ipmitool lan set 8ipsrc dhcp fi
If on off state value is 2, then switching IPMI network interface is Static static IP pattern, and arranges independent IPMI network interface
IP is 192.168.100.100, and subnet mask is 255.255.255.0, and arranging multiplexing IPMI network interface IP is 10.100.1.2, son
Net mask is 255.255.255.0:
If [ss==2];then/usr/bin/ipmitool lan set 1ipsrc static&&/usr/bin/
ipmitool lan set 8ipsrc static&&/usr/bin/ipmitool lan set 1ipaddr
10.100.1.2&&/usr/bin/ipmitool lan set 1netmask 255.255.255.0&&/usr/bin/
ipmitool lan set 8ipaddr 192.168.100.100&&/usr/bin/ipmitool lan set 8netmask
255.255.255.0fi
If on off state value is 3, then changes IPMI multiplexing network interface and independent network interface is binding pattern, after switching binding
IPMI network interface mode is that DHCP obtains IP pattern automatically:
If [ss==3];then/usr/bin/ipmitool set bond 180dhcp fi
(4) after outside arranges the position of toggle switch, current server is restarted, when an operating system starts, automatically
The program of detecting will go to capture the state of current switch, will change the mode of operation of IPMI network interface after acquisition state in real time,
Meet the demand of currently used person.
Claims (4)
1. the method for the IPMI network interface mode of operation that automatically switches, it is characterised in that
Perform program by automatized script under (SuSE) Linux OS and complete toggle switch state detecting, according to switching current shape
State, operating system converts IPMI mouth mode of operation automatically.
Method the most according to claim 1, it is characterised in that
Automatized script performs program and includes that two program file rc.local and switch.sh perform file, and content is the most such as
Under:
Rc.local program:
#!/bin/sh
#
#This script will be executed*after*all the other init scripts.
#You can put your own initialization stuff in here if you don't
#want to do the full Sys V style init stuff.
sh/linux/switch.sh
Switch.sh program:
3. the device of the IPMI network interface mode of operation that automatically switches, it is characterised in that specifically include that (1) IPMI;(2)IPMI
Mouth mode of operation;(3) automated detection toggle switch shell script;(4) ipmitool instrument;(5) IPMI state switch;
Wherein:
(1), IPMI: wisdom platform management interface, IPMI can be permissible across different operating system, firmware and hardware platform
The supervision of intelligence, control and the automatic functioning condition returning server, IPMI is independent of the outer self-contained operation of operating system, and allows
Even if manager in the case of lacking operating system or the system management software or monitored system closedown but connecing power supply still
Energy remote management system, IPMI also can be movable after os starting, is also provided that when using in the lump with system management function
Add powerful, boot up, restart, the operation such as shutdown;
(2), IPMI mouth mode of operation: IPMI network interface mode of operation has 3 kinds, and DHCP obtains IP address pattern automatically, and STATIC gathers around
There are static ip address pattern, the pattern that multiplexing IPMI network interface uses with the binding of independent IPMI network interface;
(3), automated detection toggle switch shell script: the automatized script write, the automatically current toggle switch of acquisition
State, perform operation the mode of operation of IPMI network interface is switched to required state;
(4), ipmitool instrument: ipmitool is the ipmi platform pipe of a kind of command line mode that can be used under Linux system
Science and engineering has, and it supports IPMI 2.0 specification, can realize obtaining the information of sensor, display system log content, net by it
Network remote on-off, the function such as restart;
(5), IPMI state switch: a kind of syllogic toggle switch, embed in server master board parts, pass through toggle switch
Mode distinguish the duty of IPMI network interface.
Device the most according to claim 3, it is characterised in that automatized script comprise two program file rc.local and
Switch.sh performs file, and content is as follows:
Rc.local program:
#!/bin/sh
#
#This script will be executed*after*all the other init scripts.
#You can put your own initialization stuff in here if you don't
#want to do the full Sys V style init stuff.
sh/linux/switch.sh
Switch.sh program:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610045809.5A CN106155784A (en) | 2016-01-22 | 2016-01-22 | Method and device for automatically switching IPMI network port working mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610045809.5A CN106155784A (en) | 2016-01-22 | 2016-01-22 | Method and device for automatically switching IPMI network port working mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106155784A true CN106155784A (en) | 2016-11-23 |
Family
ID=57353153
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610045809.5A Pending CN106155784A (en) | 2016-01-22 | 2016-01-22 | Method and device for automatically switching IPMI network port working mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155784A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273258A (en) * | 2017-07-24 | 2017-10-20 | 郑州云海信息技术有限公司 | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server |
CN110380910A (en) * | 2019-08-07 | 2019-10-25 | 河北远东通信系统工程有限公司 | A method of realizing that the double network interfaces of dispatch terminal detect and switch automatically |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024079A (en) * | 2012-12-31 | 2013-04-03 | 华为技术有限公司 | Method for acquiring resource information of server, resource pool management system and server |
CN104808760A (en) * | 2015-04-09 | 2015-07-29 | 中国电子科技集团公司第三十二研究所 | IPMI redundant power supply management system controlled by single power supply management |
CN104852815A (en) * | 2015-04-09 | 2015-08-19 | 中国电子科技集团公司第三十二研究所 | Network redundancy IPMI management system |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions |
-
2016
- 2016-01-22 CN CN201610045809.5A patent/CN106155784A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024079A (en) * | 2012-12-31 | 2013-04-03 | 华为技术有限公司 | Method for acquiring resource information of server, resource pool management system and server |
CN104808760A (en) * | 2015-04-09 | 2015-07-29 | 中国电子科技集团公司第三十二研究所 | IPMI redundant power supply management system controlled by single power supply management |
CN104852815A (en) * | 2015-04-09 | 2015-08-19 | 中国电子科技集团公司第三十二研究所 | Network redundancy IPMI management system |
CN104899120A (en) * | 2015-05-27 | 2015-09-09 | 浪潮电子信息产业股份有限公司 | Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions |
Non-Patent Citations (3)
Title |
---|
LOOPHOME: "linux启动后执行脚本(/etc/rc.local文件)", 《HTTPS://BLOG.CSDN.NET/LOOPHOME/ARTICLE/DETAILS/44858737》 * |
NIGHT_ELF_1020: "IPMI配置使用步骤", 《HTTPS://BLOG.CSDN.NET/NIGHT_ELF_1020/ARTICLE/DETAILS/19903995》 * |
崔涛: "使用 ipmitool 实现 Linux 系统下对服务器的 ipmi 管理", 《HTTPS://WWW.IBM.COM/DEVELOPERWORKS/CN/LINUX/L-IPMI/INDEX.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273258A (en) * | 2017-07-24 | 2017-10-20 | 郑州云海信息技术有限公司 | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server |
CN110380910A (en) * | 2019-08-07 | 2019-10-25 | 河北远东通信系统工程有限公司 | A method of realizing that the double network interfaces of dispatch terminal detect and switch automatically |
CN110380910B (en) * | 2019-08-07 | 2022-02-25 | 河北远东通信系统工程有限公司 | Method for realizing automatic detection and switching of double network ports of scheduling terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11533311B2 (en) | Automatically deployed information technology (IT) system and method | |
US11256539B2 (en) | Task processing method, apparatus, and system based on distributed system | |
US20150324227A1 (en) | Techniques for virtual machine migration | |
CN106980493B (en) | Firmware management method and device | |
CN105204936A (en) | Universal resident process management platform and method | |
CN109982147A (en) | Resetting apparatus, reset processing method and display equipment | |
CN115562738B (en) | Port configuration method, component and hard disk expansion device | |
CN105260275A (en) | Startup and shutdown testing method suitable for automatic configuration partition of high-end host | |
CN110119330A (en) | Method for automatically restoring BIOS file of cloud backup server BIOSROM | |
CN107894935B (en) | OPS computer module detection processing method and device and electronic equipment | |
CN106155784A (en) | Method and device for automatically switching IPMI network port working mode | |
CN108989123A (en) | A kind of server configuration method and device | |
CN105426281B (en) | A kind of power switch machine test method, system and blade server | |
CN105512000A (en) | Method and device for collecting abnormal information of operating system, and computer | |
CN109165181A (en) | A kind of more boards are from configuration and task from compartment system and method | |
CN106095643A (en) | The establishing method of systematic parameter access and server thereof | |
CN103389909A (en) | Rendering farm node virtualization deployment system and application thereof | |
CN105933160A (en) | Method for realizing quick connection of wired network on Android smart television | |
Carson et al. | Mandrake: Implementing durability for edge clouds | |
CN208596339U (en) | A kind of double mainboard computers | |
CN108337193B (en) | Unified installation and rescue system and monitoring system of switch operating system | |
CN112667363A (en) | Method and device for simulating cloud physical host by using virtual machine based on cloud platform | |
CN102243601B (en) | Debugging system and relevant method for detecting and controlling state of computer host | |
TWI317072B (en) | ||
CN202662000U (en) | Node virtualization deployment device of render farm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |
|
RJ01 | Rejection of invention patent application after publication |