CN112749047A - Method and device for remotely simulating and controlling hard disk plugging and unplugging - Google Patents

Method and device for remotely simulating and controlling hard disk plugging and unplugging Download PDF

Info

Publication number
CN112749047A
CN112749047A CN202011566094.0A CN202011566094A CN112749047A CN 112749047 A CN112749047 A CN 112749047A CN 202011566094 A CN202011566094 A CN 202011566094A CN 112749047 A CN112749047 A CN 112749047A
Authority
CN
China
Prior art keywords
hard disk
bmc
ipmi
remotely
plugging
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
CN202011566094.0A
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.)
Henan Chuangxinke Information Technology Co ltd
Original Assignee
Henan Chuangxinke 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 Henan Chuangxinke Information Technology Co ltd filed Critical Henan Chuangxinke Information Technology Co ltd
Priority to CN202011566094.0A priority Critical patent/CN112749047A/en
Publication of CN112749047A publication Critical patent/CN112749047A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for remotely simulating and controlling the plugging and unplugging of a hard disk, wherein the method comprises the following steps: remote monitoring and inquiring information of a server hard disk based on BMC; the IPMI/BMC based device sends Linux command signals to perform simulated pull-out and/or simulated insertion of the hard disk, and comprises: the hard disk information query module is used for remotely monitoring and querying the information of the server hard disk based on the BMC; and the simulation plug-in module is used for carrying out simulation plug-in and/or simulation plug-out of the hard disk by sending a Linux command signal based on the IPMI/BMC. The invention can realize convenient remote test of hard disk plugging and unplugging.

Description

