CN109634626B - Method and system for remotely installing server system driver based on BMC - Google Patents
Method and system for remotely installing server system driver based on BMC Download PDFInfo
- Publication number
- CN109634626B CN109634626B CN201811548319.2A CN201811548319A CN109634626B CN 109634626 B CN109634626 B CN 109634626B CN 201811548319 A CN201811548319 A CN 201811548319A CN 109634626 B CN109634626 B CN 109634626B
- Authority
- CN
- China
- Prior art keywords
- server
- bmc
- remotely
- remote controller
- drive
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000009434 installation Methods 0.000 claims abstract description 26
- 241001290266 Sciaenops ocellatus Species 0.000 claims description 25
- 235000014510 cooky Nutrition 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method and a system for remotely installing a server system driver based on BMC (baseboard management controller), which comprises the following steps: the remote controller logs in a BMC (baseboard management controller) of the server to be installed to acquire a TOKEN value; the remote control machine accesses a BMC of the remote storage server according to the TOKEN value, and mounts the drive folder to the server to be installed remotely; through a serial port redirection function of the BMC, the remote controller remotely logs in the server to be installed through a BMC network and copies the remotely mounted drive file to the server to be installed; and executing a drive installation command in the server to be installed to complete drive installation.
Description
Technical Field
The invention relates to the technical field of servers, in particular to a method and a system for remotely installing a server system driver based on BMC.
Background
With the rapid development of cloud computing, the upgrading and updating of servers are also accelerated, servers deployed on a large scale such as a data center need to be updated continuously, the cost of the servers is high, the overall replacement and updating cost is too high, and in order to balance the cost and the business requirement, a method of updating only network cards, RAID cards and other parts in the servers is accepted by more and more enterprises. After the component is updated, the driver under the corresponding system needs to be reinstalled and updated. Generally, a method for updating a system driver is to remotely log in a system for updating through a system network, but if a network card is replaced, the system network cannot be used when the network card driver of the original system is not supported, and in this case, remote drive updating through the system network cannot be performed.
Disclosure of Invention
In order to overcome the defects in the prior art, the present invention provides a method and a system for remotely installing a server system driver based on BMC, so as to solve the above technical problems.
The technical scheme of the invention is as follows:
a method for remotely installing a server system driver based on BMC comprises the following steps:
the remote controller logs in a BMC (baseboard management controller) of the server to be installed to acquire a TOKEN value;
the remote control machine accesses a BMC of the remote storage server according to the TOKEN value, and mounts the drive folder to the server to be installed remotely;
through a serial port redirection function of the BMC, the remote controller remotely logs in the server to be installed through a BMC network and copies the remotely mounted drive file to the server to be installed;
and executing a drive installation command in the server to be installed to complete drive installation.
Further, the remote controller logs in the server BMC to be installed to obtain the TOKEN value, and the method further includes:
and acquiring a BMC IP address of the server to be installed.
Further, the step of obtaining the TOKEN value by the remote controller by logging in the server BMC to be installed includes:
and the remote control machine logs in the BMC of the server to be installed according to the acquired BMC IP address of the server to be installed, and acquires the TOKEN value.
Further, the remote control machine logs in the BMC of the server to be installed through a Redfish interface according to the acquired BMC IP address of the server to be installed, and acquires a TOKEN value;
and the remote controller accesses the BMC of the remote storage server according to the TOKEN value and mounts the drive folder to the server to be installed remotely through a Redfish interface.
Further, the step remote controller accesses the remote storage server BMC according to the TOKEN value, mounts the drive folder to the server to be installed remotely through the Redfish interface, and includes:
the BMC URL path of the drive folder is remotely mounted through BMC; wherein, include: the method comprises the following steps of sharing a server file to be installed, driving a file path of the server to be installed, and an IP address of the server to be installed;
and mounting the drive file to a server to be installed according to the BMC redfish interface.
Further, the step is through BMC's serial ports redirection function, and remote controller copies the drive file of remote mount to waiting to install the server in long-range logging in to waiting to install the server through BMC network, specifically includes:
opening a serial port redirection function according to the BMC IP;
logging in a server to be installed according to a user name and a password of the server system to be installed;
copying the drive file to a path appointed by a server to be installed;
and executing a drive installation command to complete drive installation.
The technical scheme of the invention also provides a system for remotely installing the server system driver based on the BMC, which comprises a remote controller, a server to be installed and a storage server;
the storage server is used for storing the system driving file;
the remote control machine is used for logging in the BMC of the server to be installed and acquiring a TOKEN value;
the remote control machine is used for accessing the BMC of the remote storage server according to the TOKEN value and remotely mounting the drive folder into the server to be installed;
the remote controller is used for remotely logging in the server to be installed through a BMC network to copy the remotely mounted drive file to the server to be installed through a serial port redirection function of the BMC;
and the remote control machine is used for sending an execution drive installation command to the server to be installed to complete drive installation.
Further, the remote controller comprises a BMC IP acquisition module;
and the BMC IP acquisition module is used for acquiring a BMC IP address of the server to be installed.
Further, a BMC Redfish module is arranged inside the server to be installed;
the remote controller is used for logging in the BMC of the server to be installed through a Redfish interface according to the acquired BMC IP address of the server to be installed to acquire a TOKEN value;
and the remote controller is used for accessing the BMC of the remote storage server according to the TOKEN value and remotely mounting the drive folder to the server to be installed through a Redfish interface.
The method comprises the steps of remotely logging in the BMC through a Redfish interface, remotely mounting a drive folder to a server to be installed through the BMC, logging in the server to be installed through a serial port redirection function of the BMC, copying the remotely mounted drive folder to the server to be installed, and finally executing a drive installation command. Thus, the method for automatically copying the drive file to the server system and completing the drive installation without the system network is realized.
According to the technical scheme, the invention has the following advantages: the invention discloses a method for automatically updating system drivers in a remote way without a system network. The principle is that the drive folder is remotely mounted to the server through a BMC network, then the login server system is redirected through a BMC serial port, the drive file in the mounted drive folder is copied to the server to be installed, and finally, drive installation is executed, and automatic drive installation is completed.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
Fig. 1 is a flowchart illustrating a method for remotely installing a server system driver based on BMC.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
Example one
As shown in fig. 1, a method for remotely installing a server system driver based on BMC includes the following steps:
s1: the remote controller logs in a BMC (baseboard management controller) of the server to be installed to acquire a TOKEN value;
s2: the remote control machine accesses a BMC of the remote storage server according to the TOKEN value, and mounts the drive folder to the server to be installed remotely;
s3: through a serial port redirection function of the BMC, the remote controller remotely logs in the server to be installed through a BMC network and copies the remotely mounted drive file to the server to be installed;
s4: and executing a drive installation command in the server to be installed to complete drive installation.
Example two
A method for remotely installing a server system driver based on BMC comprises the following steps:
s1: the remote controller logs in a BMC (baseboard management controller) of the server to be installed to acquire a TOKEN value;
before executing the step, firstly acquiring a BMC IP of the server to be installed, logging in a BMC through a Redfish interface according to the acquired BMC IP of the server to be installed, and acquiring a TOKEN value;
URL ═ https:// "+ IP +"/redfish/v1/Session service/Sessions "// specify URL path
The method comprises the steps of (1) current-c $ { COOKIE _ FILE } -k $ URL-X POST-data' USERNAME $ { USERNAME } & PASSWORD $// logging in BMC by using a CURL tool according to a URL path, and acquiring TOKEN
{ "ok":0, "priority": 4, "extenseddpriv": 259, "racissessino _ id":1, "remote _ addr": 100.2.74.79, "" server _ name ": 100.2.74.43," "server _ addr": 100.2.74.43, "" httpsecured ":0," CSRFToken ": bnBUAWsP" }// this is the result of the execution of the curl command, where bnawbusp is the value of Token
S2: the remote control machine accesses a BMC of the remote storage server according to the TOKEN value, and mounts the drive folder to the server to be installed remotely;
based on the above steps, the remote controller accesses the remote storage server BMC according to the TOKEN value, mounts the drive folder to the server to be installed remotely through the Redfish interface, and specifically includes: and mounting the drive file to the server to be installed according to the BMC redfish interface through the BMC URL path of the BMC remote mounting drive folder.
The commands are as follows:
URL https:// IP/redfish/v1/Managers/1/Vmedia/Instance// BMC URL path to mount folder remotely by BMC
DATA={
"hd _ remote _ share _ type" "," cifs "",// way of sharing files
"hd _ remote _ source _ path" "/share/driver/",// path to drive file
"hd _ remote _ server _ address" "192.168.1.110",/system IP address
}
The current-k-b $ { COOKIE _ FILE } $ URL-X POST-d $ DATA-H: $ { CSRF _ TOKEN } "// mount the drive FILE to the server according to a BMC redfish interface with a current command;
s3: through a serial port redirection function of the BMC, the remote controller remotely logs in the server to be installed through a BMC network and copies the remotely mounted drive file to the server to be installed;
s4: and executing a drive installation command in the server to be installed to complete drive installation.
EXAMPLE III
The technical scheme of the invention also provides a system for remotely installing the server system driver based on the BMC, which comprises a remote controller, a server to be installed and a storage server;
the storage server is used for storing the system driving file;
the remote control machine is used for logging in the BMC of the server to be installed and acquiring a TOKEN value;
the remote control machine is used for accessing the BMC of the remote storage server according to the TOKEN value and remotely mounting the drive folder into the server to be installed;
the remote controller is used for remotely logging in the server to be installed through a BMC network to copy the remotely mounted drive file to the server to be installed through a serial port redirection function of the BMC;
and the remote control machine is used for sending an execution drive installation command to the server to be installed to complete drive installation.
The remote controller comprises a BMC IP acquisition module;
and the BMC IP acquisition module is used for acquiring a BMC IP address of the server to be installed.
A BMC Redfish module is arranged in the server to be installed;
the remote controller is used for logging in the BMC of the server to be installed through a Redfish interface according to the acquired BMC IP address of the server to be installed to acquire a TOKEN value;
and the remote controller is used for accessing the BMC of the remote storage server according to the TOKEN value and remotely mounting the drive folder to the server to be installed through a Redfish interface.
The method comprises the steps of remotely logging in the BMC through a Redfish interface, remotely mounting a drive folder to a server to be installed through the BMC, logging in the server to be installed through a serial port redirection function of the BMC, copying the remotely mounted drive folder to the server to be installed, and finally executing a drive installation command. This achieves the goal of eliminating the need to automatically copy the driver files to the server system over the system network and complete the installation of the drivers.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
1. A method for remotely installing a server system driver based on BMC is characterized by comprising the following steps:
the remote control machine logs in the BMC of the server to be installed through a Redfish interface according to the acquired BMC IP address of the server to be installed, and acquires a TOKEN value;
the remote controller accesses a BMC (baseboard management controller) of the remote storage server according to the TOKEN value and mounts the drive folder to the server to be installed remotely through a Redfish interface;
through a serial port redirection function of the BMC, the remote controller remotely logs in the server to be installed through a BMC network and copies the remotely mounted drive file to the server to be installed;
and executing a drive installation command in the server to be installed to complete drive installation.
2. The method as claimed in claim 1, wherein the step of the remote controller logging in the BMC of the server to be installed to obtain the TOKEN value further comprises:
and acquiring a BMC IP address of the server to be installed.
3. The method of claim 2, wherein the step of obtaining the TOKEN value by the remote controller by logging in the BMC of the server to be installed comprises:
and the remote control machine logs in the BMC of the server to be installed according to the acquired BMC IP address of the server to be installed, and acquires the TOKEN value.
4. The method as claimed in claim 3, wherein the step of the remote controller accessing the remote storage server BMC according to the TOKEN value and remotely mounting the driver folder to the server to be installed through the Redfish interface comprises:
the BMC URL path of the drive folder is remotely mounted through BMC; wherein, include: the method comprises the following steps of sharing a server file to be installed, driving a file path of the server to be installed, and an IP address of the server to be installed;
and mounting the drive file to a server to be installed according to the BMC redfish interface.
5. The method of claim 4, wherein the step of remotely logging in the server to be installed through the BMC network via a serial port redirection function of the BMC by the remote controller to copy the remotely mounted driver file to the server to be installed specifically includes:
opening a serial port redirection function according to the BMC IP;
logging in a server to be installed according to a user name and a password of the server system to be installed;
copying the drive file to a path appointed by a server to be installed;
and executing a drive installation command to complete drive installation.
6. A BMC-based system for remotely installing a server system driver is characterized by comprising a remote controller, a server to be installed and a storage server; a BMC Redfish module is arranged in the server to be installed;
the storage server is used for storing the system driving file;
the remote controller is used for logging in the BMC of the server to be installed through a Redfish interface according to the acquired BMC IP address of the server to be installed to acquire a TOKEN value;
the remote controller is used for accessing the BMC of the remote storage server according to the TOKEN value and remotely mounting the drive folder to the server to be installed through a Redfish interface;
the remote controller is used for remotely logging in the server to be installed through a BMC network to copy the remotely mounted drive file to the server to be installed through a serial port redirection function of the BMC;
and the remote control machine is used for sending an execution drive installation command to the server to be installed to complete drive installation.
7. The system of claim 6, wherein the remote controller comprises a BMC IP acquisition module;
and the BMC IP acquisition module is used for acquiring a BMC IP address of the server to be installed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548319.2A CN109634626B (en) | 2018-12-18 | 2018-12-18 | Method and system for remotely installing server system driver based on BMC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548319.2A CN109634626B (en) | 2018-12-18 | 2018-12-18 | Method and system for remotely installing server system driver based on BMC |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109634626A CN109634626A (en) | 2019-04-16 |
CN109634626B true CN109634626B (en) | 2021-10-29 |
Family
ID=66074963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811548319.2A Active CN109634626B (en) | 2018-12-18 | 2018-12-18 | Method and system for remotely installing server system driver based on BMC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634626B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399727A (en) * | 2019-06-25 | 2019-11-01 | 苏州浪潮智能科技有限公司 | A kind of BMC permission automatic test approach, system, terminal and storage medium |
CN110297645B (en) * | 2019-06-28 | 2021-09-14 | 联想(北京)有限公司 | System installation method and electronic equipment |
CN110995807B (en) * | 2019-11-24 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Method, device and equipment for directly opening server KVM and storage medium |
CN111190492B (en) * | 2019-12-25 | 2023-07-18 | 曙光信息产业(北京)有限公司 | Method and device for starting KVM |
CN111752773B (en) * | 2020-05-20 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Method and device for realizing power-on self-check verification of clustered system |
CN114666132B (en) * | 2022-03-22 | 2024-01-30 | 深圳供电局有限公司 | Method for encrypting and authenticating application layer based on TCP/IP protocol |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015069486A (en) * | 2013-09-30 | 2015-04-13 | ブラザー工業株式会社 | Program and communication system |
CN107071036A (en) * | 2017-04-21 | 2017-08-18 | 广东浪潮大数据研究有限公司 | A kind of method, the webserver and system for downloading driving file |
CN107170474A (en) * | 2016-03-07 | 2017-09-15 | 广达电脑股份有限公司 | Expansible the storage box, computer implemented method and computer readable storage means |
CN108228422A (en) * | 2017-12-29 | 2018-06-29 | 佛山市幻云科技有限公司 | Storage-type server management system and method |
CN108388437A (en) * | 2018-01-25 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of server B IOS |
-
2018
- 2018-12-18 CN CN201811548319.2A patent/CN109634626B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015069486A (en) * | 2013-09-30 | 2015-04-13 | ブラザー工業株式会社 | Program and communication system |
CN107170474A (en) * | 2016-03-07 | 2017-09-15 | 广达电脑股份有限公司 | Expansible the storage box, computer implemented method and computer readable storage means |
CN107071036A (en) * | 2017-04-21 | 2017-08-18 | 广东浪潮大数据研究有限公司 | A kind of method, the webserver and system for downloading driving file |
CN108228422A (en) * | 2017-12-29 | 2018-06-29 | 佛山市幻云科技有限公司 | Storage-type server management system and method |
CN108388437A (en) * | 2018-01-25 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of server B IOS |
Non-Patent Citations (2)
Title |
---|
Experiments with client/server multimedia on token ring;K. Amer;《1993 18th Conference on Local Computer Networks》;20020806;2-6 * |
基于新型云化电信网络的服务器测试方法研究;穆琙博;《电信网技术》;20180531;9-14 * |
Also Published As
Publication number | Publication date |
---|---|
CN109634626A (en) | 2019-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634626B (en) | Method and system for remotely installing server system driver based on BMC | |
EP3454213B1 (en) | Function library build architecture for serverless execution frameworks | |
CN107179879B (en) | Method and apparatus for data migration of storage device | |
US10007499B2 (en) | Decoupled installation of data management systems | |
US9043391B2 (en) | Capturing and restoring session state of a machine without using memory images | |
US20180121230A1 (en) | Evaluating distributed application performance in a new environment | |
CN109639803B (en) | Method and system for remotely and automatically deploying server OS (operating system) through BMC (baseboard management controller) | |
US20130007726A1 (en) | Virtual machine disk image installation | |
JP2014053050A (en) | Provisioning and managing replicated data instances | |
AU2019397405B2 (en) | Predictive microservice systems and methods | |
CN109327332B (en) | LIO-based iSCSI GateWay high-availability implementation method under Ceph cloud storage | |
CN106899454B (en) | Method and system for automatically testing RoCE performance based on Linux system | |
CN104834546A (en) | Method for upgrading cluster system by network | |
CN104360839A (en) | Method for automatically migrating LINUX system to WINDOWS system | |
US10162717B2 (en) | Synchronization of a disaster-recovery system | |
CN107861761B (en) | Starting method and system of physical host | |
US9075968B2 (en) | Dynamic creation of a temporary administrative user | |
US11675577B2 (en) | Systems and methods of orchestrating nodes in a blockchain network | |
CN106533716B (en) | A kind of management method and system of northbound interface | |
JP2023531701A (en) | Efficient controller data generation and extraction | |
TWI699657B (en) | Cloud migration system | |
US11163613B2 (en) | Automated system integration | |
JP4151618B2 (en) | File server and file server setting support method | |
Rothwell | CompTIA Linux+ Portable Command Guide: All the commands for the CompTIA XK0-004 exam in one compact, portable resource | |
Peterson | Modernization of Center-to-Center Data Communication Standards: Sample Implementation Administration and User Guide |
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 |