CN108052449A - Operating system condition detection method and device - Google Patents

Operating system condition detection method and device Download PDF

Info

Publication number
CN108052449A
CN108052449A CN201711340553.1A CN201711340553A CN108052449A CN 108052449 A CN108052449 A CN 108052449A CN 201711340553 A CN201711340553 A CN 201711340553A CN 108052449 A CN108052449 A CN 108052449A
Authority
CN
China
Prior art keywords
operating system
controller
management controller
baseboard management
server
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.)
Granted
Application number
CN201711340553.1A
Other languages
Chinese (zh)
Other versions
CN108052449B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711340553.1A priority Critical patent/CN108052449B/en
Publication of CN108052449A publication Critical patent/CN108052449A/en
Application granted granted Critical
Publication of CN108052449B publication Critical patent/CN108052449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the present application discloses operating system condition detection method and device.One specific embodiment of this method includes:The test for being used to indicate and testing the operating status of operating system is received to instruct;Data output request is sent to the operating system;Receive the operation system information of operating system return;The operation system information is parsed, output is used to indicate the status information of the operating status of the operating system.This embodiment improves the flexibilities of the detection to operating system state.

Description

Operating system condition detection method and device
Technical field
The invention relates to field of computer technology, and in particular to detection field more particularly to operating system Condition detection method and device.
Background technology
With the development of computer technology, internet venture company is in explosive growth situation, traditional Large-Scale Interconnected net Company is more to speed up that respective Constructing data center is promoted to be laid out, and explosion type increasing occurs in hardware infrastructure (such as server etc.) It is long, and then carry out huge challenge to the O&M monitoring band of infrastructure.In order to timely and effectively learn the availability information of server, It is generally necessary to the operating status or existing state of the operating system of monitoring server.
At present for operating system operating status detection, have following two modes:A kind of is the operation in server Internal system affixes one's name to heartbeat program, and timing sends heartbeat message, determines the existing state of the machine;The second way is by middle control machine The network diagnostic tool (such as the Internet packets survey meter ping) disposed carrys out the existing state of the operating system of detecting server.
The content of the invention
The embodiment of the present application proposes operating system condition detection method and device.
It is examined in a first aspect, the embodiment of the present application provides a kind of operating system state for baseboard management controller Survey method is stated baseboard management controller and is installed in server, which is equipped with operating system, and this method includes:It receives The test for testing the operating status of the operating system is used to indicate to instruct;Sending data output to the operating system please It asks;Receive the operation system information of operating system return;The operation system information is parsed, output is used to indicate the behaviour Make the status information of the operating status of system.
In some embodiments, which is also equipped with the serial ports controller of the baseboard management controller, serial port of mainboard Controller and basic input output system, the serial port of mainboard controller are the serial line interface by the server to the server The controller that mainboard is controlled, the parameter of the serial port of mainboard controller are configured in the basic input output system.
In some embodiments, which is also equipped with multiplexer, the serial ports control of the baseboard management controller Device is connected with the serial port of mainboard controller by the multiplexer with the serial line interface.
In some embodiments, the channelling mode of the baseboard management controller be point-to-point protocol pattern, the substrate management The connection mode of controller is sharing model.
In some embodiments, the title of the serial ports of the baseboard management controller output data and the basic input and output system The title of the serial ports for output data of uniting is identical, and the electric characteristic of the serial ports of the baseboard management controller output data is basic with this The electrical characteristic of the serial ports of input-output system output data is identical, wherein, which includes at least one of following:Baud Rate, verification mode, check bit.
In some embodiments, which is equipped with South Bridge chip, the baseboard management controller and the South Bridge chip phase Connection.
Second aspect, the embodiment of the present application provide a kind of operating system state for baseboard management controller and examine Device is surveyed, which is installed in server, which is equipped with operating system, which includes:First Receiving unit is configured to receive the test instruction for being used to indicate and testing the operating status of the operating system;It sends single Member is configured to send data output request to the operating system;Second receiving unit is configured to receive the operating system and return The operation system information returned;Output unit is configured to parse the operation system information, and output is used to indicate the operation The status information of the operating status of system.
In some embodiments, which is also equipped with the serial ports controller of the baseboard management controller, serial port of mainboard Controller and basic input output system, the serial port of mainboard controller are the serial line interface by the server to the server The controller that mainboard is controlled, the parameter of the serial port of mainboard controller are configured in the basic input output system.
In some embodiments, which is also equipped with multiplexer, the serial ports control of the baseboard management controller Device is connected with the serial port of mainboard controller by the multiplexer with the serial line interface.
In some embodiments, the channelling mode of the baseboard management controller be point-to-point protocol pattern, the substrate management The connection mode of controller is sharing model.
In some embodiments, the title of the serial ports of the baseboard management controller output data and the basic input and output system The title of the serial ports for output data of uniting is identical, and the electric characteristic of the serial ports of the baseboard management controller output data is basic with this The electrical characteristic of the serial ports of input-output system output data is identical, wherein, which includes at least one of following:Baud Rate, verification mode, check bit.
In some embodiments, which is equipped with South Bridge chip, the baseboard management controller and the South Bridge chip phase Connection.
The third aspect, the embodiment of the present application provide a kind of server, including:Baseboard management controller;Storage device is used In the one or more programs of storage, when the one or more program is performed by the baseboard management controller so that the substrate management Controller is realized such as the method for any embodiment in operating system condition detection method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence is realized when the program is executed by processor such as the method for any embodiment in operating system condition detection method.
Operating system condition detection method and device provided by the embodiments of the present application, are connect by baseboard management controller The test for being used to indicate and testing the operating status of operating system is received to instruct, and after to the operating system send data output Request receives the operation system information of operating system return, finally the operation system information is parsed afterwards, and output is used In the status information for the operating status for indicating the operating system, since baseboard management controller is independent of central processing unit, interior It deposits, the software and hardwares such as basic input output system, operating system, so as to be transferred to the operating status of operating system with outer system System, can provide detection service, improve the flexibility of the detection to operating system state under any circumstance.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the operating system condition detection method of the application;
Fig. 3 is the structure diagram according to one embodiment of the operating system condition checkout gear of the application;
Fig. 4 is adapted for the structure diagram of the computer system of the server for realizing the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention rather than the restriction to the invention.It also should be noted that in order to Convenient for description, illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the case where there is no conflict, the feature in embodiment and embodiment in the application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the operating system condition detection method that can apply the application or the inspection of operating system state Survey the exemplary system architecture 100 of device.
As shown in Figure 1, system architecture 100 can include terminal device 101, network 102 and server 103.Network 102 is used To provide the medium of communication link between terminal device 101 and server 103.Network 102 can include various connection types, Such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101 by network 102 with server 103, to receive or send message etc.. Various telecommunication customer end applications can be installed on terminal device 101, such as the application of monitoring class (such as Linux system can be used in Under command line mode ipmi platform managements instrument ipmitool).
Terminal device 101 can be the various electronic equipments for having display screen and supporting network communication, including but it is unlimited In tablet computer, pocket computer on knee and desktop computer etc..
Server 103 can be to provide the server of various services.Substrate management control can be installed in server 103 Device (Baseboard Management Controller, BMC), and the server can be equipped with operating system (Operating System, OS).In practice, baseboard management controller can in a state that machine is not keyed up, to machine into Row firmware upgrade, check machinery equipment, etc. certain operations.
It should be noted that the operating system condition detection method that the embodiment of the present application is provided is generally by server Baseboard management controller in 103 performs, and correspondingly, operating system condition checkout gear is generally positioned at server 103 In baseboard management controller in.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, show and examined according to the operating system state for baseboard management controller of the application The flow 200 of one embodiment of survey method.Aforesaid substrate Management Controller is installed in server, and above-mentioned server is equipped with Operating system, the operating system condition detection method, comprises the following steps:
Step 201, the test for being used to indicate and testing the operating status of operating system is received to instruct.
In the present embodiment, the electronic equipment of operating system condition detection method operation thereon is (such as shown in Fig. 1 Server 105 in the baseboard management controller installed) monitor client (such as terminal device shown in FIG. 1 can be received 101) it is sending, be used to indicate the test tested to the operating status of aforesaid operations system and instruct.
Monitoring class application, such as the command line mode that can be used under Linux system can be installed in practice, in client Ipmi platform management instruments ipmitool.Above-mentioned test command can be in platform management instrument ipmitool by user It is middle to input loop test order (ipmitool sol looptest) to send.
In some optional realization methods of the present embodiment, above-mentioned server is also equipped with aforesaid substrate management control The serial ports controller of device processed, serial port of mainboard controller and basic input output system (Basic Input Output System, BIOS).Wherein, above-mentioned basic input output system is one group and is cured in computer a ROM (Read Only on mainboard Memory, read-only memory) program on chip, the program of its in store most important basic input and output of computer, start Self-check program and system self-triggered program afterwards, it can start information substantially from computer is preserved, and (such as date, time start setting Deng) chip CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide semiconductor) in The specifying information that read-write system is set.It should be noted that the serial ports controller of aforesaid substrate Management Controller can pass through base Serial Port Information passage control base board Management Controller between board management controller and basic input output system.Above-mentioned mainboard string Mouth controller can be the controller controlled by the serial line interface of above-mentioned server the mainboard of above-mentioned server, above-mentioned The parameter of serial port of mainboard controller can be configured in above-mentioned basic input output system.In practice, serial ports controller is The controller of control function can be realized by serial ports.The instruction of specific protocol form is sent to control by serial ports by host computer Device processed, and then to control peripheral equipment or device.
In some optional realization methods of the present embodiment, above-mentioned server is also equipped with multiplexer (Multiplexer), the serial ports controller of aforesaid substrate Management Controller can pass through above-mentioned with above-mentioned serial port of mainboard controller Multiplexer is connected with above-mentioned serial line interface, to realize the shared multiplexing of serial line interface.In practice, multiplexer is one Kind equipment, can receive multiple input signal, can the single output signal of reset mode synthesis by each input signal.Multiplexer is one Kind integrated system generally comprises the data input of certain amount, and there are one individually outputs.
In some optional realization methods of the present embodiment, the channelling mode (channel of aforesaid substrate Management Controller Mode point-to-point protocol (Point to Point Protocol, PPP) pattern can) be arranged in advance, to be carried for user For remote lan (Local Area Network, LAN) Connection Service.The connection mode of aforesaid substrate Management Controller (access mode) can be arranged to sharing model (share) in advance, which can realize baseboard management controller and base This input-output system completes console and redirects (console redirection) docking, and substrate is directed toward in serial ports acquiescence output Management Controller.Furthermore, it is possible to the parameter of serial port of mainboard controller is configured in basic input output system in advance, example Serial ports output is such as arranged to acquiescence and is directed toward baseboard management controller.
In some optional realization methods of the present embodiment, the name of the serial ports of aforesaid substrate Management Controller output data Claim (such as be COM1 or be COM2) identical with the title of the serial ports of above-mentioned basic input output system output data, and on The electric characteristic for stating the serial ports of baseboard management controller output data can be with above-mentioned basic input output system output data The electrical characteristic of serial ports is identical, wherein, above-mentioned electrical characteristic can include at least one of following:Baud rate, verification mode, verification Position.
In some optional realization methods of the present embodiment, above-mentioned server is also equipped with South Bridge chip (Platform Controller Hub, PCH), aforesaid substrate Management Controller can be connected with above-mentioned South Bridge chip, with Connect the data interchange for realizing baseboard management controller and basic input output system.Herein, can also be wrapped in above-mentioned South Bridge chip Containing independently of central processing unit and the microprocessor ME of operating system (Management Engine), ME can be used for managing PCH Cooperation and communication effect between other firmwares, system to be allowed to reach highest and most harmonious effectiveness, it can realize long-range pipe The function of reason, it can in the case where being manipulated from user remote management computer.
Step 202, data output request is sent to operating system.
In the present embodiment, above-mentioned electronic equipment can be installed after test instruction is received to above-mentioned server Operating system send data output request, the operating system to be asked to return to operation system information.
Step 203, the operation system information that operating system returns is received.
In the present embodiment, above-mentioned electronic equipment can receive the operation system information of operating system return.Wherein, it is above-mentioned Operation system information can include and the relevant various information of operating system, such as the title of operating system, model, current operation State, current process quantity, input/output (Input/Output, I/O) load, utilization rate of central processing unit etc..
In practice, which needs with opening virtual serial port service in advance, and different operating system opens virtual string The method of oral business is also different.It, can be by configuration file by taking RedHat Linux fourth edition operating systems as an example One row information of (inittab files) middle addition (such as add in " S0:12345:respawn:/sbin/agetty/dev/ttyS0 115200vt100 ", wherein, above-mentioned " S0:12345:respawn:/ sbin/agetty/dev " is operating system preset parameter, Above-mentioned " ttyS0 " is used to indicate first mini serial ports, and above-mentioned " 115200 " are baud rate, above-mentioned " vt100 " be used to indicate by According to vt100 formatted analogs export) mode open virtual serial port service.In addition it is also necessary to it is right to open kernel (kernel) in advance The support function of virtual serial port information, and the virtual string that the virtual serial port and baud rate enabled is enabled respectively with operating system Mouth and baud rate are consistent.It, can be by configuration file (grub.conf by taking RedHat Linux fourth edition operating systems as an example File) one row information of middle addition (such as " console=ttyS0,115200console=tty0biosdevname= 0console=ttyS0,115200console=tty0 "), so that screen display starts information, (information of mainboard output, such as takes Be engaged in device hardware check information) and startup of server information (such as startup program selects information, service module load information) etc. can Synchronism output is to virtual serial port (ttyS0).After operating system receives data output request, operating system can be to virtual Serial ports exports operation system information.
Step 204, operation system information is parsed, output is used to indicate the state letter of the operating status of operating system Breath.
In the present embodiment, above-mentioned electronic equipment can parse aforesaid operations system information, and output is used to indicate The status information of the operating status of operating system.Wherein, the operating status of operating system can be survival, seemingly-dead or I/O bears It is loaded with.Herein, above-mentioned electronic equipment can carry out various analyses to operation system information, for example, can carry out data screening, Threshold value comparison etc. determines the operating status of operating system, then, exports to represent the state letter of the operating status of operating system Breath.In practice, status information can be indicated by the form of character string, and the status information for characterizing different operating statuses can be with It is that technical staff is preset.
The method that above-described embodiment of the application provides is used to indicate by baseboard management controller reception to operating system Operating status tested test instruction, and after to the operating system send data output request, receive the operation afterwards The operation system information that system returns, finally parses the operation system information, and output is used to indicate the operating system The status information of operating status, since baseboard management controller is independent of central processing unit, memory, basic input and output system The software and hardwares such as system, operating system, so as to which the operating status of operating system is transferred to band external system, under any circumstance Detection service can be provided, improve the flexibility of the detection to operating system state.
With further reference to Fig. 3, as the realization to method shown in above-mentioned each figure, this application provides a kind of operating system fortune One embodiment of row condition checkout gear, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, and the device is specific It can be applied in baseboard management controller.The baseboard management controller is installed in server, which is equipped with operation System.
As shown in figure 3, the operating system condition checkout gear 500 described in the present embodiment includes:First receiving unit 301, it is configured to receive the test instruction for being used to indicate and testing the operating status of aforesaid operations system;Transmitting element 302, it is configured to send data output request to above-mentioned operating system;Second receiving unit 303 is configured to receive above-mentioned behaviour Make the operation system information of system return;Output unit 304 is configured to parse aforesaid operations system information, output It is used to indicate the status information of the operating status of aforesaid operations system.
In the present embodiment, above-mentioned first receiving unit 301 can receive monitor client (such as terminal shown in FIG. 1 Equipment 101) send, be used to indicate the test tested to the operating status of aforesaid operations system and instruct.
In the present embodiment, above-mentioned transmitting element 302 can be pacified after test instruction is received to above-mentioned server The operating system of dress sends data output request.
In the present embodiment, above-mentioned second receiving unit 303 can receive the operation system information of operating system return.Its In, aforesaid operations system information can include with the relevant various information of operating system, such as the title of operating system, model, Current operating conditions, current process quantity, input/output (Input/Output, I/O) load, utilization rate of central processing unit etc. Deng.
In the present embodiment, above-mentioned output unit 304 can parse aforesaid operations system information, export to refer to Show the status information of the operating status of operating system.Wherein, the operating status of operating system can be survival, seemingly-dead or I/O It loads full etc..Herein, above-mentioned electronic equipment can carry out various analyses to operation system information, for example, data sieve can be carried out Choosing, threshold value comparison etc. determine the operating status of operating system, then, export to represent the shape of the operating status of operating system State information.In practice, status information can be indicated by the form of character string, characterize the status information of different operating statuses Can be that technical staff is preset.
In some optional realization methods of the present embodiment, above-mentioned server is also equipped with aforesaid substrate Management Controller Serial ports controller, serial port of mainboard controller and basic input output system, above-mentioned serial port of mainboard controller is passes through above-mentioned clothes The controller that the serial line interface of business device controls the mainboard of above-mentioned server, the parameter of above-mentioned serial port of mainboard controller is upper It states in basic input output system and is configured.
In some optional realization methods of the present embodiment, above-mentioned server is also equipped with multiplexer, above-mentioned base The serial ports controller of board management controller passes through above-mentioned multiplexer and above-mentioned serial line interface with above-mentioned serial port of mainboard controller It is connected.
In some embodiments, the channelling mode of aforesaid substrate Management Controller be point-to-point protocol pattern, aforesaid substrate The connection mode of Management Controller is sharing model.
In some optional realization methods of the present embodiment, the name of the serial ports of aforesaid substrate Management Controller output data Title is identical with the title of the serial ports of above-mentioned basic input output system output data, and aforesaid substrate Management Controller output data Serial ports electric characteristic it is identical with the electrical characteristic of the serial ports of above-mentioned basic input output system output data, wherein, it is above-mentioned Electrical characteristic includes at least one of following:Baud rate, verification mode, check bit.
In some optional realization methods of the present embodiment, above-mentioned server is equipped with South Bridge chip, aforesaid substrate pipe Reason controller is connected with above-mentioned South Bridge chip.
The device that above-described embodiment of the application provides is used to indicate by the reception of the first receiving unit 301 to operation system The test that the operating status of system is tested instructs, and then transmitting element 302 sends data output request to the operating system, it The second receiving unit 303 receives the operation system information that the operating system returns afterwards, and last output unit 304 is to the operating system Information is parsed, and output is used to indicate the status information of the operating status of the operating system, due to baseboard management controller not Dependent on software and hardwares such as central processing unit, memory, basic input output system, operating systems, so as to by operating system Operating status is transferred to band external system, can provide detection service under any circumstance, improve to operating system state Detection flexibility.
Below with reference to Fig. 4, it illustrates suitable for being used for realizing the computer system 400 of the server of the embodiment of the present application Structure diagram.Server shown in Fig. 4 is only an example, should not be to the function of the embodiment of the present application and use scope band Carry out any restrictions.
As shown in figure 4, computer system 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in Program in memory (ROM) 402 or be loaded into program in random access storage device (RAM) 403 from storage part 408 and Perform various appropriate actions and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data. CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always Line 404.
I/O interfaces 405 are connected to lower component:Importation 406 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 407 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage part 408 including hard disk etc.; And the communications portion 409 of the network interface card including LAN card, modem etc..Communications portion 409 via such as because The network of spy's net performs communication process.Driver 410 is also according to needing to be connected to I/O interfaces 405.Detachable media 411, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 410, as needed in order to read from it Computer program be mounted into as needed storage part 408.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, including being carried on computer-readable medium On computer program, which includes for the program code of the method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 409 and/or from detachable media 411 are mounted.When the computer program is performed by central processing unit (CPU) 401, perform what is limited in the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but It is not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor or arbitrary above combination. The more specific example of computer readable storage medium can include but is not limited to:Electrical connection with one or more conducting wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer readable storage medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media can include the data letter propagated in a base band or as a carrier wave part Number, wherein carrying computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.It is included on computer-readable medium Program code any appropriate medium can be used to transmit, include but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in attached drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.In this regard, each box in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that it is marked at some as in the realization replaced in box The function of note can also be occurred with being different from the order marked in attached drawing.For example, two boxes succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, this is depending on involved function.Also to note Meaning, the combination of each box in block diagram and/or flow chart and the box in block diagram and/or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set in the processor, for example, can be described as:A kind of processor bag Include the first receiving unit, transmitting element, the second receiving unit and output unit.Wherein, the title of these units is in certain situation Under do not form restriction to the unit in itself, for example, the first receiving unit is also described as, " reception is used to indicate to institute State the unit for testing instruction that the operating status of operating system is tested ".
As on the other hand, present invention also provides a kind of computer-readable medium, which can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are performed by the device so that should Device:The test for being used to indicate and testing the operating status of operating system is received to instruct;Data are sent to the operating system Output request;Receive the operation system information of operating system return;The operation system information is parsed, exports to refer to Show the status information of the operating status of the operating system.
The preferred embodiment and the explanation to institute's application technology principle that above description is only the application.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature The other technical solutions for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical solution that the technical characteristic of energy is replaced mutually and formed.

