CN111880454A - Control method and device for remote startup and shutdown of cluster management equipment - Google Patents
Control method and device for remote startup and shutdown of cluster management equipment Download PDFInfo
- Publication number
- CN111880454A CN111880454A CN202010767599.7A CN202010767599A CN111880454A CN 111880454 A CN111880454 A CN 111880454A CN 202010767599 A CN202010767599 A CN 202010767599A CN 111880454 A CN111880454 A CN 111880454A
- Authority
- CN
- China
- Prior art keywords
- shutdown
- command
- starting
- connection
- generating
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000004044 response Effects 0.000 claims abstract description 45
- 230000008569 process Effects 0.000 claims abstract description 16
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000004590 computer program Methods 0.000 claims description 20
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 7
- 230000009471 action Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/23—Pc programming
- G05B2219/23051—Remote control, enter program remote, detachable programmer
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Power Sources (AREA)
Abstract
The invention provides a method and a device for controlling remote startup and shutdown of cluster management equipment, which are used for interaction between the equipment and a server and comprise the following steps: shut down control flow, start control flow and connection flow, shut down the control flow and include: generating a shutdown instruction according to the shutdown command; sending a shutdown instruction; performing shutdown operation according to the shutdown instruction; the boot control flow includes: generating a network awakening data packet according to the starting command; starting up the computer according to the network awakening data packet; the connection process comprises the following steps: sending a request broadcast packet; generating a response broadcast packet according to the request broadcast packet; analyzing the response broadcast packet to obtain a connection IP and a connection port; according to the connection IP and the connection port. The invention has the beneficial effects that: the method has the advantages that the method is low in cost, convenient to implement and capable of operating and managing the remote equipment in batches, large-scale cluster equipment can be conveniently turned on and turned off in batches through the method, manual intervention is not needed, labor cost is greatly saved, and management efficiency is improved.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for controlling remote startup and shutdown of cluster management equipment.
Background
The control device is a common function in the industrial control industry, but the control device is generally used for switching on and off a single device and communicating in a non-network mode.
The shortcomings or shortcomings of the existing solutions:
1. the time period of startup and shutdown cannot be configured, and only equipment can be restarted;
2. large-scale cluster management cannot be realized, batch operation cannot be realized, and the conventional scheme consumes time and labor;
3. real remote management cannot be realized;
4. the hardware system formed by the built-in controller and the relay and the restarting module running on the controller are needed, and the cost is high.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: aiming at the defects of the prior art, a method and a device for controlling the remote startup and shutdown of cluster management equipment are provided.
In order to solve the technical problems, the invention adopts the technical scheme that: a control method for remote startup and shutdown of cluster management equipment is used for interaction between the equipment and a server and comprises the following steps: a shutdown control flow, a startup control flow and a connection flow,
the shutdown control flow includes the steps of:
obtaining a shutdown command, and generating a shutdown command according to the shutdown command;
sending a shutdown instruction;
performing shutdown operation according to the shutdown instruction;
the boot control flow includes the steps of:
acquiring a starting command, and generating a starting command according to the starting command;
generating a network awakening data packet according to the starting instruction, and broadcasting through a network;
starting up the computer according to the network awakening data packet;
the connection process comprises the following steps:
sending a request broadcast packet;
generating a response broadcast packet according to the request broadcast packet;
analyzing the response broadcast packet to obtain a connection IP and a connection port;
and connecting according to the connection IP and the connection port.
Further, the method also comprises a working period acquiring process, wherein the working period acquiring process comprises the following steps:
acquiring working period information;
generating a timing shutdown command and a timing startup command according to the working period information;
sending a shutdown command at preset shutdown time according to the timing shutdown command;
and sending the starting command at the preset starting time according to the timing starting command.
Further, in the shutdown control flow step, the method further includes the steps of: and after receiving a shutdown instruction, counting down according to preset time, and executing shutdown operation after the counting down is finished.
Further, the step of the connection process further includes determining whether the response broadcast packet is valid.
The invention also relates to a control device for remotely switching on and off the cluster management equipment, which comprises a switching-off control module, a switching-on control module and a connecting module,
the shutdown control module includes:
the shutdown command generating unit is used for acquiring a shutdown command and generating a shutdown command according to the shutdown command;
a shutdown instruction sending unit, configured to send a shutdown instruction;
the shutdown instruction execution unit is used for performing shutdown operation according to the shutdown instruction;
the boot control module includes:
the starting command generating unit is used for acquiring a starting command and generating a starting command according to the starting command;
the starting-up instruction generating unit is used for generating a network awakening data packet according to the starting-up instruction;
the starting instruction execution unit is used for carrying out starting operation according to the network awakening data packet;
the connection module includes:
a request unit for transmitting a request broadcast packet;
a response unit for generating a response broadcast packet according to the request broadcast packet;
the analysis unit is used for analyzing the response broadcast packet to obtain a connection IP and a connection port;
and the connection execution unit is used for performing connection according to the connection IP and the connection port.
Further, the system further comprises an acquisition working period module, wherein the acquisition working period module is used for:
acquiring working period information;
generating a timing shutdown command and a timing startup command according to the working period information;
sending a shutdown command at preset shutdown time according to the timing shutdown command;
and sending the starting command at the preset starting time according to the timing starting command.
Further, the shutdown control module further comprises a timing unit, wherein the timing unit is used for counting down according to preset time after receiving the shutdown instruction, and executing shutdown operation after the counting down is completed.
Further, the connection module further includes a determination unit, where the determination unit is configured to determine whether the response broadcast packet is valid.
The invention also relates to a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that: the processor, when executing the computer program, performs the steps of any of the methods described above.
The invention also relates to a computer-readable storage medium, on which a computer program is stored, characterized in that: the computer program, when executed by a processor, implements the steps of any of the methods described above.
The invention has the beneficial effects that: the method has the advantages that the method is low in cost, convenient to implement and capable of operating and managing the remote equipment in batches, large-scale cluster equipment can be conveniently turned on and turned off in batches through the method, manual intervention is not needed, labor cost is greatly saved, and management efficiency is improved.
Drawings
The specific process and structure of the present invention are detailed below with reference to the accompanying drawings:
FIG. 1 is a schematic connection flow diagram of the present invention;
FIG. 2 is an architecture diagram of a system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the description of the invention relating to "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying any relative importance or implicit indication of the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Example 1
Referring to fig. 1 and fig. 2, a method for controlling remote power on/off of cluster management equipment, which is used for interaction between the equipment and a server, includes: a shutdown control flow, a startup control flow and a connection flow,
the shutdown control flow includes the steps of:
the server acquires a shutdown command and generates a shutdown instruction according to the shutdown command;
the server sends a shutdown instruction to the equipment;
the client of the equipment carries out shutdown operation according to the shutdown instruction;
the boot control flow includes the steps of:
the server acquires a starting command and generates a starting instruction according to the starting command;
the server generates a network awakening data packet according to the starting instruction and broadcasts the network awakening data packet through the network;
the equipment performs starting operation according to the network awakening data packet;
the connection process comprises the following steps:
the equipment sends a request broadcast packet through a network;
the server generates a response broadcast packet according to the request broadcast packet and transmits the response broadcast packet through a network;
the equipment analyzes the response broadcast packet to obtain a connection IP and a connection port of the server;
and the equipment is connected with the server according to the connection IP and the connection port of the server.
In this embodiment, in the shutdown control flow, in order to effectively manage the device, the device needs to run client software, the client is connected to the server through the TCP, when the server obtains a shutdown command, the server triggers generation of a shutdown instruction, the shutdown instruction is sent to the client of the corresponding device through the network, and after the client of the device receives the shutdown command, the shell command "shutdown-s-t 60" of the system is called, that is, the shutdown action is realized through the operating system.
In the boot control flow, when the device needs to be booted, the device cannot run the client because the device is in the shutdown state, and has no connection with the outside, and the device also has no built-in boot module. At this time, a Wake-on-LAN (WOL) technique is required.
Specifically, a broadcast packet is used, which contains the MAC address of the destination computer, and because of the uniqueness of the MAC address, the broadcast packet can be uniquely identified in the network. When other computers receive the broadcast data packet, the broadcast data packet is discarded because the broadcast data packet is not matched with the MAC address of the local computer, and when the broadcast data packet is found to be matched with the local computer, the startup operation is carried out according to the broadcast data packet.
Specifically, the WOL network wake-up technology is a Magic Packet wake-up mode.
A Magic Packet is a broadcast frame containing the MAC address of the destination computer, and because of the uniqueness of the MAC address, the Packet can be uniquely identified in the network, and Magic Packet transmission typically uses a connectionless transport protocol (UDP). The Magic Packet is most simply constructed as a 16-ary FF of 6 bytes, followed by 16 repetitions of the 48-bit MAC address of the destination device, for a total of 102 bytes of the Packet.
Referring to fig. 1, in the connection process, since each device needs to run client software, an IP address and a port of a server need to be configured manually, and in order to save manpower and material resources, the device and the server are configured in a UDP broadcast manner.
In a network, a device sends a broadcast packet, and all devices in the entire network receive the broadcast packet. The method comprises the steps that a request side device does not know the address of a server at the beginning, a request broadcast packet can be sent first, the request broadcast packet comprises the MAC address of the device and is used for identifying the identity of the request side device, other devices discard the request broadcast packet after receiving the request broadcast packet, the server does not know the IP address of the request side device, a response broadcast packet is sent, the response broadcast packet comprises the IP address and port of the server and the MAC address of the request side device, and after acquiring the response broadcast packet, the request side device analyzes the response broadcast packet, so that the connection IP and connection port of the server are acquired, and then the request side device is connected with the server through TCP.
From the above description, the beneficial effects of the present invention are: the method has the advantages that the method is low in cost, convenient to implement and capable of operating and managing the remote equipment in batches, large-scale cluster equipment can be conveniently turned on and turned off in batches through the method, manual intervention is not needed, labor cost is greatly saved, and management efficiency is improved.
Example 2
On the basis of the embodiment 1, the method further comprises an acquisition working period flow, wherein the acquisition working period flow comprises the following steps:
the server acquires working period information of each device;
the server generates a shutdown command of the corresponding equipment to the specified equipment according to the working period information;
and the server generates a network awakening data packet at preset startup time according to the timing startup command and broadcasts the network awakening data packet through the network.
In this embodiment, in order to perform the on-off processing on the devices in batches, the management terminal may be connected to the server, the on-off time of the devices may be set in batches by the management terminal, the server may continuously poll the on-off time of each device, and when the preset on-off time or the preset off time is reached, the server may send the off command to the designated device at the preset off time according to the timing off command or generate the network wakeup data packet at the preset on time according to the timing on command, and wake up the designated device through network broadcasting.
Example 3
On the basis of embodiment 2, in the shutdown control flow step, the method further includes the steps of: and after receiving a shutdown instruction, counting down according to preset time, and executing shutdown operation after the counting down is finished.
In this embodiment, in order to prevent the device from being stopped in an emergency, after receiving a shutdown instruction, the device invokes a shell command "shutdown-s-t 60" of the system to perform shutdown, where "60" is counted down for 60 seconds, during which time, if the user needs to cancel shutdown, the server sends a shutdown cancellation instruction to the client of the device, and the client immediately invokes the shell instruction "shutdown-a" to cancel shutdown, thereby terminating shutdown.
Example 4
In embodiment 3, the step of the connection process further includes determining whether the response broadcast packet is valid.
In this embodiment, the response broadcast packet includes the MAC address of the requesting device, and after receiving the response broadcast packet, the device in the network determines whether the MAC address in the response broadcast packet matches the local device, and if not, discards the response broadcast packet; and if the response broadcast packet is matched with the connection port, analyzing the response broadcast packet to acquire the connection IP and the connection port of the server.
Example 5
The invention also relates to a control device for remotely switching on and off the cluster management equipment, which comprises a switching-off control module, a switching-on control module and a connecting module,
the shutdown control module includes:
the shutdown command generating unit is used for acquiring a shutdown command and generating a shutdown command according to the shutdown command;
a shutdown instruction sending unit, configured to send a shutdown instruction;
the shutdown instruction execution unit is used for performing shutdown operation according to the shutdown instruction;
the boot control module includes:
the starting command generating unit is used for acquiring a starting command and generating a starting command according to the starting command;
the starting-up instruction generating unit is used for generating a network awakening data packet according to the starting-up instruction;
the starting instruction execution unit is used for carrying out starting operation according to the network awakening data packet;
the connection module includes:
a request unit for transmitting a request broadcast packet;
a response unit for generating a response broadcast packet according to the request broadcast packet;
the analysis unit is used for analyzing the response broadcast packet to obtain a connection IP and a connection port;
and the connection execution unit is used for performing connection according to the connection IP and the connection port.
In this embodiment, in order to effectively manage the device, client software needs to be run in the device, the client is connected with the server through a TCP, when the server obtains a shutdown command, the shutdown command generating unit triggers to generate a shutdown command, the shutdown command sending unit sends the shutdown command to the client of the corresponding device through a network, and after the client of the device receives the shutdown command, the shutdown command executing unit calls a shell command "shutdown-s-t 60" of the system, that is, the shutdown action can be realized through the operating system.
When the device needs to be powered on, the client cannot be operated because the device is in a power-off state, no connection with the outside exists, and a built-in power-on module does not exist in the device. At this time, a Wake-on-LAN (WOL) technique is required.
Specifically, the startup command generating unit generates a startup command according to the startup command, and the startup command generating unit generates the network awakening data packet according to the startup command, wherein the network awakening data packet comprises the MAC address of the target computer, and the network awakening data packet can be uniquely identified by corresponding equipment in the network due to the uniqueness of the MAC address. When other computers receive the network awakening data packet, the network awakening data packet is discarded because the network awakening data packet is not matched with the MAC address of the local computer, and when the equipment finds that the network awakening data packet is matched with the local computer, the starting instruction execution unit carries out starting operation according to the starting instruction in the network awakening data packet.
Specifically, the WOL network wake-up technology is a Magic Packet wake-up mode.
A Magic Packet is a broadcast frame containing the MAC address of the destination computer, and because of the uniqueness of the MAC address, the Packet can be uniquely identified in the network, and Magic Packet transmission typically uses a connectionless transport protocol (UDP). The Magic Packet is most simply constructed as a 16-ary FF of 6 bytes, followed by 16 repetitions of the 48-bit MAC address of the destination device, for a total of 102 bytes of the Packet.
Because each device needs to run client software and needs to manually configure the IP address and port of the server, in order to save manpower and material resources, the device and the server can be configured in a UDP broadcast manner.
In a network, a request unit of a requester device transmits a request broadcast packet, all devices of the entire network receive the request broadcast packet, the request broadcast packet contains the MAC address of the requesting device, identifying its identity, after receiving the request broadcast packet, other devices discard the request broadcast packet, and after receiving the request broadcast packet, because the server does not know the IP address of the requesting device, a response broadcast packet is generated by the response unit according to the request broadcast packet, the response broadcast packet contains the IP address and port of the server itself and the MAC address of the requesting device, after the requesting device acquires the response broadcast packet, the response broadcast packet is analyzed by the analysis unit, thereby acquiring the connection IP and the connection port of the server, and then the connection execution unit is connected with the server through the TCP.
Example 6
On the basis of the embodiment 5, the system further comprises an acquisition working period module, wherein the acquisition working period module is used for:
acquiring working period information;
generating a timing shutdown command and a timing startup command according to the working period information;
sending a shutdown command at preset shutdown time according to the timing shutdown command;
and sending the starting command at the preset starting time according to the timing starting command.
In this embodiment, in order to perform the on-off processing on the devices in batches, the management terminal may be connected to the server, the management terminal may set the on-off time of the devices in batches, and acquire the on-off time of each device continuously polled by the working period module, and when the preset on-off time or the preset off time is reached, the management terminal may send the off command to the specific device at the preset off time according to the timing off command or generate the network wakeup data packet at the preset on time according to the timing on command and wake up the specific device through the network broadcast.
Example 7
On the basis of embodiment 6, the shutdown control module further includes a timing unit, and the timing unit is configured to count down according to preset time after receiving the shutdown instruction, and execute the shutdown operation after the count down is completed.
In this embodiment, in order to prevent the device from being stopped in an emergency, after receiving a shutdown instruction, the device invokes a shell command "shutdown-s-t 60" of the system to perform shutdown, where "60" is counted down for 60 seconds, and during the counting down performed by the timing unit, if the user needs to cancel shutdown, the server sends a shutdown cancellation instruction to the client of the device, and the client invokes the shell command "shutdown-a" to cancel shutdown, thereby terminating shutdown.
The time length of the countdown can be set by a user in a self-defined mode.
Example 8
On the basis of embodiment 7, the connection module further includes a determination unit configured to determine whether the response broadcast packet is valid.
In this embodiment, the response broadcast packet includes the MAC address of the requesting device, and after the device in the network receives the response broadcast packet, the determining unit determines whether the MAC address in the response broadcast packet matches the local device, and if not, discards the response broadcast packet; and if the response broadcast packet is matched with the connection port, the analysis unit analyzes the response broadcast packet to acquire the connection IP and the connection port of the server.
Example 9
The invention also relates to a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that: the processor, when executing the computer program, performs the steps of any of the methods described above.
The processor, when executing the computer program, performs the steps in the various method embodiments described above. Alternatively, the processor implements the functions of the modules or units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer device.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Example 10
The invention also relates to a computer-readable storage medium, on which a computer program is stored, characterized in that: the computer program, when executed by a processor, implements the steps of any of the methods described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A control method for remote startup and shutdown of cluster management equipment is used for interaction between the equipment and a server and comprises the following steps: a shutdown control flow, a startup control flow and a connection flow,
the shutdown control flow includes the steps of:
obtaining a shutdown command, and generating a shutdown command according to the shutdown command;
sending a shutdown instruction;
performing shutdown operation according to the shutdown instruction;
the boot control flow includes the steps of:
acquiring a starting command, and generating a starting command according to the starting command;
generating a network awakening data packet according to the starting instruction, and broadcasting through a network;
starting up the computer according to the network awakening data packet;
the connection process comprises the following steps:
sending a request broadcast packet;
generating a response broadcast packet according to the request broadcast packet;
analyzing the response broadcast packet to obtain a connection IP and a connection port;
and connecting according to the connection IP and the connection port.
2. The method for controlling the remote power on/off of the cluster management device according to claim 1, wherein: the method further comprises a working period acquiring process, wherein the working period acquiring process comprises the following steps:
acquiring working period information;
generating a timing shutdown command and a timing startup command according to the working period information;
sending a shutdown command at preset shutdown time according to the timing shutdown command;
and sending the starting command at the preset starting time according to the timing starting command.
3. The method for controlling the remote power on/off of the cluster management device according to claim 2, wherein: in the shutdown control flow step, the method further includes the steps of: and after receiving a shutdown instruction, counting down according to preset time, and executing shutdown operation after the counting down is finished.
4. The method for controlling the remote power on/off of the cluster management device according to claim 3, wherein: the step of the connection process further includes determining whether the response broadcast packet is valid.
5. The utility model provides a controlling means of cluster management equipment remote switch machine which characterized in that: comprises a shutdown control module, a startup control module and a connection module,
the shutdown control module includes:
the shutdown command generating unit is used for acquiring a shutdown command and generating a shutdown command according to the shutdown command;
a shutdown instruction sending unit, configured to send a shutdown instruction;
the shutdown instruction execution unit is used for performing shutdown operation according to the shutdown instruction;
the boot control module includes:
the starting command generating unit is used for acquiring a starting command and generating a starting command according to the starting command;
the starting-up instruction generating unit is used for generating a network awakening data packet according to the starting-up instruction and broadcasting the network awakening data packet through a network;
the starting instruction execution unit is used for carrying out starting operation according to the network awakening data packet;
the connection module includes:
a request unit for transmitting a request broadcast packet;
a response unit for generating a response broadcast packet according to the request broadcast packet;
the analysis unit is used for analyzing the response broadcast packet to obtain a connection IP and a connection port;
and the connection execution unit is used for performing connection according to the connection IP and the connection port.
6. The apparatus for controlling cluster management device remote power on/off of claim 5, wherein: the system further comprises an acquisition working period module, wherein the acquisition working period module is used for:
acquiring working period information;
generating a timing shutdown command and a timing startup command according to the working period information;
sending a shutdown command at preset shutdown time according to the timing shutdown command;
and sending the starting command at the preset starting time according to the timing starting command.
7. The apparatus for controlling cluster management device remote power on/off of claim 6, wherein: the shutdown control module further comprises a timing unit, wherein the timing unit is used for counting down according to preset time after receiving the shutdown instruction, and executing shutdown operation after the counting down is completed.
8. The apparatus for controlling cluster management device remote power on/off of claim 7, wherein: the connection module further comprises a judging unit for judging whether the response broadcast packet is valid.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein: the processor, when executing the computer program, realizes the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010767599.7A CN111880454A (en) | 2020-08-03 | 2020-08-03 | Control method and device for remote startup and shutdown of cluster management equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010767599.7A CN111880454A (en) | 2020-08-03 | 2020-08-03 | Control method and device for remote startup and shutdown of cluster management equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111880454A true CN111880454A (en) | 2020-11-03 |
Family
ID=73206129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010767599.7A Pending CN111880454A (en) | 2020-08-03 | 2020-08-03 | Control method and device for remote startup and shutdown of cluster management equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111880454A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839101A (en) * | 2021-02-02 | 2021-05-25 | 西藏宁算科技集团有限公司 | Equipment remote on-off control system and control method |
CN115086936A (en) * | 2022-05-27 | 2022-09-20 | 江门职业技术学院 | Emergency communication remote group control method, cluster network server and emergency equipment terminal |
CN117032814A (en) * | 2023-10-10 | 2023-11-10 | 成都申威科技有限责任公司 | Remote starting system and method for computer |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN106302616A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Network wake-up method, remote server and the network switching equipment |
CN106506174A (en) * | 2016-10-21 | 2017-03-15 | 广州视睿电子科技有限公司 | Control method for remote equipment, remote server and remote equipment |
CN106656521A (en) * | 2015-11-04 | 2017-05-10 | 中兴通讯股份有限公司 | Power-on method and device |
CN108650119A (en) * | 2018-04-24 | 2018-10-12 | 烽火通信科技股份有限公司 | A kind of method and system of Remote configuration terminal device |
CN111131522A (en) * | 2020-01-14 | 2020-05-08 | 上海曼恒数字技术股份有限公司 | Remote control method and system for terminal equipment |
-
2020
- 2020-08-03 CN CN202010767599.7A patent/CN111880454A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN106302616A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Network wake-up method, remote server and the network switching equipment |
CN106656521A (en) * | 2015-11-04 | 2017-05-10 | 中兴通讯股份有限公司 | Power-on method and device |
CN106506174A (en) * | 2016-10-21 | 2017-03-15 | 广州视睿电子科技有限公司 | Control method for remote equipment, remote server and remote equipment |
CN108650119A (en) * | 2018-04-24 | 2018-10-12 | 烽火通信科技股份有限公司 | A kind of method and system of Remote configuration terminal device |
CN111131522A (en) * | 2020-01-14 | 2020-05-08 | 上海曼恒数字技术股份有限公司 | Remote control method and system for terminal equipment |
Non-Patent Citations (1)
Title |
---|
萧蕴诗: "《网络技术基础》", 30 June 2003, 武汉:武汉理工大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839101A (en) * | 2021-02-02 | 2021-05-25 | 西藏宁算科技集团有限公司 | Equipment remote on-off control system and control method |
CN115086936A (en) * | 2022-05-27 | 2022-09-20 | 江门职业技术学院 | Emergency communication remote group control method, cluster network server and emergency equipment terminal |
CN117032814A (en) * | 2023-10-10 | 2023-11-10 | 成都申威科技有限责任公司 | Remote starting system and method for computer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111880454A (en) | Control method and device for remote startup and shutdown of cluster management equipment | |
WO2015077961A1 (en) | Method for sending heartbeat message and mobile terminal | |
CN113765714B (en) | Equipment network distribution method and device, storage medium and electronic equipment | |
CN110474975A (en) | Heartbeat processing method, device, electronic equipment and the storage medium of application program | |
WO2017076331A1 (en) | Startup method and device | |
CN113360257B (en) | Information operation method and device based on BIOS, storage medium and equipment | |
CN112860408A (en) | Process keep-alive method, device and system in cloud reality machine and storage medium | |
CN109451354B (en) | Terminal and method for awakening same | |
CN106506174A (en) | Control method for remote equipment, remote server and remote equipment | |
CN114116014A (en) | Instruction issuing method and device, intelligent equipment and storage medium | |
US20200288403A1 (en) | Smart power saving method for terminal, terminal, and device having memory function | |
KR101141445B1 (en) | Methods and apparatus for improved program acquisition for use with mpeg-2 based systems | |
CN108595195B (en) | Application program updating method, device, terminal and storage medium | |
WO2024103583A1 (en) | Method and apparatus for changed bios options to take effect, nonvolatile readable storage medium, and electronic apparatus | |
CN113992739B (en) | Local area network OTA firmware upgrading device, method and system | |
CN112162626A (en) | Application processing method and device | |
CN106776119A (en) | The method for restarting of Service Instance, device and server | |
US20060031462A1 (en) | Hybrid mode network stack under EFI/Tiano based BIOS in modular computing environment | |
CN116760930B (en) | Call processing method and device, storage medium and electronic equipment | |
CN112311889B (en) | Method and device for determining equipment starting progress, storage medium and electronic device | |
CN113778530B (en) | Equipment awakening method and device, remote system and system server | |
CN116800821B (en) | System upgrading method and device, storage medium and electronic equipment | |
CN114666196B (en) | Distribution network method and device of low-power-consumption equipment, proxy equipment and storage medium | |
CN113064749B (en) | Method for controlling debugging information output at runtime stage through BIOS | |
CN114095488B (en) | Information processing method, device, client and storage medium |
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: 20201103 |