Method and device for remotely simulating and controlling hard disk plugging and unplugging
Technical Field
The invention relates to the technical field of storage servers, in particular to a method and a device for remotely and artificially controlling the plugging and unplugging of a hard disk.
Background
IPMI is an abbreviation of Intelligent Platform Management Interface (Intelligent Platform Management Interface), and is an industrial standard adopted for managing peripheral devices used in an enterprise system based on an Intel structure, and when the system works, all IPMI functions are completed by sending a command to a BMC (baseboard Manager controller), the command uses an instruction specified in the IPMI specification, and the BMC receives and records an event message in a system event log, and maintains a sensor data record describing the condition of a sensor in the system. The IPMI new Serial Over LAN (SOL) feature is useful when remote access to the system is required. SOL changes the local serial port transmission direction in the IPMI session process, thereby providing remote access to emergency management services, Windows dedicated management console or Linux serial console. The BMC does this by redirecting the information sent to the serial port over the LAN, providing a vendor-independent, remote query launch, operating system loader, or emergency management console to diagnose and repair failures. The Serial Over LAN (SOL) functionality would be very useful when remote access to the system text console is required. SOL redirects the local serial interface through an IPMI session, allowing remote access to Windows' emergency management console (EMS) special management console (SAC), or to LINUX serial console. The step of this process is that the IPMI firmware intercepts the data and then resends the information directed to the serial port over the LAN. This provides a standard way to remotely view the BOOT, OS loader, or emergency management console to diagnose and fix server-related problems, regardless of the vendor.
Disclosure of Invention
The embodiment of the specification provides a method and a device for remotely and artificially controlling hard disk plugging and unplugging.
The method for remotely simulating and controlling the plugging and unplugging of the hard disk provided by the embodiment of the specification comprises the following steps: remote monitoring and inquiring information of a server hard disk based on BMC; and sending a Linux command signal based on the IPMI/BMC to perform simulated pull-out and/or simulated insertion of the hard disk.
The device that this specification embodiment provided a remote analog control hard disk was inserted and is pulled out includes: the hard disk information query module is used for remotely monitoring and querying the information of the server hard disk based on the BMC; and the simulation plug-in module is used for carrying out simulation plug-in and/or simulation plug-out of the hard disk by sending a Linux command signal based on the IPMI/BMC.
The embodiment of the invention can realize convenient remote test of hard disk plugging and unplugging.
Drawings
Fig. 1 is a flow chart of a method for remotely emulating controlling hard disk plugging according to some embodiments of the present disclosure.
Fig. 2 is a detailed schematic diagram of a method for remotely controlling hard disk plugging and unplugging through simulation according to some embodiments of the present disclosure.
Fig. 3 is a block diagram of an apparatus for remotely emulating and controlling hard disk plugging according to some embodiments of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
As shown in fig. 1, some embodiments of the present disclosure provide a method for remotely controlling hard disk plugging/unplugging, including remotely monitoring and querying information of a server hard disk based on BMC; and sending a Linux command signal based on the IPMI/BMC to perform simulated pull-out and/or simulated insertion of the hard disk.
In some embodiments of the present description, the step of remotely monitoring and querying information of the server hard disk based on the BMC is specifically to remotely monitor and query information of the server hard disk by logging in a web interface through the BMC.
In some embodiments of the present description, the step of sending a Linux command signal based on IPMI/BMC to perform simulated pull-out and/or simulated insertion of the hard disk is specifically to remotely connect a preset IPMI/BMC IP to locate a disk number of the hard disk through SSH, send a first Linux command signal based on IPMI/BMC to simulate pull-out of the hard disk, and/or send a second Linux command signal based on IPMI/BMC to simulate insertion of the hard disk.
Further, in some embodiments of the present description, after the IPMI/BMC IP of the Server is set, the Server Mgmt management interface is entered based on the IPMI/BMC IP; connecting a shell background based on an input user name and password SSH, inquiring information for positioning a hard disk, and then sending an echo's remove-single-device' >/proc/scsi/scsi command signal to simulate the pulling-out of the hard disk and/or sending an echo 'scsi add-single-device' >/proc/scsi/scsi command signal to simulate the insertion of the hard disk. The process of simulating hard disk pull-out is explained in detail with reference to fig. 2 as follows: after setting the IPMI/BMC IP of the Server, logging in the IPMI/BMC IP to enter a Server Mgmt management interface, designing a function button for simulating disk pulling/disk plugging on a physical disk, after selecting an inserted physical disk, graying the simulation disk plugging function of the physical disk, lighting the simulation disk pulling function, inputting a user name and a password SSH to connect a shell background, inquiring information of positioning the physical disk, sending an echo's remove-single-device' >/plasma/scan simulation to pull out the physical disk, changing the state of the physical disk into pulled out after simulating the physical disk, graying the simulation disk pulling function at the moment, lighting the simulation disk plugging function, inputting the user name and the password SSH to connect the shell, inquiring information of positioning the physical disk, and sending echo-single-device '>/plasma/scan' >/plasma To be inserted into a physical disk.
With reference to fig. 3, an embodiment of the present invention further provides a device for remotely controlling a hard disk plug-in/pull-out, including a hard disk information query module, configured to remotely monitor and query information of a server hard disk based on a BMC; and the simulation plug-in module is used for carrying out simulation plug-in and/or simulation plug-out of the hard disk by sending a Linux command signal based on the IPMI/BMC.
In some embodiments of the present specification, the hard disk information query module is specifically configured to log in a web interface through the BMC to remotely monitor and query information of a server hard disk.
In some embodiments of the present disclosure, the simulation plug-in module is specifically configured to remotely connect a preset disk number of the IPMI/BMC IP location hard disk through SSH, send a first Linux command signal based on the IPMI/BMC to simulate the plugging-out of the hard disk, and/or send a second Linux command signal based on the IPMI/BMC to simulate the plugging-in of the hard disk.
In some embodiments of the present specification, the simulation plug-in module, after setting the IPMI/BMC IP of the Server, enters the Server Mgmt management interface based on the IPMI/BMC IP; connecting a shell background based on an input user name and password SSH, inquiring information for positioning a hard disk, and then sending an echo's remove-single-device' >/proc/scsi/scsi command signal to simulate the pulling-out of the hard disk and/or sending an echo 'scsi add-single-device' >/proc/scsi/scsi command signal to simulate the insertion of the hard disk.
There is also provided in some embodiments of the present specification an electronic device and a computer-readable storage medium, the electronic device comprising a memory for storing a computer software program; and the processor is used for realizing the steps of the method for remotely simulating and controlling the plugging and unplugging of the hard disk when the computer software program is run. The computer-readable storage medium stores a computer software program which, when executed, implements the steps of a method of remotely emulating controlling hard disk plugging.
In summary, the embodiment of the invention can remotely access the inside of the server system through the IPMI interface, locate and inquire the hard disk information mark, and finally realize the effect of remotely simulating the hard disk plugging and unplugging through the BMC platform management interface, thereby realizing convenient remote testing of the hard disk plugging and unplugging.
While the process flows described above include operations that occur in a particular order, it should be appreciated that the processes may include more or less operations that are performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment). The present invention is described with reference to flowchart illustrations and/or block diagrams of methods according to embodiments of the invention.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method or device comprising the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method embodiment, since it is substantially similar to the apparatus embodiment, the description is simple, and the relevant points can be referred to the partial description of the apparatus embodiment. The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A method for remotely simulating and controlling hard disk plugging and unplugging is characterized by comprising the following steps:
remote monitoring and inquiring information of a server hard disk based on BMC;
and sending a Linux command signal based on the IPMI/BMC to perform simulated pull-out and/or simulated insertion of the hard disk.
2. The method of claim 1, wherein the remote emulation control of hard disk plugging/unplugging is performed,
the step of remotely monitoring and inquiring the information of the server hard disk based on the BMC is specifically,
and logging in a web terminal interface through the BMC to remotely monitor and query the information of the server hard disk.
3. The method of claim 1, wherein the remote emulation control of hard disk plugging/unplugging is performed,
the step of carrying out the simulated extraction and/or simulated insertion of the hard disk by sending a Linux command signal based on the IPMI/BMC is specifically,
the method comprises the steps that a preset IPMI/BMC IP is remotely connected through SSH to position the disk number of the hard disk, a first Linux command signal is sent to simulate the pull-out of the hard disk based on IPMI/BMC, and/or a second Linux command signal is sent to simulate the insertion of the hard disk based on IPMI/BMC.
4. The method of claim 3, wherein the remote emulation control of hard disk plugging and unplugging is performed,
after setting the IPMI/BMC IP of the Server, entering a Server Mgmt management interface based on the IPMI/BMC IP;
connecting a shell background based on an input user name and password SSH, inquiring information for positioning a hard disk, and then sending an echo's remove-single-device' >/proc/scsi/scsi command signal to simulate the pulling-out of the hard disk and/or sending an echo 'scsi add-single-device' >/proc/scsi/scsi command signal to simulate the insertion of the hard disk.
5. The utility model provides a device that remote analog control hard disk was inserted and pulled out which characterized in that includes:
the hard disk information query module is used for remotely monitoring and querying the information of the server hard disk based on the BMC;
and the simulation plug-in module is used for carrying out simulation plug-in and/or simulation plug-out of the hard disk by sending a Linux command signal based on the IPMI/BMC.
6. The apparatus for remotely controlling hard disk plugging and unplugging according to claim 5,
the hard disk information query module is specifically used for logging in a web end interface through the BMC to remotely monitor and query information of a server hard disk.
7. The apparatus for remotely controlling hard disk plugging and unplugging according to claim 5,
the simulation plug-in module is specifically used for remotely connecting a preset disk number of an IPMI/BMC IP positioning hard disk through SSH, sending a first Linux command signal to simulate the plug-out of the hard disk based on the IPMI/BMC, and/or sending a second Linux command signal to simulate the plug-in of the hard disk based on the IPMI/BMC.
8. The apparatus for remotely controlling hard disk plugging and unplugging according to claim 7,
the simulation plug-in module enters a Server Mgmt management interface based on the IPMI/BMC IP after the IPMI/BMC IP of the Server is set; connecting a shell background based on an input user name and password SSH, inquiring information for positioning a hard disk, and then sending an echo's remove-single-device' >/proc/scsi/scsi command signal to simulate the pulling-out of the hard disk and/or sending an echo 'scsi add-single-device' >/proc/scsi/scsi command signal to simulate the insertion of the hard disk.
9. An electronic device, comprising
A memory for storing a computer software program;
a processor for implementing the steps of the method for remotely emulating and controlling the plugging and unplugging of a hard disk according to any of the claims 1 to 4 when running the computer software program.
10. A computer-readable storage medium, characterized in that,
the computer readable storage medium has stored thereon a computer software program which, when executed, carries out the steps of the method of remote emulation control of hard disk plugging according to any of claims 1 to 4.
CN202011566094.0A 2020-12-25 2020-12-25 Method and device for remotely simulating and controlling hard disk plugging and unplugging Pending CN112749047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566094.0A CN112749047A (en) 2020-12-25 2020-12-25 Method and device for remotely simulating and controlling hard disk plugging and unplugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566094.0A CN112749047A (en) 2020-12-25 2020-12-25 Method and device for remotely simulating and controlling hard disk plugging and unplugging