Claims (14)

1. a kind of operating system condition detection method for baseboard management controller, the baseboard management controller installation In server, the server is equipped with operating system, the described method includes:
The test for being used to indicate and testing the operating status of the operating system is received to instruct;
Data output request is sent to the operating system;
Receive the operation system information that the operating system returns;
The operation system information is parsed, output is used to indicate the status information of the operating status of the operating system.
2. operating system condition detection method according to claim 1, wherein, the server is also equipped with described Serial ports controller, serial port of mainboard controller and the basic input output system of baseboard management controller, the serial port of mainboard control Device is the controller controlled by the serial line interface of the server the mainboard of the server, the serial port of mainboard control The parameter of device processed is configured in the basic input output system.
3. operating system condition detection method according to claim 2, wherein, the server is also equipped with multichannel Multiplexer, the serial ports controller of the baseboard management controller and the serial port of mainboard controller by the multiplexer with The serial line interface is connected.
4. operating system condition detection method according to claim 3, wherein, the letter of the baseboard management controller Road pattern is point-to-point protocol pattern, and the connection mode of the baseboard management controller is sharing model.
5. operating system condition detection method according to claim 3, wherein, the baseboard management controller output The title of the serial ports of data is identical with the title of the serial ports of the basic input output system output data, and the substrate management The electrical characteristic of the electric characteristic of the serial ports of controller output data and the serial ports of the basic input output system output data It is identical, wherein, the electrical characteristic includes at least one of following:Baud rate, verification mode, check bit.
6. operating system condition detection method according to claim 1, wherein, the server is equipped with south bridge core Piece, the baseboard management controller are connected with the South Bridge chip.
7. a kind of operating system condition checkout gear for baseboard management controller, the baseboard management controller installation In server, the server is equipped with operating system, and described device includes:
First receiving unit, is configured to receive and is used to indicate the test tested the operating status of the operating system and refers to Order;
Transmitting element is configured to send data output request to the operating system;
Second receiving unit is configured to receive the operation system information that the operating system returns;
Output unit is configured to parse the operation system information, and output is used to indicate the fortune of the operating system The status information of row state.
8. operating system condition checkout gear according to claim 7, wherein, the server is also equipped with described Serial ports controller, serial port of mainboard controller and the basic input output system of baseboard management controller, the serial port of mainboard control Device is the controller controlled by the serial line interface of the server the mainboard of the server, the serial port of mainboard control The parameter of device processed is configured in the basic input output system.
9. operating system condition checkout gear according to claim 8, wherein, the server is also equipped with multichannel Multiplexer, the serial ports controller of the baseboard management controller and the serial port of mainboard controller by the multiplexer with The serial line interface is connected.
10. operating system condition checkout gear according to claim 9, wherein, the baseboard management controller Channelling mode is point-to-point protocol pattern, and the connection mode of the baseboard management controller is sharing model.
11. operating system condition checkout gear according to claim 9, wherein, the baseboard management controller is defeated It is identical with the title of the serial ports of the basic input output system output data to go out the title of the serial ports of data, and the substrate pipe Manage the electrical spy of the electric characteristic of the serial ports of controller output data and the serial ports of the basic input output system output data Property it is identical, wherein, the electrical characteristic includes at least one of following:Baud rate, verification mode, check bit.
12. operating system condition checkout gear according to claim 7, wherein, the server is equipped with south bridge Chip, the baseboard management controller are connected with the South Bridge chip.
13. a kind of server, including:
Baseboard management controller;
Storage device, for storing one or more programs,
When one or more of programs are performed by the baseboard management controller so that the baseboard management controller is realized such as Any method in claim 1-6.
14. a kind of computer readable storage medium, is stored thereon with computer program, wherein, when which is executed by processor Realize the method as described in any in claim 1-6.
CN201711340553.1A 2017-12-14 2017-12-14 Operating system running state detection method and device Active CN108052449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711340553.1A CN108052449B (en) 2017-12-14 2017-12-14 Operating system running state detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711340553.1A CN108052449B (en) 2017-12-14 2017-12-14 Operating system running state detection method and device

