CN111737172A - Server serial port access control method, device, equipment and medium - Google Patents

Server serial port access control method, device, equipment and medium Download PDF

Info

Publication number
CN111737172A
CN111737172A CN202010541189.0A CN202010541189A CN111737172A CN 111737172 A CN111737172 A CN 111737172A CN 202010541189 A CN202010541189 A CN 202010541189A CN 111737172 A CN111737172 A CN 111737172A
Authority
CN
China
Prior art keywords
serial port
physical interface
access
bmc
target
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
CN202010541189.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202010541189.0A priority Critical patent/CN111737172A/en
Publication of CN111737172A publication Critical patent/CN111737172A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The application discloses a server serial port access control method, a device, equipment and a medium, comprising the following steps: acquiring a serial port access switching command; binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface; and controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that the corresponding user terminal can acquire the serial port information from the preset communication interface. Like this, carry out binding or unbinding to predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of visiting serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, can visit the server serial ports that correspond through unified serial ports physical interface, avoided the problem of a large amount of use connectors, thereby promoted the convenience of server serial ports visit.

Description

Server serial port access control method, device, equipment and medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling server serial port access.
Background
Server motherboards are important components of servers, and therefore, research on service motherboards has been a hot spot in the industry. And the number of serial ports of the server mainboard is large.
At present, a server mainboard has the problems of dispersed functions of a BMC (base Management Controller), a system Serial port and an SOL (Serial On Lan, Serial port information of a network transmission system), large number of used connectors, incapability of unified Management and insufficient convenience and quickness in Serial port access.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a device and a medium for controlling server serial port access, which can access a corresponding server serial port through a uniform serial port physical interface, thereby avoiding a problem of using a large number of connectors, and improving convenience of server serial port access. The specific scheme is as follows:
in a first aspect, the present application discloses a server serial port access control method, applied to a BMC, including:
acquiring a serial port access switching command;
binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface;
and controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that the corresponding user terminal can acquire the serial port information from the preset communication interface.
Optionally, the obtaining of the serial port access switching command includes:
acquiring a switching command corresponding to the access of a CPU serial port;
correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes:
under the control of a switching command corresponding to an access CPU serial port, a first serial port physical interface in BMC is unbound from a corresponding first serial port controller, a target serial port physical interface is unbound from a corresponding target serial port controller, and the first serial port physical interface is bound with the target serial port physical interface;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Optionally, the obtaining of the serial port access switching command includes:
acquiring a switching command corresponding to the access of a BMC serial port;
correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes:
and unbinding the first serial port physical interface in the BMC and the target serial port physical interface under the control of a switching command corresponding to the access BMC serial port, and binding the target serial port physical interface and the corresponding target serial port controller, so that a processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
Optionally, the method for controlling serial port access of a server further includes:
acquiring an enabling command corresponding to the SOL function of the CPU serial port;
unbinding a first serial port physical interface in the BMC from the target serial port physical interface under the control of the enabling command, and binding the first serial port physical interface with a corresponding first serial port controller, so that a processor of the BMC can acquire CPU serial port information through the first serial port controller and send the CPU serial port information to a corresponding user terminal through an SOL function;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Optionally, the method for controlling serial port access of a server further includes:
carrying out default configuration to unbind a first serial port physical interface in the BMC from a corresponding first serial port controller, unbind the target serial port physical interface from a corresponding target serial port controller, and bind the first serial port physical interface with the target serial port physical interface;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
In a second aspect, the application discloses a server serial access control device, which is applied to BMC, and includes:
the switching command acquisition module is used for acquiring a switching command for accessing the serial port;
the access path building module is used for binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface;
and the serial port information output module is used for controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that a corresponding user terminal can acquire the serial port information from the preset communication interface.
Optionally, the switching command obtaining module is specifically configured to obtain a switching command corresponding to access to the CPU serial port;
correspondingly, the access path building module is specifically used for unbinding the first serial port physical interface in the BMC from the corresponding first serial port controller, unbinding the target serial port physical interface from the corresponding target serial port controller, and binding the first serial port physical interface with the target serial port physical interface under the control of the switching command corresponding to the access CPU serial port;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Optionally, the switching command obtaining module is specifically configured to obtain a switching command corresponding to an access BMC serial port;
correspondingly, the access path building module is specifically configured to unbind the first serial port physical interface in the BMC from the target serial port physical interface and bind the target serial port physical interface with the corresponding target serial port controller under the control of a switching command corresponding to an access BMC serial port, so that the processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
In a third aspect, the application discloses a server serial port access control device, which comprises a processor and a memory; wherein,
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the server serial port access control method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned server serial port access control method.
It is thus clear that this application acquires access serial ports switching command carry out binding or unbinding of predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of access serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, then control serial ports information follows target serial ports physical interface exports to predetermineeing communication interface, so that the user terminal who corresponds follows predetermine communication interface and acquire serial ports information. Like this, carry out binding or unbinding to predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of visiting serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, realized can visiting the server serial ports that correspond through target serial ports physical interface, that is, can visit the server serial ports that correspond through unified serial ports physical interface, avoided the problem of using the connector in a large number, thereby the convenience of server serial ports access has been promoted.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a server serial port access control method disclosed in the present application;
fig. 2 is a schematic diagram illustrating a server serial port access control disclosed in the present application;
fig. 3 is a flowchart of a specific server serial port access control method disclosed in the present application;
fig. 4 is a schematic structural diagram of a server serial port access control device disclosed in the present application;
fig. 5 is a structural diagram of a serial port access control device of a server according to the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
At present, the server mainboard has the problems of dispersed BMC serial port, system serial port and SOL functions, large number of used connectors, incapability of unified management and inconvenience in serial port access. Therefore, the server serial port access control scheme can access the corresponding server serial ports through the unified serial port physical interface, the problem of using a large number of connectors is avoided, and convenience of server serial port access is improved.
Referring to fig. 1, an embodiment of the present application discloses a server serial port access control method, which is applied to a BMC, and includes:
step S11: and acquiring an access serial port switching command.
Step S12: and binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface.
The preset serial port controller is a UART (Universal Asynchronous Receiver/Transmitter).
In a specific implementation manner, the embodiment of the present application may obtain a switching command corresponding to accessing a serial port of a CPU (central processing Unit); correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes: under the control of a switching command corresponding to an access CPU serial port, a first serial port physical interface in BMC is unbound from a corresponding first serial port controller, a target serial port physical interface is unbound from a corresponding target serial port controller, and the first serial port physical interface is bound with the target serial port physical interface; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Therefore, the server CPU can output the serial port information to the first serial port physical interface through the second serial port physical interface and then output the serial port information to the preset communication interface through the target serial port physical interface.
In another specific implementation manner, the embodiment of the application can acquire a switching command corresponding to accessing the BMC serial port; correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes: and unbinding the first serial port physical interface in the BMC and the target serial port physical interface under the control of a switching command corresponding to the access BMC serial port, and binding the target serial port physical interface and the corresponding target serial port controller, so that a processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
Step S13: and controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that the corresponding user terminal can acquire the serial port information from the preset communication interface.
The target serial port physical interface and the corresponding target serial port controller can output serial port information corresponding to a processor of the BMC, and the target serial port physical interface can be connected with the first serial port physical interface. For example, BMC has 5 serial PORTs, which respectively correspond to PORT1, PORT2, PORT3, PORT4, and PORT5, only PORT1 and PORT5 can output serial PORT information corresponding to BMC ARM, PORT1 and PORT3 can establish a connection, but PORT5 and PORT3 cannot establish a connection, so PORT1 may be selected as the target serial PORT physical interface, and PORT3 is the first serial PORT physical interface. Similarly, PORT2 or PORT4 can be selected as the first PORT physical interface. Wherein, PORT refers to the physical interface of serial PORTs, and UART is the controller of serial PORTs.
In a specific implementation manner, this embodiment may control the serial port information to be output from the target serial port physical interface to an earphone hole, so that a corresponding user terminal obtains the serial port information from the earphone hole.
Of course, the predetermined communication interface includes, but is not limited to, an earphone hole.
In addition, in this embodiment, default configuration may be performed to unbind a first serial port physical interface in the BMC from a corresponding first serial port controller, unbind the target serial port physical interface from a corresponding target serial port controller, and bind the first serial port physical interface with the target serial port physical interface; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Namely, through default configuration, the CPU serial port information is output by the preset communication interface.
For example, referring to fig. 2, fig. 2 is a schematic diagram illustrating a server serial port access control disclosed in the embodiment of the present application. The PORT refers to a physical interface of a serial PORT, the UART is a controller of the serial PORT, and the second serial PORT physical interface PORT1 in the server CPU and the first serial PORT physical interface PORT3 in the BMC are connected, so that the server CPU can transmit serial PORT information to the PORT3 through the PORT1, that is, transmit the serial PORT information to a corresponding BMC serial PORT through a corresponding CPU serial PORT. When a server user needs to access a CPU serial PORT, a corresponding access serial PORT switching command is issued to the BMC through the user terminal, the BMC unbinds the first serial PORT physical interface PORT3 and the first serial PORT controller UART3 under the control of the access serial PORT switching command, unbinds the target serial PORT physical interface PORT1 and the target serial PORT controller UART1, binds the first serial PORT physical interface PORT3 and the target serial PORT physical interface PORT1 to form a corresponding passage, and the external server user can finish the access to the CPU serial PORT only by inserting a serial PORT tool into an earphone hole. When a server user wants to access the serial PORT of the BMC, a corresponding access serial PORT switching command is issued to the BMC through the user terminal, the BMC unbunds the first serial PORT physical interface PORT3 and the target serial PORT physical interface PORT1 under the control of the access serial PORT switching command, the target serial PORT physical interface PORT1 is bound with the target serial PORT controller UART1 to form a corresponding passage, so that the ARM processor of the BMC can transmit serial PORT information to the PORT1, and at the moment, the server user can finish access to the BMC serial PORT only by inserting a serial PORT tool into an earphone hole.
It is thus clear that this application embodiment obtains access serial ports switching command carry out binding or unbinding of predetermineeing serial ports physical interface and predetermineeing the serial port controller in the BMC under the control of access serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, then control serial ports information follows target serial ports physical interface exports to predetermineeing communication interface, so that corresponding user terminal follows predetermine communication interface and acquire serial ports information. Like this, carry out binding or unbinding to predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of visiting serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, realized can visiting the server serial ports that correspond through target serial ports physical interface, that is, can visit the server serial ports that correspond through unified serial ports physical interface, avoided the problem of using the connector in a large number, thereby the convenience of server serial ports access has been promoted.
Referring to fig. 3, an embodiment of the present application discloses a specific server serial port access control method, which is applied to BMC, and includes:
step S21: and acquiring an access serial port switching command.
Step S22: and binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface.
Step S23: and controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that the corresponding user terminal can acquire the serial port information from the preset communication interface.
Step S24: and acquiring an enabling command corresponding to the SOL function of the CPU serial port.
Step S25: unbinding a first serial port physical interface in the BMC from the target serial port physical interface under the control of the enabling command, and binding the first serial port physical interface with a corresponding first serial port controller, so that a processor of the BMC can acquire CPU serial port information through the first serial port controller and send the CPU serial port information to a corresponding user terminal through an SOL function; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
That is, the SOL function of the CPU serial PORT may be implemented in the embodiment of the present application, for example, as shown in fig. 2, when a server user wants to use the SOL function of the CPU serial PORT, an enable command corresponding to the SOL function of the CPU serial PORT is issued to the BMC through the user terminal, the BMC unbunds the first serial PORT physical interface PORT3 and the target serial PORT physical interface PORT1 under the control of the enable command, and the first serial PORT physical interface PORT3 and the first serial PORT controller UART3 are bound to form a corresponding path, so that the serial PORT information of the CPU may be transmitted to the processor ARM of the BMC, and the SOL function is further implemented.
In a specific implementation manner, the embodiment of the application can be applied to the processor design of a platform in which the server CPU directly outputs serial port information through its UART, for example, in a platform device of a glair 7000CPU, so as to ensure that a corresponding server user can complete the access function of the BMC serial port, the system serial port, i.e., the CPU serial port, and the SOL of the CPU serial port by using a single communication interface, such as an earphone hole. For example, PORT1 of the CPU of the sea light 7000 is connected to PORT3 of the BMC; attaching a PORT1 of the BMC to the earphone aperture; the earphone hole is placed on a rear IO panel of the server; and switching the serial port data streams under different application scenes through a BMC command. Under default conditions, PORT3 and UART3 in the BMC are unbound, PORT1 and UART1 are unbound, PORT3 and PORT1 are bound, and the earphone hole outputs CPU serial PORT information; when the SOL needs to be realized, PORT3 is unbound with PORT1, PORT3 is bound with UART 3; when the earphone hole is required to output BMC serial PORT information, the PORT3 is unbound with the PORT1, and the PORT1 is bound with the UART 1. That is, be connected to BMC serial port3 with serial ports 1 of glaucomatous 7000CPU, serial ports 1 of BMC is as unified serial ports output window, like this, is in the same place the serial ports of glaucomatous 7000CPU and BMC's serial ports integration, by the inside switching control of BMC, uses single interface as entire system's unified serial ports output window, can effectively solve serial ports dispersion on the glaucomatous 7000CPU platform, the problem of unable unified management.
Referring to fig. 4, an embodiment of the present application discloses a server serial access control device, which is applied to a BMC, and includes:
a switching command obtaining module 11, configured to obtain a serial port access switching command;
the access path building module 12 is configured to perform binding or unbinding of a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command, so as to output corresponding serial port information to a target serial port physical interface;
and the serial port information output module 13 is configured to control the serial port information to be output from the target serial port physical interface to a preset communication interface, so that a corresponding user terminal can obtain the serial port information from the preset communication interface.
It is thus clear that this application acquires access serial ports switching command carry out binding or unbinding of predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of access serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, then control serial ports information follows target serial ports physical interface exports to predetermineeing communication interface, so that the user terminal who corresponds follows predetermine communication interface and acquire serial ports information. Like this, carry out binding or unbinding to predetermineeing serial ports physical interface and predetermineeing serial port controller in the BMC under the control of visiting serial ports switching command to export the serial ports information that corresponds to target serial ports physical interface, realized can visiting the server serial ports that correspond through target serial ports physical interface, that is, can visit the server serial ports that correspond through unified serial ports physical interface, avoided the problem of using the connector in a large number, thereby the convenience of server serial ports access has been promoted.
In a specific implementation manner, the switching command obtaining module 11 is specifically configured to obtain a switching command corresponding to accessing a serial port of a CPU; correspondingly, the access path building module 12 is specifically configured to unbind a first serial port physical interface in the BMC from a corresponding first serial port controller, unbind the target serial port physical interface from a corresponding target serial port controller, and bind the first serial port physical interface with the target serial port physical interface under the control of a switching command corresponding to an access CPU serial port; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
In another specific embodiment, the switching command obtaining module 11 is specifically configured to obtain a switching command corresponding to accessing a serial port of the BMC; correspondingly, the access path building module 12 is specifically configured to unbind the first serial port physical interface in the BMC from the target serial port physical interface and bind the target serial port physical interface with the corresponding target serial port controller under the control of a switching command corresponding to an access BMC serial port, so that the processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
Furthermore, the server serial port access control device also comprises an enabling command acquisition module, which is used for acquiring an enabling command corresponding to the SOL function of the CPU serial port;
the server serial port access control device also comprises an SOL function path building module which is used for unbinding a first serial port physical interface in the BMC from the target serial port physical interface under the control of the enabling command and binding the first serial port physical interface with a corresponding first serial port controller so that a processor of the BMC can obtain CPU serial port information through the first serial port controller and send the CPU serial port information to a corresponding user terminal through the SOL function; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
In addition, the server serial port access control device further comprises a default configuration module for performing default configuration so as to unbind a first serial port physical interface in the BMC from a corresponding first serial port controller, unbind the target serial port physical interface from a corresponding target serial port controller, and bind the first serial port physical interface with the target serial port physical interface; and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
Referring to fig. 5, an embodiment of the present application discloses a server serial port access control device, which includes a processor 21 and a memory 22; wherein, the memory 22 is used for saving computer programs; the processor 21 is configured to execute the computer program to implement the server serial port access control method disclosed in the foregoing embodiment.
For the specific process of the server serial port access control method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here.
Further, an embodiment of the present application further discloses a computer-readable storage medium for storing a computer program, where the computer program is executed by a processor to implement the server serial port access control method disclosed in the foregoing embodiment.
For the specific process of the server serial port access control method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The server serial port access control method, device, equipment and medium provided by the application are introduced in detail, specific examples are applied in the description to explain the principle and the implementation mode of the application, and the description of the embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A serial port access control method of a server is characterized by being applied to BMC and comprising the following steps:
acquiring a serial port access switching command;
binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface;
and controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that the corresponding user terminal can acquire the serial port information from the preset communication interface.
2. The server serial port access control method according to claim 1, wherein the obtaining of the access serial port switching command includes:
acquiring a switching command corresponding to the access of a CPU serial port;
correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes:
under the control of a switching command corresponding to an access CPU serial port, a first serial port physical interface in BMC is unbound from a corresponding first serial port controller, a target serial port physical interface is unbound from a corresponding target serial port controller, and the first serial port physical interface is bound with the target serial port physical interface;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
3. The server serial port access control method according to claim 1, wherein the obtaining of the access serial port switching command includes:
acquiring a switching command corresponding to the access of a BMC serial port;
correspondingly, the binding or unbinding of the preset serial port physical interface and the preset serial port controller in the BMC under the control of the access serial port switching command includes:
and unbinding the first serial port physical interface in the BMC and the target serial port physical interface under the control of a switching command corresponding to the access BMC serial port, and binding the target serial port physical interface and the corresponding target serial port controller, so that a processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
4. The server serial port access control method according to claim 1, further comprising:
acquiring an enabling command corresponding to the SOL function of the CPU serial port;
unbinding a first serial port physical interface in the BMC from the target serial port physical interface under the control of the enabling command, and binding the first serial port physical interface with a corresponding first serial port controller, so that a processor of the BMC can acquire CPU serial port information through the first serial port controller and send the CPU serial port information to a corresponding user terminal through an SOL function;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
5. The server serial port access control method according to any one of claims 1 to 4, further comprising:
carrying out default configuration to unbind a first serial port physical interface in the BMC from a corresponding first serial port controller, unbind the target serial port physical interface from a corresponding target serial port controller, and bind the first serial port physical interface with the target serial port physical interface;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
6. The utility model provides a serial ports access control device of server, its characterized in that is applied to the BMC, includes:
the switching command acquisition module is used for acquiring a switching command for accessing the serial port;
the access path building module is used for binding or unbinding a preset serial port physical interface and a preset serial port controller in the BMC under the control of the access serial port switching command so as to output corresponding serial port information to a target serial port physical interface;
and the serial port information output module is used for controlling the serial port information to be output to a preset communication interface from the target serial port physical interface so that a corresponding user terminal can acquire the serial port information from the preset communication interface.
7. The server serial port access control device according to claim 6,
the switching command acquisition module is specifically used for acquiring a switching command corresponding to the access of the CPU serial port;
correspondingly, the access path building module is specifically used for unbinding the first serial port physical interface in the BMC from the corresponding first serial port controller, unbinding the target serial port physical interface from the corresponding target serial port controller, and binding the first serial port physical interface with the target serial port physical interface under the control of the switching command corresponding to the access CPU serial port;
and the first serial port physical interface is connected with a second serial port physical interface of the server CPU.
8. The server serial port access control device according to claim 6,
the switching command acquisition module is specifically used for acquiring a switching command corresponding to the access BMC serial port;
correspondingly, the access path building module is specifically configured to unbind the first serial port physical interface in the BMC from the target serial port physical interface and bind the target serial port physical interface with the corresponding target serial port controller under the control of a switching command corresponding to an access BMC serial port, so that the processor of the BMC transmits corresponding BMC serial port information to the target serial port physical interface through the target serial port controller.
9. A server serial port access control device is characterized by comprising a processor and a memory; wherein,
the memory is used for storing a computer program;
the processor is used for executing the computer program to realize the server serial port access control method according to any one of claims 1 to 5.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the server serial access control method according to any one of claims 1 to 5.
CN202010541189.0A 2020-06-12 2020-06-12 Server serial port access control method, device, equipment and medium Pending CN111737172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010541189.0A CN111737172A (en) 2020-06-12 2020-06-12 Server serial port access control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010541189.0A CN111737172A (en) 2020-06-12 2020-06-12 Server serial port access control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN111737172A true CN111737172A (en) 2020-10-02