Publications (1)

Publication Number Publication Date
CN112749047A true CN112749047A (en) 2021-05-04

Family

ID=75646019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566094.0A Pending CN112749047A (en) 2020-12-25 2020-12-25 Method and device for remotely simulating and controlling hard disk plugging and unplugging

Country Status (1)

Country Link
CN (1) CN112749047A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070086449A1 (en) * 2005-10-18 2007-04-19 Aten International Co., Ltd System and method for remote management
US20080301216A1 (en) * 2007-05-30 2008-12-04 Samsung Electronics Co., Ltd. Method and apparatus for providing remote device with service of universal plug and play network
US20100332890A1 (en) * 2009-06-30 2010-12-30 International Business Machines Corporation System and method for virtual machine management
CN107436828A (en) * 2017-08-07 2017-12-05 郑州云海信息技术有限公司 A kind of server hard disc automates hot-swappable test device and method
CN109710049A (en) * 2018-12-10 2019-05-03 郑州云海信息技术有限公司 A kind of system and method for long-range control hard disk power-on and power-off
CN109800188A (en) * 2018-12-27 2019-05-24 郑州云海信息技术有限公司 Method for electrically above and below a kind of server hard disk back plane power supply structure and long-range control hard disk

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070086449A1 (en) * 2005-10-18 2007-04-19 Aten International Co., Ltd System and method for remote management
US20080301216A1 (en) * 2007-05-30 2008-12-04 Samsung Electronics Co., Ltd. Method and apparatus for providing remote device with service of universal plug and play network
US20100332890A1 (en) * 2009-06-30 2010-12-30 International Business Machines Corporation System and method for virtual machine management
CN107436828A (en) * 2017-08-07 2017-12-05 郑州云海信息技术有限公司 A kind of server hard disc automates hot-swappable test device and method
CN109710049A (en) * 2018-12-10 2019-05-03 郑州云海信息技术有限公司 A kind of system and method for long-range control hard disk power-on and power-off
CN109800188A (en) * 2018-12-27 2019-05-24 郑州云海信息技术有限公司 Method for electrically above and below a kind of server hard disk back plane power supply structure and long-range control hard disk

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张志等: "一种USB从设备访问主设备的方法", 《计算机工程》, no. 03, 5 February 2008 (2008-02-05), pages 275 - 277 *