Publications (2)

Publication Number Publication Date
CN108052449A true CN108052449A (en) 2018-05-18
CN108052449B CN108052449B (en) 2021-03-09

Family

ID=62133005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711340553.1A Active CN108052449B (en) 2017-12-14 2017-12-14 Operating system running state detection method and device

Country Status (1)

Country Link
CN (1) CN108052449B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768730A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and apparatus for operating intelligent network adapter
CN108984466A (en) * 2018-06-29 2018-12-11 深圳市同泰怡信息技术有限公司 The exchange method of BMC and server OS, system
CN109523019A (en) * 2018-12-29 2019-03-26 百度在线网络技术(北京)有限公司 Accelerator, the acceleration system based on FPGA and control method, CNN network system
CN110957025A (en) * 2019-12-02 2020-04-03 重庆亚德科技股份有限公司 Medical health information safety management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021060A (en) * 2013-02-28 2014-09-03 鸿富锦精密工业(深圳)有限公司 BMC serial port debugging system and method
CN105573955A (en) * 2014-11-03 2016-05-11 广达电脑股份有限公司 Multiple protocol system management method and system, and computer readable media
CN106897191A (en) * 2017-02-25 2017-06-27 郑州云海信息技术有限公司 A kind of method and apparatus being monitored to system
CN107145405A (en) * 2017-05-11 2017-09-08 北京百度网讯科技有限公司 The baseboard management controller of server and its operating method and control circuit
US20180322016A1 (en) * 2017-05-05 2018-11-08 Dell Products L.P. System and method to capture stored data following system crash

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021060A (en) * 2013-02-28 2014-09-03 鸿富锦精密工业(深圳)有限公司 BMC serial port debugging system and method
CN105573955A (en) * 2014-11-03 2016-05-11 广达电脑股份有限公司 Multiple protocol system management method and system, and computer readable media
CN106897191A (en) * 2017-02-25 2017-06-27 郑州云海信息技术有限公司 A kind of method and apparatus being monitored to system
US20180322016A1 (en) * 2017-05-05 2018-11-08 Dell Products L.P. System and method to capture stored data following system crash
CN107145405A (en) * 2017-05-11 2017-09-08 北京百度网讯科技有限公司 The baseboard management controller of server and its operating method and control circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何毅平: ""基于ARM的BMC设计与实现"", 《万方》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768730A (en) * 2018-05-31 2018-11-06 北京百度网讯科技有限公司 Method and apparatus for operating intelligent network adapter
CN108768730B (en) * 2018-05-31 2022-05-31 北京百度网讯科技有限公司 Method and device for operating intelligent network card
US11509505B2 (en) 2018-05-31 2022-11-22 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for operating smart network interface card
CN108984466A (en) * 2018-06-29 2018-12-11 深圳市同泰怡信息技术有限公司 The exchange method of BMC and server OS, system
WO2020001137A1 (en) * 2018-06-29 2020-01-02 深圳市同泰怡信息技术有限公司 Interactive method and system for bmc and server os
CN109523019A (en) * 2018-12-29 2019-03-26 百度在线网络技术(北京)有限公司 Accelerator, the acceleration system based on FPGA and control method, CNN network system
CN110957025A (en) * 2019-12-02 2020-04-03 重庆亚德科技股份有限公司 Medical health information safety management system

