Remote access method and device of server and electronic equipment
Through the combination of IoT modules and hardware interfaces, remote access and debugging of servers when network modules are abnormal, solving the problem that operation and maintenance personnel have difficulty debugging servers, and improving debugging efficiency and convenience.
Patent Information
- Application Number
- CN202411788943.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-02-25
AI Technical Summary
The server cannot be accessed remotely when the network module is abnormal, which makes it difficult for operation and maintenance personnel to debug and troubleshoot problems in a timely manner. Especially in intranet environments or environments with high confidentiality, it is more difficult for personnel to visit and debug the server.
The current external devices use the Internet of Things module to receive server debugging instructions transmitted by the network, and use the Internet of Things to connect to the network to realize remote access to the server. The specific steps include: detecting the server connected to the hardware interface, communicating with the target server through the Internet of Things module, and if the connection is successful, the target server will be controlled to perform debugging operations through the hardware interface.
It realizes that remote access and debugging can still be carried out in abnormal situations of server network modules, avoiding the trouble of operation and maintenance personnel needing to be present, and improving the efficiency of problem investigation and debugging.
Smart Images

Figure CN119520496A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a remote access method, device and electronic equipment for a server. Background Art
[0002] Currently, there are two ways to remotely access the server. One is to access the device management interface through the BMC network to remotely control the device. The other is to directly access the IP (Internet Protocol) address of the OS (operating system) through ssh (Secure Shell) to view information. Both methods rely on the normal network function of the server.
[0003] However, when the server is abnormal and the network cannot be started normally, an external serial port is required for access. In this case, the operation and maintenance personnel must be on site to access the server, which results in delayed troubleshooting and wastes manpower. Moreover, if the server to be debugged is in an intranet environment or an environment with a high confidentiality coefficient, it will be more difficult for personnel to check and debug the server on site. Therefore, how to avoid the problem that the server cannot be accessed remotely when the network module is abnormal, so that the operation and maintenance personnel can debug the server conveniently, is an urgent problem to be solved today. Summary of the invention
[0004] The purpose of the present invention is to provide a remote access method, device and electronic device for a server, so as to avoid the problem that the server cannot be remotely accessed when the network module is abnormal, so that operation and maintenance personnel can debug the server conveniently.
[0005] In order to solve the above technical problems, the present invention provides a remote access method for a server, comprising:
[0006] The current external device uses the Internet of Things module to receive the server debugging instruction transmitted by the network; wherein the user identity card is set in the Internet of Things module;
[0007] Determine a target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server;
[0008] If the current external device is connected to the target server through a hardware interface, the target server is controlled through the hardware interface to execute the debugging operation corresponding to the server debugging instruction.
[0009] On the other hand, before the current external device receives the server debugging instruction transmitted by the network using the Internet of Things module, it also includes:
[0010] After detecting that the hardware interface is connected to the current server, the current external device establishes a communication connection with the current server through the hardware interface; wherein the current server is any server to which the current external device is connected through the hardware interface;
[0011] The Internet of Things module is used to send a text message to a target telephone device; wherein the text message includes at least one of an Internet Protocol address, a remote connection code or a link address of a current external device.
[0012] On the other hand, the current server is connected to the hardware interface of the current external device through a switch.
[0013] On the other hand, after determining the target server corresponding to the server debugging instruction, the method further includes:
[0014] If the current external device is not connected to the target server through the hardware interface, determining the target external device corresponding to the target server; wherein the hardware interface of the target external device is connected to the target server;
[0015] The server debugging instruction is forwarded to the target external device, so as to use the target external device to control the target server to execute the debugging operation corresponding to the server debugging instruction.
[0016] On the other hand, before the current external device receives the server debugging instruction transmitted by the network using the Internet of Things module, it also includes:
[0017] After the current external device establishes a communication connection with the server through the hardware interface, it detects networkable external devices within a preset range; wherein the networkable external devices are other external devices connected to the corresponding server through their respective hardware interfaces;
[0018] If the networkable external device is detected, a local area network is formed with the networkable external device, and a virtual master in the formed local area network is determined; wherein the virtual master is an external device between the current external device and the networkable external device;
[0019] If the current external device is the virtual master device, the server identifier sent by each slave device is obtained, and the corresponding relationship information between the external device and the server is generated according to the device identifier of each external device in the local area network and the server identifier of the server connected to each hardware interface; wherein the slave device is an external device other than the virtual master device in the local area network;
[0020] If the current external device is the slave device, a text message is sent to the target telephone device; wherein the text message includes at least one of the Internet Protocol address, remote connection code or link address of the virtual master device.
[0021] In another aspect, the method further comprises:
[0022] Currently, the external device uses a debugging program to detect the connected server through the hardware interface and obtain the detection result;
[0023] If there is a fault problem in the detection result, the fault problem is displayed on the remote web page interface corresponding to the current external device.
[0024] On the other hand, the current external device uses a debugging program to detect the connected server through a hardware interface, and before obtaining the detection result, it also includes:
[0025] When the current external device reaches a preset detection time at the current time, the debugging program is started;
[0026] And / or the current external device starts the debugging program when receiving a problem alarm sent by a connected server through a hardware interface.
[0027] On the other hand, controlling the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface includes:
[0028] If the server debugging instruction is an automatic problem repair instruction, the target server is controlled to execute a preset repair operation through the hardware interface, and an operation log is recorded.
[0029] The present invention also provides a remote access device for a server, which is applied to current external devices and includes:
[0030] A receiving unit, used to receive a server debugging instruction transmitted through a network by using an Internet of Things module; wherein a user identity card is provided in the Internet of Things module;
[0031] A determination unit, configured to determine a target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server;
[0032] The control unit is used to control the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface if the current external device is connected to the target server through the hardware interface.
[0033] In addition, the present invention also provides an electronic device, comprising:
[0034] Internet of Things module, used to set up user identification cards;
[0035] Memory for storing computer programs;
[0036] A processor is used to implement the steps of the remote access method of the server as described above when executing the computer program.
[0037] The present invention provides a remote access method for a server, comprising: a current external device uses an Internet of Things module to receive a server debugging instruction transmitted over a network; wherein a user identity card is arranged in the Internet of Things module; a target server corresponding to the server debugging instruction is determined; wherein the current external device is communicatively connected with the target server; if the current external device is communicatively connected with the target server via a hardware interface, the target server is controlled via the hardware interface to execute a debugging operation corresponding to the server debugging instruction.
[0038] It can be seen that the present invention uses the current external device to receive the server debugging instructions transmitted by the network through the Internet of Things module, and adopts the method of connecting the network based on the Internet of Things to achieve remote access to the server, thereby avoiding the problem that the server cannot be accessed when the network module is abnormal, so that the operation and maintenance personnel can debug the server conveniently. In addition, the present invention also provides a remote access device and electronic device for a server, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A flowchart of a remote access method for a server provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of a startup process of a remote server debugging of an external device provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of a remote debugging process of multiple servers provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of a startup process of a debugging program built into an external device provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of a remote repair process of a server provided by an embodiment of the present invention;
[0045] Figure 6 A structural block diagram of a remote access device for a server provided in an embodiment of the present invention;
[0046] Figure 7 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Please refer to Figure 1 , Figure 1 A flowchart of a remote access method for a server provided by an embodiment of the present invention. The method may include:
[0049] Step 101: The current external device uses the Internet of Things module to receive the server debugging instruction transmitted through the network; wherein, a user identity card is set in the Internet of Things module.
[0050] It can be understood that the current external device in this embodiment can be an electronic device outside the server that is connected to the server through a hardware interface, and the electronic device is provided with an Internet of Things module, which can be connected to the network (such as a mobile communication network) through the SIM (Subscriber Identity Module) card (i.e., user identification card) in the Internet of Things module. This embodiment is demonstrated by taking the server remote access service of an external device (i.e., the current external device) as an example. For other external devices that are connected to the server through a hardware interface and are provided with an Internet of Things module, the same or similar method as the method provided in this embodiment can be used to implement it, and this embodiment does not impose any restrictions on this.
[0051] Correspondingly, the current external device can be connected to the server through the hardware interface in this embodiment, which can be set by the designer according to the practical scenario and user needs. For example, the current external device can be connected to the server through any one or more of the serial port, network port and USB (Universal Serial Bus) port; wherein the serial port can support serial port protocols such as 232, 422 and 485 protocols, and the USB port can support USB port protocols such as 2.0 and 3.0 protocols. The current external device can also be connected to the server through other hardware interfaces, and this embodiment does not impose any restrictions on this.
[0052] Among them, in this embodiment, the current external device and the server communication connection mode can be divided into three types, the first: the current external device can be connected to a server one-to-one through a hardware interface, providing remote network access and debugging services to the server; the second: the current external device can be connected to a server connected to a network device (such as a switch) through a hardware interface, and provide remote network access and debugging services to the server connected to the network device; the third: each external device in a physical space is connected to the server through its own hardware interface, and the external devices in the physical space can communicate with each other to form a local area network, and a main peripheral device (i.e., a virtual main device) is virtualized from the external devices in the local area network, and the virtual main device is used to provide remote network access and debugging services to the server connected to each external device in the local area network through the hardware interface, so that operation and maintenance personnel can perform remote access through the virtual main device.
[0053] Correspondingly, in this embodiment, the server debugging instruction transmitted over the network can be an instruction for debugging the server triggered by the remote Web (web page) interface corresponding to the current external device; if the current external device is connected to the server only through hardware interface communication (such as using the first or second method mentioned above), the server debugging instruction can be a server debugging instruction triggered by the remote Web interface of the current external device (such as a Web interface using the IP address of the current external device); when the current external device is connected to the server through the hardware interface and the composed local area network communication (such as using the third method mentioned above), the server debugging instruction can be a server debugging instruction triggered by the remote Web interface of the virtual master (such as a Web interface using the IP address of the virtual master); such as an instruction triggered by the remote Web interface of the virtual master directly received when the current external device acts as a virtual master, or an instruction forwarded by the virtual master when the current external device acts as a slave.
[0054] That is to say, in this step, the current external device can use the Internet of Things module to directly receive the server debugging instructions triggered by the remote Web interface of its own IP address, or it can use the Internet of Things module to receive the server debugging instructions forwarded by the virtual host in the local area network.
[0055] Step 102: Determine the target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server.
[0056] It can be understood that the target server in this embodiment can be the server to be controlled by the server debugging instruction in the server to which the current external device is connected in communication; for example, when the current external device is only connected to one server through a hardware interface communication, this server can be the target server; when the current external device is connected to multiple servers in communication, the target server can be one or more of these servers.
[0057] Correspondingly, the specific method for the current external device to determine the target server corresponding to the server debugging instruction in this step can be set by the designer according to practical scenarios and user needs. For example, when the current external device is only connected to one server through a hardware interface communication, the current external device can directly determine the server as the target server; when the current external device is connected to multiple servers, the current external device can determine the target server corresponding to the server debugging instruction based on the server identifier in the server debugging instruction, such as the server's IP address, serial number (SN code) and / or name, etc., which are used to indicate the server identity.
[0058] It should be noted that the method provided in this embodiment may also include a communication connection process between the current external device and the server (such as the target server), such as the current external device establishing a communication connection with the current server through the hardware interface after detecting that the hardware interface is connected to the current server; wherein the current server is any server to which the current external device is connected through the hardware interface; using the Internet of Things module, sending a text message to the target telephone device; wherein the text message includes at least one of the Internet Protocol address, remote connection code or link address of the current external device; the current server can be directly connected to the hardware interface of the current external device, and can also be connected to the hardware interface of the current external device through a switch.
[0059] like Figure 2 As shown, a configuration program (or control program) can be built into the peripheral (i.e., external device) to ensure that all configuration information is completed before the peripheral is used normally, such as the storage of one or more telephone numbers (i.e., the telephone numbers of the target telephone device) and the IP address of the management website (i.e., the remote Web interface); after the server is plugged into the connected peripheral, the configuration program of the peripheral can be started, and the connection will be automatically detected and the communication connection will be established through the hardware interface; after the peripheral detects the connection successfully, a text message will be sent to one or more set mobile phone numbers through the built-in Internet of Things module of the peripheral, such as the IP address, remote connection code and a remote connection link, so that the operation and maintenance personnel can remotely access the peripheral through the IP address, remote connection code or link address in the text message to debug the server.
[0060] Correspondingly, when the third method described above is adopted to network external devices, the method provided in this embodiment may further include: after the current external device establishes a communication connection with the server through the hardware interface, detecting networkable external devices within a preset range; wherein the networkable external devices are other external devices connected to the corresponding server through their respective hardware interfaces; if the networkable external device is detected, a local area network is formed with the networkable external device, and a virtual master in the local area network is determined; wherein the virtual master is one of the current external device and the networkable external device; if the current external device is the virtual master, the server identifier sent by each slave device is obtained, and the corresponding relationship information between the peripheral device and the server is generated according to the device identifier of each external device in the local area network and the server identifier of the server connected to each hardware interface; wherein the slave device is an external device other than the virtual master in the local area network; if the current external device is a slave device, a text message is sent to the target telephone device; wherein the text message includes at least one of the Internet Protocol address, remote connection code or link address of the virtual master.
[0061] like Figure 3 As shown, the configuration program in the external device (peripheral 1, 2 or n) realizes the function of self-organizing network through the support of the Internet of Things module and the operator; the servers within a certain distance in a physical space are connected to the peripherals, and these peripherals can be networked by themselves. After the local area network of all peripherals connected to the server is networked, remote network access and debugging services for all servers in the local area network are realized; each peripheral can be set with an identification (i.e., device identification, such as coding ID) by the configuration program, and the identification of each server connected through the hardware interface (i.e., server identification, such as IP address and SN code, etc.) can be confirmed through this device identification, which can effectively guide the operation and maintenance personnel to confirm the corresponding peripherals and servers.
[0062] Step 103: If the current external device is connected to the target server through a hardware interface, the target server is controlled through the hardware interface to execute a debugging operation corresponding to the server debugging instruction.
[0063] It is understandable that in this embodiment, when the current external device is connected to the target server through a hardware interface, the target server can be directly controlled through the hardware interface to execute debugging operations corresponding to the server debugging instructions, such as hardware restart and server restart debugging operations.
[0064] Correspondingly, for the situation where the current external device is not connected to the target server through the hardware interface, the designer can set it up by himself, such as the current external device can directly forward the server debugging instruction to the external device (i.e., the target external device) that is connected to the target server through the hardware interface; for example, when the current external device is not connected to the target server through the hardware interface (such as the current external device as a virtual host), the current external device can determine the target external device corresponding to the target server; forward the server debugging instruction to the target external device, so as to use the target external device to control the target server to perform the debugging operation corresponding to the server debugging instruction; wherein the hardware interface of the target external device is connected to the target server. The current external device can also adjust the server debugging instruction before sending it to the target external device. This embodiment does not impose any restrictions on this.
[0065] Furthermore, the method provided in this embodiment may also include a detection and alarm process of the external device for the communication connection server. For example, the current external device can use a debugging program to detect the connected server through a hardware interface to obtain the detection result; if there is a fault problem in the detection result, the fault problem is displayed on the remote web page interface corresponding to the current external device.
[0066] That is to say, after the peripheral (i.e., external device) establishes a communication connection with the server through the hardware interface, it can activate the debugging program stored in the peripheral. The debugging program can be a program customized and developed based on the server, using a private protocol or a standard protocol that can be connected to the BMC or OS (operating system) of the server; the private protocol can ensure security and confidentiality, and further protect the server; the standard protocol can be open to the public and provide a secondary development interface to facilitate self-development. The debugging program can have administrator operation permissions to ensure that the server can be repaired in a timely and effective manner, but there are also situations where human operation errors exist at the same time. To further avoid human errors, after the debugging program is automatically activated, it can automatically back up the current configuration and database information of the server. If an operation error occurs, the configuration and database can be restored in time through fixed instructions. Accordingly, the above-mentioned current external device can use the debugging program to detect the connected server through the hardware interface, and the configuration information and database of the connected server can be backed up in the process of obtaining the detection results.
[0067] Correspondingly, in this embodiment, the current external device can use the debugging program to detect the connected server through the hardware interface, and the specific time of obtaining the detection result, that is, the condition for triggering the debugging program, can be set by the designer according to the practical scenario and user needs, such as Figure 4As shown, it can be triggered according to time, such as performing routine maintenance and detection on the server in a fixed period; it can also be triggered when there is a problem with the server or each time the server is successfully connected. For example, the above-mentioned current external device uses a debugging program to detect the connected server through a hardware interface, and before obtaining the detection result, it can also include: when the current external device reaches a preset detection time, the debugging program is started; and / or when the current external device receives a problem alarm sent by the connected server through the hardware interface, the debugging program is started.
[0068] It is understandable that if Figure 5 As shown, after the debugging program is started, a comprehensive detection can be performed on the connected server, and a pop-up window will pop up to prompt automatic repair or manual repair for the detected problems. If the user chooses automatic repair, the repair operation for common server problems can be loaded, such as restarting some hardware (such as the network card); in order to ensure the security of the server, once the server needs to be restarted, a pop-up window will be prompted, and it can be restarted only after manual confirmation, and there will be no automatic restart of the server; if the user chooses manual operation, the required instructions can be triggered on the remote Web interface for the problem, so as to troubleshoot the cause of each problem, and solve the problem through instructions and refreshing FW (firmware) programs and other operations; all operations of the configuration program can be recorded in detail in the form of logs to ensure that the problem can be traced. For example, in the process of controlling the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface, if the server debugging instruction is a problem automatic repair instruction, the current external device can control the target server to execute the preset repair operation through the hardware interface and record the operation log.
[0069] Furthermore, during the process of remote access and operation and maintenance of the server by the user through the external device, if there is a force majeure factor that causes the server to restart and disconnect from the network, such as a power outage; the configuration program of the external device can send a text message to the mobile phone (i.e., the target phone device) of the emergency contact configured by the configuration program such as the operation and maintenance personnel and laboratory management personnel as soon as possible after the next power-on, to ensure that the server maintenance work can be carried out as soon as possible. At the same time, after the debugging program is loaded and successfully started for the first time after the connection is restored, it can be confirmed whether the current server status is consistent with the status of the last detection. If it is consistent, the debugging program can be directly started to continue the debugging work. If there is a discrepancy, the detection can be carried out and the detection report can be output to guide the operation and maintenance personnel to carry out the maintenance work; if there is a program abnormality or hardware abnormality on the server, a high-priority problem prompt will be issued, such as replacing the hard disk, urgently upgrading the FW program, and restoring the data information of the last backup. In other words, after the current external device is powered off and restored, it can send a power-off alarm message to the target phone device and activate the debugging program.
[0070] Correspondingly, after the external device uses the debugging program to complete all detections on the server and confirms that the server is running normally, it can exit the debugging program through a fixed instruction (such as the finish -all command). At this time, the configuration program detects that the debugging program has exited, and can automatically summarize all operation logs of the debugging program and various types of server information, and upload the information to the designated cloud server through the Internet of Things module.
[0071] In this embodiment, the embodiment of the present invention uses the Internet of Things module to receive server debugging instructions transmitted over the network through the current external device, and adopts a method based on the Internet of Things to connect to the network to achieve remote access to the server, thereby avoiding the problem that the server cannot be accessed when the network module is abnormal, allowing operation and maintenance personnel to debug the server conveniently.
[0072] Corresponding to the above method embodiment, the embodiment of the present invention further provides a remote access device for a server. The remote access device for a server described below and the remote access method for a server described above can refer to each other.
[0073] Please refer to Figure 6 , Figure 6 This is a structural block diagram of a remote access device for a server provided in an embodiment of the present invention. The device is applied to a current external device and may include:
[0074] The receiving unit 10 is used to receive the server debugging instruction transmitted by the network by using the Internet of Things module; wherein the user identity card is set in the Internet of Things module;
[0075] A determination unit 20 is used to determine a target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server;
[0076] The control unit 30 is used to control the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface if the current external device is connected to the target server through the hardware interface.
[0077] In some embodiments, the apparatus may further include:
[0078] A communication establishing unit, used for establishing a communication connection between the current external device and the current server through the hardware interface after the current external device detects that the hardware interface is connected to the current server; wherein the current server is any server to which the current external device is connected through the hardware interface;
[0079] The short message sending unit is used to send a short message to a target telephone device using the Internet of Things module; wherein the short message includes at least one of an Internet Protocol address, a remote connection code or a link address of the current external device.
[0080] In some embodiments, the current server is connected to a hardware interface of the current external device through a switch.
[0081] In some embodiments, the apparatus may further include:
[0082] The peripheral device determining unit is used to determine the target external device corresponding to the target server if the current external device is not connected to the target server through the hardware interface; wherein the hardware interface of the target external device is connected to the target server;
[0083] The forwarding unit is used to forward the server debugging instruction to the target external device, so as to use the target external device to control the target server to execute the debugging operation corresponding to the server debugging instruction.
[0084] In some embodiments, the apparatus may further include:
[0085] The peripheral device inspection unit is used to detect networkable external devices of a preset range of content after establishing a communication connection with the server through the hardware interface; wherein the networkable external devices are other external devices connected to the corresponding server through their respective hardware interfaces;
[0086] A networking unit, configured to form a local area network with the networkable external device if a networkable external device is detected, and determine a virtual master device in the local area network; wherein the virtual master device is an external device among the current external device and the networkable external device;
[0087] A master device generating unit, for obtaining the server identification sent by each slave device if the current external device is a virtual master device, and generating the corresponding relationship information between the peripheral device and the server according to the device identification of each external device constituting the local area network and the server identification of the server connected to each hardware interface; wherein the slave device is an external device other than the virtual master device in the local area network;
[0088] The slave device adjustment unit is used to send a short message to the target telephone device if the current external device is a slave device; wherein the short message includes at least one of the Internet interconnection protocol address, remote connection code or link address of the virtual master device.
[0089] In some embodiments, the apparatus may further include:
[0090] A detection unit, used to detect the connected server through the hardware interface using a debugging program and obtain the detection result;
[0091] The problem alarm unit is used to display the fault problem on the remote web page interface corresponding to the current external device if there is a fault problem in the detection result.
[0092] In some embodiments, the apparatus may further include:
[0093] The on-time start unit is used to start the debugging program when the current time reaches the preset detection time;
[0094] And / or an alarm starting unit, used to start the debugging program when a problem alarm sent by a connected server is received through the hardware interface.
[0095] In some embodiments, the control unit 30 may be specifically configured to control the target server to execute a preset repair operation through a hardware interface and record an operation log if the server debugging instruction is an automatic problem repair instruction.
[0096] In this embodiment, the embodiment of the present invention uses the Internet of Things module to receive server debugging instructions transmitted over the network through the receiving unit 10, and adopts a method based on the Internet of Things to connect to the network to achieve remote access to the server, thereby avoiding the problem that the server cannot be accessed when the network module is abnormal, and enabling operation and maintenance personnel to debug the server conveniently.
[0097] Corresponding to the above method embodiment, an embodiment of the present invention further provides an electronic device. The electronic device described below and the remote access method of a server described above can refer to each other.
[0098] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The configuration checking device may include:
[0099] A memory D1, for storing computer programs;
[0100] The processor D2 is used to implement the steps of the remote access method for the server provided in the above method embodiment when executing the computer program.
[0101] Corresponding to the above method embodiment, the embodiment of the present invention further provides a remote access system for a server. The remote access system for a server described below and the remote access method for a server described above can be referred to each other.
[0102] A remote access system for a server includes: the electronic device provided by the above embodiment and a server connected to a hardware interface of the electronic device.
[0103] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer program product. The computer program product described below and the remote access method of a server described above can be referred to each other.
[0104] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the remote access method for a server provided in the above method embodiment.
[0105] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the remote access method of a server described above can be referred to each other.
[0106] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the remote access method for a server of the above method embodiment.
[0107] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
[0108] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device, electronic device, system, computer program product and computer-readable storage medium disclosed in the embodiment, since they correspond to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0109] The above is a detailed introduction to a remote access method, device and electronic device for a server provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A remote access method for a server, characterized in that: include: The current external device uses the Internet of Things module to receive the server debugging instruction transmitted by the network; wherein the user identity card is set in the Internet of Things module; Determine a target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server; If the current external device is connected to the target server through a hardware interface, the target server is controlled through the hardware interface to execute a debugging operation corresponding to the server debugging instruction.
2. The remote access method for a server according to claim 1, characterized in that: Before the current external device receives the server debugging instruction transmitted through the network by using the Internet of Things module, it also includes: After detecting that the hardware interface is connected to the current server, the current external device establishes a communication connection with the current server through the hardware interface; wherein the current server is any server to which the current external device is connected through the hardware interface; The Internet of Things module is used to send a text message to a target telephone device; wherein the text message includes at least one of an Internet Protocol address, a remote connection code or a link address of a current external device.
3. The remote access method for a server according to claim 2, characterized in that: The current server is connected to the hardware interface of the current external device through the switch.
4. The remote access method for a server according to claim 1, characterized in that: After determining the target server corresponding to the server debugging instruction, the method further includes: If the current external device is not connected to the target server through the hardware interface, determining the target external device corresponding to the target server; wherein the hardware interface of the target external device is connected to the target server; The server debugging instruction is forwarded to the target external device, so as to use the target external device to control the target server to execute the debugging operation corresponding to the server debugging instruction.
5. The remote access method of a server according to claim 4, characterized in that: Before the current external device receives the server debugging instruction transmitted through the network by using the Internet of Things module, it also includes: After the current external device establishes a communication connection with the server through the hardware interface, it detects networkable external devices within a preset range; wherein the networkable external devices are other external devices connected to the corresponding server through their respective hardware interfaces; If the networkable external device is detected, a local area network is formed with the networkable external device, and a virtual master in the formed local area network is determined; wherein the virtual master is an external device between the current external device and the networkable external device; If the current external device is the virtual master device, the server identifier sent by each slave device is obtained, and the corresponding relationship information between the external device and the server is generated according to the device identifier of each external device in the local area network and the server identifier of the server connected to each hardware interface; wherein the slave device is an external device other than the virtual master device in the local area network; If the current external device is the slave device, a text message is sent to the target telephone device; wherein the text message includes at least one of the Internet Protocol address, remote connection code or link address of the virtual master device.
6. The remote access method for a server according to any one of claims 1 to 5, characterized in that: Also includes: Currently, the external device uses a debugging program to detect the connected server through the hardware interface and obtain the detection result; If there is a fault problem in the detection result, the fault problem is displayed on the remote web page interface corresponding to the current external device.
7. The remote access method of a server according to claim 6, characterized in that: The current external device uses a debugging program to detect the connected server through a hardware interface, and before obtaining the detection result, it also includes: When the current external device reaches a preset detection time at the current time, the debugging program is started; And / or the current external device starts the debugging program when receiving a problem alarm sent by a connected server through a hardware interface.
8. The remote access method of a server according to claim 6, characterized in that: The step of controlling the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface includes: If the server debugging instruction is an automatic problem repair instruction, the target server is controlled to execute a preset repair operation through the hardware interface, and an operation log is recorded.
9. A remote access device for a server, characterized in that: Applicable to current external devices, including: A receiving unit, used to receive a server debugging instruction transmitted through a network by using an Internet of Things module; wherein a user identity card is provided in the Internet of Things module; A determination unit, configured to determine a target server corresponding to the server debugging instruction; wherein the current external device is in communication connection with the target server; The control unit is used to control the target server to execute the debugging operation corresponding to the server debugging instruction through the hardware interface if the current external device is connected to the target server through the hardware interface.
10. An electronic device, characterized in that: include: Internet of Things module, used to set up user identification cards; Memory for storing computer programs; A processor, configured to implement the steps of the remote access method for a server as claimed in any one of claims 1 to 8 when executing the computer program.