Family

ID=72649120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010541189.0A Pending CN111737172A (en) 2020-06-12 2020-06-12 Server serial port access control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111737172A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610668A (en) * 2022-03-02 2022-06-10 宝德计算机***股份有限公司 Method and device for interaction between intelligent serial port screen and BMC
WO2024007510A1 (en) * 2022-07-08 2024-01-11 苏州元脑智能科技有限公司 Server management method, apparatus and system, and electronic device and readable storage medium

Citations (6)

* 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
CN104102614A (en) * 2014-08-04 2014-10-15 浪潮(北京)电子信息产业有限公司 Server serial port output method and server serial port output device
CN105786742A (en) * 2014-12-24 2016-07-20 中兴通讯股份有限公司 Server serial port switching apparatus and method, and server
CN107480082A (en) * 2017-08-11 2017-12-15 郑州云海信息技术有限公司 A kind of server serial ports output intent and structure
CN109117409A (en) * 2018-07-26 2019-01-01 浪潮(北京)电子信息产业有限公司 The device that a kind of server and its serial ports based on BMC redirect
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports

Patent Citations (6)

* 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
CN104102614A (en) * 2014-08-04 2014-10-15 浪潮(北京)电子信息产业有限公司 Server serial port output method and server serial port output device
CN105786742A (en) * 2014-12-24 2016-07-20 中兴通讯股份有限公司 Server serial port switching apparatus and method, and server
CN107480082A (en) * 2017-08-11 2017-12-15 郑州云海信息技术有限公司 A kind of server serial ports output intent and structure
CN109117409A (en) * 2018-07-26 2019-01-01 浪潮(北京)电子信息产业有限公司 The device that a kind of server and its serial ports based on BMC redirect
CN109902014A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 A kind of server system shares method, apparatus, controlled terminal and the storage medium of serial ports

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610668A (en) * 2022-03-02 2022-06-10 宝德计算机***股份有限公司 Method and device for interaction between intelligent serial port screen and BMC
CN114610668B (en) * 2022-03-02 2024-03-26 宝德计算机***股份有限公司 Method and device for interaction between intelligent serial port screen and BMC
WO2024007510A1 (en) * 2022-07-08 2024-01-11 苏州元脑智能科技有限公司 Server management method, apparatus and system, and electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
KR100929852B1 (en) Apparatus and method for communication between applications on virtual machine using shared memory
EP2409237B1 (en) Accessory identification for mobile computing devices
CN104243210A (en) Method and system for remotely having access to administrative web pages of routers
US20060190238A1 (en) Methods and systems for managing a device
CN101938164B (en) Power equipment control method, device and related system thereof
CN111737172A (en) Server serial port access control method, device, equipment and medium
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
CN100473070C (en) Mapping method for USB apparatus with storage function on network computer
WO2000049787A2 (en) Device and method for communication over a network
CN104883277B (en) A kind of information interacting method and system based on BMC
US20040150625A1 (en) Virtual keyboard and mouse control device
TWI840288B (en) Accessing method, device for device, data exchange method and device, networked device, server and storage medium
CN105808492A (en) Information processing method and serial peripheral interface main controller
CN201345700Y (en) Television with function of program resource sharing
CN105451228A (en) Information processing method and device
CN103632723A (en) Multifunctional serial programmer and burning method thereof
CN113709142B (en) Hot spot distribution network method and device, intelligent terminal and storage medium
CN109542812A (en) Data communication control method, device and terminal device
CN102685924B (en) A kind of communication unit method to set up of terminal, setting device and terminal
CN113347161A (en) One-way transmission device for computer files
CN115348308B (en) Sharing method and device for USB storage device files under multi-session scene
KR100543951B1 (en) Auto USB gender for connecting between PC and peripheral equipment
JP2009187107A (en) Access control system, method thereof and access control program
CN110297668A (en) System, mobile terminal, control and the method for supporting terminal control mainframe memory
CN104869133A (en) Data recording method, system and access server

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