Also Published As

Publication number Publication date
CN108052449B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN108052449A (en) Operating system condition detection method and device
CN105378493B (en) The infrastructure based on cloud reconfigured for agreement in the unrelated device test system of supported protocol
CN108958992A (en) test method and device
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
CN108768730B (en) Method and device for operating intelligent network card
CN109308214A (en) Data task processing method and system
CN110096424A (en) Processing method, device, electronic equipment and the storage medium of test
CN107729246A (en) For the auxiliary test methods of intended application, device, equipment and storage medium
CN109684188A (en) Test method and device
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN109975688A (en) General evaluating method and device for heterogeneous chip
CN110059011A (en) Interface test method, device, medium and electronic equipment
CN110324185A (en) Hyper parameter tuning method, apparatus, server, client and medium
CN109783151A (en) The method and apparatus of rule change
CN110007936A (en) Data processing method and device
CN109325744A (en) Payment processing method, device, medium and electronic equipment
CN107347093A (en) Collocation method and device for distributed server system
CN114328223A (en) Information testing method, device, equipment and storage medium
CN108733527A (en) System, method and apparatus for test server function
CN109828830A (en) Method and apparatus for managing container
CN109885327A (en) A kind of method and device upgrading CPLD
CN109818994A (en) Information processing method and device for agent side
CN107977323A (en) A kind of AFDX Bus simulator methods based on Ethernet
US11475191B2 (en) Generating and adding additional control information to logic under test to facilitate debugging and comprehension of a simulation
CN109597673A (en) Create the method and controlling equipment of virtual machine

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