Similar Documents

Publication Publication Date Title
US7840728B1 (en) Redirecting input and output for multiple computers
CN111628890A (en) Virtual node creating method and device based on network topological graph
WO2018201615A1 (en) Testing method and system for use with battery management unit
CN108768730A (en) Method and apparatus for operating intelligent network adapter
CN108804313B (en) Method and device for remotely debugging program and server
CN101771565B (en) Analogy method for realizing multitudinous or different baseboard management controllers by single server
US10969844B2 (en) Method and apparatus of controlling network node by providing a virtual power distribution unit
CN107395747B (en) High-expansion method based on STF platform
CN102857361A (en) Light-weight remote computer out-of-band management method
CN113009845A (en) Simulation test system and method for satellite software
CN117251333A (en) Method, device, equipment and storage medium for acquiring hard disk information
CN111355740A (en) Method for rapidly and conveniently detecting firewall configuration
CN108540344B (en) Router upgrading test method and system
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
EP2300932A1 (en) System for injecting protocol specific errors during the certification of components in a storage area network
CN112749047A (en) Method and device for remotely simulating and controlling hard disk plugging and unplugging
CN110134559B (en) BMC fault detection method, system and related components
US8190715B1 (en) System and methods for remote agent installation
CN107943658B (en) Method and system for acquiring SAS card fault log in Linux system
US20060004824A1 (en) Ipmi validating system and method
CN109639784A (en) Server admin information acquisition method, device, client and storage medium
Cisco NetCentral NetView Interface User Guide
Cisco Troubleshooting
RU2671999C1 (en) Method and system for diagnostics of mobile computer devices
CN112965649A (en) Server and IP information near-end visual control system of BMC module thereof

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