CN115396330A - Method for intelligently detecting and controlling server to be shut down in data center - Google Patents
Method for intelligently detecting and controlling server to be shut down in data center Download PDFInfo
- Publication number
- CN115396330A CN115396330A CN202211062679.8A CN202211062679A CN115396330A CN 115396330 A CN115396330 A CN 115396330A CN 202211062679 A CN202211062679 A CN 202211062679A CN 115396330 A CN115396330 A CN 115396330A
- Authority
- CN
- China
- Prior art keywords
- data center
- ups
- server
- software
- winpower
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0253—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/20—Network management software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Power Sources (AREA)
Abstract
The invention provides a method for intelligently detecting and controlling shutdown of a server in a data center, which comprises the following steps: installing the UPS, establishing communication between the UPS and the data center, deploying the data center, importing a data center script and executing member shutdown operation. And shutdown is carried out according to a set sequence by identifying the host names, the data center script determines whether the commercial power is disconnected through communication with the UPS, and all members on the data center are timed to shutdown when the commercial power is determined to be disconnected.
Description
Technical Field
The invention relates to the technical field of monitoring and alarming, in particular to a method for intelligently detecting and controlling shutdown of a server in a data center.
Background
The UPS is an uninterruptible power supply with an energy storage device, and is mainly used for providing an uninterruptible power supply for a data center, detecting communication with the UPS and knowing whether a mains supply is in a power-off state or not.
In the current implementation process, the mains supply is powered off, even if the power is off, an administrator must manually shut down the power supply, and sometimes the power supply fails to respond in time, so that hardware damage data is lost.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a method for intelligently detecting and controlling the shutdown of a server by a data center.
In order to achieve the purpose, the invention adopts the following technical scheme:
s1: installing the UPS and establishing communication between the UPS and the data center;
installing the UPS to ensure that the UPS can communicate with the data center and provide an uninterrupted power supply for the data center members;
the data center comprises a computer provided with Winpower software;
the UPS is monitored and managed through Winpower software, the Winpower software supports a single independent computer and also supports all computers in a network including a local area network and the Internet, and the Winpower software is directly communicated with the UPS;
furthermore, the UPS can be remotely and intelligently monitored through WebPower, and the WebPower establishes communication with the UPS through network management software which is adapted to the data center;
the adapting network management software comprises a step of managing the UPS through a Web browser and SNMP network management software centralized monitoring software;
the WebPower can also establish communication connection with WinPower and carry out monitoring management through WinPower software;
s2: deploying a data center;
a power supply of the data center is connected with the UPS, winpower software installed on a computer of the data center is set as a data center management platform, and Winpower software management authority is configured;
further, a virtual machine is operated on the exi, the UPS is connected to a computer where the exi is located, equipment is mapped to the current xp virtual machine, the Winpower software is installed on the current xp virtual machine, and the Winpower software management authority is configured;
s3: importing a data center script and executing member shutdown operation;
importing the script into a data center management platform, running the script, starting a timer, and after the timer is finished, shutting down the member;
furthermore, a data center script is imported and member shutdown is executed, and the specific member shutdown mode and sequence are as follows:
a cooperative working platform: logging in WiTiCon01 through a remote desktop of a virtual machine to directly close an operating system;
an ithought cloud management platform: sequentially logging in WiTiTH01, wiTiTH02, wiTiTH03 and WiTiTH04 through ssh to execute a poweroff shutdown command;
the license server: the remote desktop logs in the WiTLiCO1 to directly close the operating system;
an application delivery controller: the operation system is directly closed when the remote desktop logs in the WiTDC02, and the operation system is directly closed when the remote desktop logs in the WiTDC 01;
a Web file server: the remote desktop logs in the WebFile Server to directly close the operating system;
a graphic server: the remote desktop login graphic server APP01 directly closes the operating system, and the remote desktop login graphic server APP02 directly closes the operating system;
the calculation center server: logging in a computing center server through ssh to execute a poweroff shutdown command;
a database server: the remote desktop sequentially logs in the WiTDB02, the WiTDB03 and the WiTDB01 to directly turn off the operating system;
a file server: the remote desktop login WiTFS01 directly closes the operation system;
architecture ESXi host: entering the ESxi into a maintenance mode through a vmware vsphere console, and then closing;
and (3) storing: closing storage after all servers are closed;
in consideration of the closing sequence, once the subsequent programs are closed, the subsequent programs cannot be executed, so that the host names are judged firstly, and then the shutdown is performed according to the host names in sequence.
After the mains supply is powered off, the switching UPS supplies power to the environment monitoring host computer, if the power is not recovered after 10-20 minutes, the command is automatically sent to the data center, and the data center starts to automatically shut down according to the set sequence and the identified host computer name through the script.
Compared with the prior art, the invention has the following beneficial effects: the mains supply is powered off, so that an administrator does not need to manually shut down the power supply, and can respond in time, thereby avoiding the loss of hardware damage data; the data center script determines whether the commercial power is disconnected or not through communication with the UPS, and all members in the data center are timed to be shut down when the commercial power is determined to be disconnected.
Detailed Description
In order to further understand the objects, structures, features and functions of the present invention, the following embodiments are described in detail.
Example 1: the method comprises the following steps:
s1: installing the UPS and establishing communication between the UPS and the data center;
installing the UPS to ensure that the UPS can communicate with the data center and provide an uninterrupted power supply for the data center members;
the data center comprises a computer provided with Winpower software;
the UPS is monitored and managed through Winpower software, the Winpower software supports a single independent computer and also supports all computers in a network including a local area network and the Internet, and the Winpower software is directly communicated with the UPS;
furthermore, the UPS can be remotely and intelligently monitored through WebPower, and the WebPower establishes communication with the UPS through network management software which is adapted to the data center;
the adapting network management software comprises a step of managing the UPS through a Web browser and SNMP network management software centralized monitoring software;
the WebPower can also establish communication connection with WinPower, and monitoring management is carried out through WinPower software.
S2: deploying a data center;
a power supply of the data center is connected with the UPS, winpower software installed on a computer of the data center is set as a data center management platform, and Winpower software management authority is configured;
further, a virtual machine is operated on the exi, the UPS is connected to a computer where the exi is located, the device is mapped to the current xp virtual machine, the Winpower software is installed on the current xp virtual machine, and the Winpower software management authority is configured.
S3: importing a data center script and executing member shutdown operation;
importing the script into a data center management platform, running the script, starting a timer, and after the timer is finished, shutting down the member;
further, importing a data center script and executing member shutdown, wherein the specific member shutdown mode and sequence are as follows:
a cooperative working platform: logging in WiTiCon01 through a remote desktop of a virtual machine to directly close an operating system;
an ithought cloud management platform: sequentially logging in WiTiTH01, wiTiTH02, wiTiTH03 and WiTiTH04 through ssh to execute a poweroff shutdown command;
the license server: the remote desktop logs in the WiTLiCO1 to directly close the operating system;
an application delivery controller: the remote desktop logs in the WiTDC02 to directly close the operating system, and the remote desktop logs in the WiTDC01 to directly close the operating system;
a Web file server: the remote desktop logs in the WebFile Server to directly close the operating system;
a graphic server: the remote desktop login graphic server APP01 directly closes the operating system, and the remote desktop login graphic server APP02 directly closes the operating system;
the calculation center server: logging in a computing center server through ssh to execute a poweroff shutdown command;
a database server: the remote desktop sequentially logs in the WiTDB02, the WiTDB03 and the WiTDB01 to directly turn off the operation system;
a file server: remote desktop login WiTFS01 directly closes the operating system;
architecture ESXi host: entering the ESxi into a maintenance mode through a vmware vsphere console, and then closing;
and (3) storing: closing storage after all servers are closed;
in consideration of the closing sequence, once the subsequent programs are closed, the subsequent programs cannot be executed, so that the host names are judged firstly, and then the shutdown is performed according to the host names in sequence.
After power failure, automatically shutting down the hosts. List format under the UPS: text, one ip address per line principle: ping one or more network devices (e.g., a routing gateway) that are not connected to a UPS power source, if the ping is not enabled for a set time, it is deemed that the following environment was tested (EXSi) usage in the event of a power outage:
py once 192.168.1.30 (need to be associated with crond)
Sudo python ups check py forever 192.168.1.60 (with the addition of a start item)
Sudo python ups check py once more hosts list 30 (need to match crond, ping multiple ip addresses at a time)
Sudo python ups check py fork hosts list 60 (need to add a start-up entry, ping multiple ip addresses at a time)
The shell script realizes that a plurality of virtual machines are restarted/closed by one key on any virtual machine.
Considering the problem of the closing sequence, once the subsequent program is closed by the machine, the subsequent program cannot be executed, so that the judgment of the host name is firstly carried out; the closing method is just to change rebot into shutdown.
It should be noted that the execution time of the system shutdown script is after the system logs out all users and before the system is shutdown, so these commands will not work for the virtual machine started from the Windows login user interface, because the Windows system has automatically stopped the virtual machine process of the user when the user logs out.
After the mains supply is powered off, the switching UPS supplies power to the environment monitoring host computer, if the power is not recovered after 10-20 minutes, the command is automatically sent to the data center, and the data center starts to automatically shut down according to the set sequence and the identified host computer name through the script.
The present invention has been described in relation to the above embodiments, which are only examples of the implementation of the present invention. It should be noted that the disclosed embodiments do not limit the scope of the invention. Rather, it is intended that all such modifications and variations be included within the spirit and scope of this invention.
Claims (4)
1. The method for intelligently detecting and controlling the shutdown of the server in the data center is characterized in that: the method comprises the following steps:
s1: installing the UPS and establishing communication between the UPS and the data center;
installing the UPS to ensure that the UPS can communicate with the data center and provide an uninterrupted power supply for the data center members;
the data center comprises a computer provided with Winpower software;
the UPS is monitored and managed through Winpower software, the Winpower software supports a single independent computer and also supports all computers in a network including a local area network and the Internet, and the Winpower software is directly communicated with the UPS;
s2: deploying a data center;
a power supply of the data center is connected with the UPS, winpower software installed on a computer of the data center is set as a data center management platform, and Winpower software management authority is configured;
s3: importing a data center script and executing member shutdown operation;
and importing the script into a data center management platform, running the script, starting a timer, and after the timer is finished, shutting down the member.
2. The method for intelligently detecting and controlling server shutdown in a data center as claimed in claim 1, wherein: the UPS can be remotely and intelligently monitored through WebPower, and the WebPower establishes communication with the UPS through network management software which is installed in the data center in an adaptive mode;
the adapting network management software comprises a step of managing the UPS through a Web browser and SNMP network management software centralized monitoring software;
the WebPower can also establish communication connection with the WinPower and carry out monitoring management through WinPower software.
3. The method of claim 1, wherein the data center intelligently detects and controls the shutdown of the server by: and running a virtual machine on the exi, connecting the UPS to the computer where the exi is located, mapping the equipment to the current xp virtual machine, installing the Winpower software on the current xp virtual machine, and configuring the Winpower software management authority.
4. The method for intelligently detecting and controlling server shutdown in a data center as claimed in claim 1, wherein: and importing a data center script and executing member shutdown, wherein the specific member shutdown mode and sequence are as follows:
a cooperative working platform: logging in WiTiCon01 through a remote desktop of a virtual machine to directly close an operating system;
an ithought cloud management platform: sequentially logging in WiTiTH01, wiTiTH02, wiTiTH03 and WiTiTH04 through ssh to execute a poweroff shutdown command;
the license server: the remote desktop logs in the WiTLiCO1 to directly close the operating system;
an application delivery controller: the operation system is directly closed when the remote desktop logs in the WiTDC02, and the operation system is directly closed when the remote desktop logs in the WiTDC 01;
a Web file server: logging in a WebFile Server by a remote desktop to directly close an operating system;
a graphic server: the remote desktop login graphic server APP01 directly closes the operating system, and the remote desktop login graphic server APP02 directly closes the operating system;
the calculation center server: logging in a computing center server through ssh to execute a poweroff shutdown command;
a database server: the remote desktop sequentially logs in the WiTDB02, the WiTDB03 and the WiTDB01 to directly turn off the operating system;
a file server: the remote desktop login WiTFS01 directly closes the operation system;
architecture ESXi host: entering the ESxi into a maintenance mode through a vmware vsphere console, and then closing;
and (3) storing: and closing the storage after all the servers are closed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211062679.8A CN115396330A (en) | 2022-08-31 | 2022-08-31 | Method for intelligently detecting and controlling server to be shut down in data center |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211062679.8A CN115396330A (en) | 2022-08-31 | 2022-08-31 | Method for intelligently detecting and controlling server to be shut down in data center |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115396330A true CN115396330A (en) | 2022-11-25 |
Family
ID=84124284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211062679.8A Pending CN115396330A (en) | 2022-08-31 | 2022-08-31 | Method for intelligently detecting and controlling server to be shut down in data center |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115396330A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2388624A1 (en) * | 1999-11-03 | 2001-05-10 | Accenture Llp | Architectures for netcentric computing systems |
CN1390008A (en) * | 2002-07-15 | 2003-01-08 | 廖正钢 | Interlligent power supply managing system based on network and uninterrupted power source and its management method |
CN101610159A (en) * | 2008-06-20 | 2009-12-23 | 上海宝信软件股份有限公司 | The method and system that is used for the remote centralized shutdown |
-
2022
- 2022-08-31 CN CN202211062679.8A patent/CN115396330A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2388624A1 (en) * | 1999-11-03 | 2001-05-10 | Accenture Llp | Architectures for netcentric computing systems |
CN1390008A (en) * | 2002-07-15 | 2003-01-08 | 廖正钢 | Interlligent power supply managing system based on network and uninterrupted power source and its management method |
CN101610159A (en) * | 2008-06-20 | 2009-12-23 | 上海宝信软件股份有限公司 | The method and system that is used for the remote centralized shutdown |
Non-Patent Citations (3)
Title |
---|
"解读山特UPS智能监控系统WebPower", 金融电子化, no. 09, pages 51 - 52 * |
林广京: "采用UPS 监控软件实现停电服务器自动关机", 科技展望, pages 24 * |
范鹏飞;范鹏程;: "利用非智能UPS完成无人值守服务器安全关机", 科技资讯, no. 24, pages 23 - 24 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2008157668A2 (en) | Method and system for determining physical location of network equipment | |
JP5664362B2 (en) | Power supply and program | |
CN106933710A (en) | The method of testing that DC is restarted is carried out to server based on WOL functions | |
CN105306225A (en) | Openstack-based physical machine remote shutdown method | |
CN201467145U (en) | Remote management system and control device | |
CN104270430A (en) | Server remote dispatching method suitable for cloud computing | |
CN111352995A (en) | Server service method, system, device and storage medium based on database Neo4j | |
JP5773166B2 (en) | Computer control method, computer and computer system | |
US20180233947A1 (en) | Device operating state modification with uninterruptible power source | |
US8706870B2 (en) | Remotely managed device | |
CN103618634A (en) | Method for automatically finding nodes in cluster | |
CN102469168A (en) | Method for setting network address | |
CN108449225B (en) | System and method for determining and repairing network connection problems | |
CN107015622B (en) | Spark cluster power-off self-protection and incoming call self-starting method | |
CN100410914C (en) | Method of remote controlling computer in different area via computer network | |
CN111352662B (en) | Server starting sequence control method, system, terminal and storage medium | |
WO2020135530A1 (en) | Man-machine interface system having power loss protection mechanism, and distributed control system | |
CN115396330A (en) | Method for intelligently detecting and controlling server to be shut down in data center | |
US20160246270A1 (en) | Method of controlling a data center architecture equipment | |
CN111080864A (en) | Express cabinet door lock opening method and device and express cabinet | |
CN105608034B (en) | A kind of method of clump automatic heatings plug | |
CN114138567A (en) | Substrate management control module maintenance method, device, equipment and storage medium | |
CN103269274A (en) | Network-controlled computer startup and shutdown system | |
CN114546427A (en) | MySQL high-availability implementation method based on DNS and MGR | |
CN203289457U (en) | System controlling power-on/off of computer via network |
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 |