CN101610159A - The method and system that is used for the remote centralized shutdown - Google Patents

The method and system that is used for the remote centralized shutdown Download PDF

Info

Publication number
CN101610159A
CN101610159A CNA2008100393170A CN200810039317A CN101610159A CN 101610159 A CN101610159 A CN 101610159A CN A2008100393170 A CNA2008100393170 A CN A2008100393170A CN 200810039317 A CN200810039317 A CN 200810039317A CN 101610159 A CN101610159 A CN 101610159A
Authority
CN
China
Prior art keywords
rsh
shutdown
client computer
master control
computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008100393170A
Other languages
Chinese (zh)
Other versions
CN101610159B (en
Inventor
辛旻
王磊
王丰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN2008100393170A priority Critical patent/CN101610159B/en
Publication of CN101610159A publication Critical patent/CN101610159A/en
Application granted granted Critical
Publication of CN101610159B publication Critical patent/CN101610159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention has disclosed a kind of method that is used for the remote centralized shutdown, comprises that one of definition is the master control machine, at master control machine deploy foreground program and executive program, and opens rsh and serves; Define one or several systematic managers, wherein the quantity of the operating system used of the computer in the quantity of systematic manager and this computer local network is corresponding, systematic manager of each operating system definition, in systematic manager, set up trusting relationship with the master control machine, and in systematic manager deploy system closedown program, this systematic manager is opened the rsh service; Define several client computer, the trusting relationship of foundation and systematic manager in client computer, and at client computer deploy client computer shutdown script, client computer is opened the rsh service equally.

Description

The method and system that is used for the remote centralized shutdown
Technical field
The present invention relates to remote centralized emergency cutoff technology, relating in particular to suitable is the remote centralized closedown method and the system of unit with the computer local network.
Background technology
At present, almost each company all has the computer local network of oneself, and computer local network all has a machine room of leaving a plurality of servers concentratedly usually, and machine room plays crucial effect for the computer local network of company.The information of preserving on the server in the machine room is crucial often for company.Because the server in the various factors, machine room might need emergency cut-off, present known emergency cutoff technology all is based on the little software of PC, does not also see good effectively concentrated closedown method for server.Though server all is equipped with UPS usually, can the supporting device continue operation a period of time dealing with the outage of external power grid, the limited time that UPS supports, and, be not all emergency cutoff situations all be caused by the external power grid outage.Therefore, be the reliable and stable operation of guarantee information system, server needs the technology of emergency cutoff equally.For avoiding the power failure because of UPS, the loss that the hardware device sudden power causes needs the method for a concentrated emergency cutoff, finally serves for the client provides more lasting available IT.
Existing can only a large amount of engineers of urgent call during to a large amount of server centered shutdown showing up carries out, because personnel go to the scene to need the time, therefore is difficult to avoid occurring slipping and loss of data or finally have little time the phenomenon of Close All.
Summary of the invention
The present invention is intended to disclose a kind of method and system that is used for the remote centralized shutdown, is used for long-range several computers that are positioned at a computer local network of closing.
The method that is used for the remote centralized shutdown of the present invention is achieved as follows:
One that defines in described several computers is the master control machine, at described master control machine deploy foreground program and executive program, and opens the rsh service;
In the computer outside the definite division master control machine one or several are systematic manager, the quantity of the operating system that the computer in the quantity of wherein said systematic manager and this computer local network uses is corresponding, systematic manager of each operating system definition, in described systematic manager, set up trusting relationship with described master control machine, and in described systematic manager deploy system closedown program, described systematic manager is opened the rsh service;
Defining computer remaining in described several computers is client computer, the trusting relationship of foundation and systematic manager in client computer, and at described client computer deploy client computer shutdown script, described client computer is opened the rsh service equally;
Master control machine receiving remote shutdown command finds the IP address of the systematic manager of the operating system that need close;
The master control machine utilizes resulting IP address, and the backstage is carried out rsh and served the system-down script in the executive system shutdown programm on the described systematic manager;
Whether the shutdown script on the described systematic manager scans registration documents, finds the IP address of client computer one by one, and the backstage is carried out rsh and served execution client computer shutdown script on each client computer, and close with ping order detection client computer;
After treating that All Clients is closed, the shutdown system supervisor;
Whether the systematic manager that the master control machine utilizes ping order to detect the operating system that need cut out closes, represents that if systematic manager has been closed this operating system closes;
Close all operations system successively by the master control machine.
In above-mentioned method,,, rsh software opens the rsh service by being installed for the computer that uses UNIX operating system; For the computer that uses WINDOWS operating system,, the rsh software kit opens the rsh service by being installed; Described master control machine uses UNIX operating system, and described systematic manager is a database server.
This method also comprises uses the on off state of ping order interval each system of poll with detection system, and the status file of update system supervisor also shows simultaneously.
Crontab service in the UNIX operating system or the WINDOWS operating system timing operation in providing also is provided this method, automatically regularly with rsh service and ping order check each system on off state and, the existence and the rights state of script, and the collection outcome record is in the status file of systematic manager.
Client computer shutdown script in this method is by customization.
The system that is used for the remote centralized shutdown of the present invention comprises:
The master control machine is one in described several computers, and described master control machine deploy has foreground program and executive program, and opens the rsh service;
Systematic manager, one or more in the computer except that the master control machine, wherein the quantity of the operating system used of the computer in the quantity of systematic manager and this computer local network is corresponding, the corresponding systematic manager of each operating system, described systematic manager is set up the trusting relationship with described master control machine, and described systematic manager deploy has system closedown program and logical rsh service;
Client computer, computer remaining in described several computers is a client computer, and client computer is set up the trusting relationship with systematic manager, and described client computer deploy has client computer shutdown script and opens the rsh service;
Wherein, described master control machine accepts to find after the remote power-off order IP address of the systematic manager of the operating system that need cut out, the master control machine utilizes resulting IP address, and the backstage is carried out rsh and served the system-down script in the executive system shutdown programm on the described systematic manager; Whether the shutdown script on the described systematic manager scans registration documents, finds the IP address of client computer one by one, and the backstage is carried out rsh and served execution client computer shutdown script on each client computer, and close with ping order detection client computer; After treating that All Clients is closed, the shutdown system supervisor; Whether described master control machine utilizes ping order to detect to need the systematic manager of the operating system of closing to close; The master control machine cuts out all operations system successively.
Use the computer of UNIX operating system rsh software to be installed and to be opened the rsh service in the above-mentioned system; Use the computer of WINDOWS operating system the rsh software kit to be installed and to be opened the rsh service; Described master control machine uses UNIX operating system, and described systematic manager is a database server.
Client computer shutdown script in the above-mentioned system is by customization.
The rsh mode that the present invention utilizes system extensively to support at server platform realizes the Long-distance Control between the machine, divides the unit of closing by system environments, can support that UNIX and WINDOWS are multi-platform, and shutdown process can guarantee that database normally closes, not obliterated data.Close thereby make a large amount of servers when power supply generation significant trouble, can be concentrated fast, avoided loss of data and hardware damage.
Description of drawings
Fig. 1 is the flow chart that is used for the method for remote centralized shutdown of the present invention.
Fig. 2 is the structure chart that is used for the system of remote centralized shutdown of the present invention.
Embodiment
The present invention realizes that by means of the rsh service rsh is the abbreviation of " remote shell " (long-range shell).This service is starting a shell and is carrying out the order of user's appointment in the rsh order line on the distance host of appointment.If the user does not provide the order that will carry out, rsh just signs in on the remote machine user with the rlogin order.
With reference to shown in Figure 1, the invention provides a kind of method that is used for the remote centralized shutdown, be used for long-range several computers that are positioned at a computer local network of closing, this method 10 comprises:
11. one that defines in several computers is the master control machine, at master control machine deploy foreground program and executive program, and opens the rsh service.The master control machine defines usually and uses the computer of UNIX operating system to realize.
12. in the computer outside the definite division master control machine one or several are systematic manager, wherein the quantity of the operating system used of the computer in the quantity of systematic manager and this computer local network is corresponding, systematic manager of each operating system definition, in systematic manager, set up trusting relationship with the master control machine, and in systematic manager deploy system closedown program, systematic manager is opened the rsh service.The common definition database server of systematic manager is realized.
13. defining computer remaining in several computers is client computer, the trusting relationship of foundation and systematic manager in client computer, and at client computer deploy client computer shutdown script, client computer is opened the rsh service equally.
Usually, computer may use different operating system in the computer local network, and generally speaking, UNIX operating system and WINDOWS operating system are the most common operation systems.In above-mentioned step 11-13,, open the rsh service by rsh software is installed, and, open the rsh service by rsh software is installed for the computer that uses WINDOWS operating system for the computer that uses UNIX operating system.
14. the deployment scenario and the closedown method of systematic manager and client computer are set, and this step is an optional step, can be provided with by the deployment scenario of operating personnel scene to systematic manager and client computer, and correspondingly closedown method be set.
15. master control machine receiving remote shutdown command finds the IP address of the systematic manager of the operating system that need close.
16. the master control machine utilizes resulting IP address, the backstage is carried out rsh and is served the system-down script in the executive system shutdown programm on the described systematic manager.
Whether 17. the shutdown script on the systematic manager scans registration documents, finds the IP address of client computer one by one, the backstage is carried out rsh and is served execution client computer shutdown script on each client computer, and close with ping order detection client computer.
18. after treating that All Clients is closed, the shutdown system supervisor.
19. whether the systematic manager that the master control machine utilizes ping order to detect the operating system that need cut out closes, if systematic manager is closed, illustrates then that this operating system has been finished to close, and can continue to close next operating system.
20. close all operations system successively by the master control machine.
In above-mentioned method 10, the master control machine can use the ping order, and each system of poll is with the on off state of detection system at interval, and the status file of update system supervisor also shows simultaneously.Also can utilize crontab service in the UNIX operating system or the timing operation in the WINDOWS operating system, automatically regularly check the on off state of each system, the existence and the rights state of script, and collect outcome record in the status file of systematic manager with rsh service and ping order.
Client computer shutdown script wherein can be by customization to increase the flexibility of shutdown programm.
Introduce a running example of the present invention below:
It at first is the preparatory stage: for the UNIX operating system in the computer local network, rsh software is installed, is opened the rsh service.For the WINDOWS operating system in the computer local network, the rsh software kit that Microsoft provides is installed, open the rsh service.Set up the trusting relationship of master control machine at systematic manager, set up and the trusting relationship of systematic manager in client computer.Operating personnel are provided with the deployment scenario of the systematic manager installed and client database and method for closing or understand.
Be the initial deployment stage afterwards: carry out master control machine management foreground software and systems soft ware earlier and dispose, utilize software decoding such as tar to install for the computer of UNIX operating system, and install with software decodings such as rar for WINDOWS operating system.Then to systematic manager Software deployment and correction, utilize software decoding installations such as tar for UNIX operating system, WINDOWS operating system is installed with software decodings such as rar.The shutdown script of systematic manager is confirmed and corrected parameter according to the masterplate actual conditions, such as ORACLE SID.Be client computer to be shut down script dispose and revise at last.Comprise by software requirement and the masterplate that provides, write the shutdown script of each client computer.
Next for the enforcement of emergency cutoff.Phase I is to close certain operating system (promptly moving the All Clients of this operating system), and the program on the master control machine receives order, utilizes the systematic name that obtains, and scans the machine configuration file, finds the IP address of the systematic manager of shutdown system.The IP address that the utilization of master control machine obtains is carried out rsh by the backstage and is ordered the shutdown script of carrying out on this systematic manager on the fixing catalogue.Shutdown script on this systematic manager begins to scan registration documents, finds the IP address of client computer one by one.Carry out rsh by the backstage and order the client computer of carrying out on each client computer on the fixing catalogue to shut down script, and whether close with this client computer of orders such as ping detection.After treating that All Clients is closed, the shutdown system supervisor.Second stage is that affirmation operating system is closed.Whether the master control machine utilizes order detection system supervisors such as ping to close, if systematic manager has been closed this result is shown to the user.Phase III is to close all operations system successively, because the master control machine is to order executive system to be shut down by running background rsh, so can very fast end also can carry out closing of next operating system, the operating system that final plant closure is all after closing motion is implemented.
Daily management for above-mentioned process is as follows:
The system that needs shutdown is revised in increase and decrease: set up configuration file, and the information of storage system supervisor, the interface increase and decrease is revised.
Detect the system switching state that needs shutdown: utilize ping order each system of poll at interval, update system supervisor status file shows simultaneously.
Automatically regularly collect each system and get correlation behavior information: utilize the crontab of UNIX or the timing operation of WINDOWS, carry out script with rsh order and the on off state of each system of ping order inspection and the existence and the rights state of script, and with outcome record in the systematic manager status file.
Regular maintenance systematic manager and client computer shutdown script: have influence on the shutdown script when change takes place for the system of systematic manager and client computer, during as the SID change of oracle database, need synchronous correct.
The state that display system supervisor and client-script are disposed: reading system supervisor status file also shows.
With reference to shown in Figure 2, the present invention also provides a kind of system that is used for the remote centralized shutdown, is used for long-range several computers that are positioned at a computer local network of closing, and this system comprises:
Master control machine 21 is one in several computers, and master control machine deploy has foreground program and executive program, and opens the rsh service.Master control machine 21 typically uses the computer of UNIX operating system.
Systematic manager 22, one or more in the computer except that the master control machine, wherein the quantity of the operating system used of the computer in the quantity of systematic manager 22 and this computer local network is corresponding, the corresponding systematic manager 22 of each operating system, systematic manager 22 is set up the trusting relationship with master control machine 21, and systematic manager 22 deploy have system closedown program and logical rsh service.Systematic manager 22 is generally database server.
Client computer 23, computer remaining in several computers is a client computer, and client computer 23 is set up the trusting relationship with systematic manager 22, and client computer 23 deploy have client computer shutdown script and open the rsh service.
Same, computer may use different operating system in the computer local network, and generally speaking, UNIX operating system and WINDOWS operating system are the most common operation systems.In above-mentioned step 11-13,, open the rsh service by rsh software is installed, and, open the rsh service by the rsh software kit is installed for the computer that uses WINDOWS operating system for the computer that uses UNIX operating system.
In above-mentioned system, find the IP address of the systematic manager 22 of the operating system that need close after the master control machine 21 receiving remote shutdown command, master control machine 21 utilizes resulting IP address, and the backstage is carried out rsh and served the system-down script in the executive system shutdown programm on the systematic manager 22; Whether the shutdown script on the systematic manager 22 scans registration documents, finds the IP address of client computer 23 one by one, and the backstage is carried out rsh and served execution client computer shutdown script on each client computer 23, and close with ping order detection client computer 23; After treating that All Clients 23 is closed, shutdown system supervisor 22; Whether master control machine 21 utilizes ping order to detect to need the systematic manager 22 of the operating system of closing to close; Master control machine 21 cuts out all operations system successively.
Client computer shutdown script in this system can be by customization to increase the flexibility of shutdown programm.
The rsh mode that the present invention utilizes system extensively to support at server platform realizes the Long-distance Control between the machine, divides the unit of closing by system environments, can support that UNIX and WINDOWS are multi-platform, and shutdown process can guarantee that database normally closes, not obliterated data.Close thereby make a large amount of servers when power supply generation significant trouble, can be concentrated fast, avoided loss of data and hardware damage.

Claims (8)

1. a method that is used for the remote centralized shutdown is used for long-range several computers that are positioned at a computer local network of closing, and this method comprises:
One that defines in described several computers is the master control machine, at described master control machine deploy foreground program and executive program, and opens the rsh service;
In the computer outside the definite division master control machine one or several are systematic manager, the quantity of the operating system that the computer in the quantity of wherein said systematic manager and this computer local network uses is corresponding, systematic manager of each operating system definition, in described systematic manager, set up trusting relationship with described master control machine, and in described systematic manager deploy system closedown program, described systematic manager is opened the rsh service;
Defining computer remaining in described several computers is client computer, the trusting relationship of foundation and systematic manager in client computer, and at described client computer deploy client computer shutdown script, described client computer is opened the rsh service equally;
The master control machine finds the IP address of the systematic manager of the operating system that need cut out by interface, foreground receiving remote shutdown command;
The master control machine utilizes resulting IP address, and the backstage is carried out rsh and served the system-down script in the executive system shutdown programm on the described systematic manager;
Whether the shutdown script on the described systematic manager scans registration documents, finds the IP address of client computer one by one, and the backstage is carried out rsh and served execution client computer shutdown script on each client computer, and close with ping order detection client computer;
After treating that All Clients is closed, the shutdown system supervisor;
Whether the systematic manager that the master control machine utilizes the ping order to detect the operating system that need cut out closes, represents that if systematic manager has been closed this system closes;
Close all operations system successively by the master control machine.
2. the method that is used for the remote centralized shutdown as claimed in claim 1 is characterized in that,
For the computer that uses UNIX operating system,, rsh software opens the rsh service by being installed;
For the computer that uses WINDOWS operating system,, rsh software opens the rsh service by being installed;
Described master control machine uses UNIX operating system, and described systematic manager is a database server.
3. the method that is used for the remote centralized shutdown as claimed in claim 1 is characterized in that this method also comprises:
Each system of poll is with the on off state of detection system at interval to use the ping order, and the status file of update system supervisor also shows simultaneously.
4. the method that is used for the remote centralized shutdown as claimed in claim 1 is characterized in that this method also comprises:
Utilize crontab service in the UNIX operating system or the timing operation in the WINDOWS operating system, automatically regularly check the on off state of each system and the existence and the rights state of script, and collect outcome record in the status file of systematic manager with rsh service and ping order.
5. the method that is used for the remote centralized shutdown as claimed in claim 1 is characterized in that this method also comprises:
Client computer shutdown script is by customization.
6. a system that is used for the remote centralized shutdown is used for long-range several computers that are positioned at a computer local network of closing, and this system comprises:
The master control machine is one in described several computers, and described master control machine deploy has foreground program and executive program, and opens the rsh service;
Systematic manager, one or more in the computer except that the master control machine, wherein the quantity of the operating system used of the computer in the quantity of systematic manager and this computer local network is corresponding, the corresponding systematic manager of each operating system, described systematic manager is set up the trusting relationship with described master control machine, and described systematic manager deploy has system closedown program and logical rsh service;
Client computer, computer remaining in described several computers is a client computer, and client computer is set up the trusting relationship with systematic manager, and described client computer deploy has client computer shutdown script and opens the rsh service;
Wherein, find the IP address of the systematic manager of the operating system that need close after the described master control machine receiving remote shutdown command, the master control machine utilizes resulting IP address, and the backstage is carried out rsh and served the system-down script in the executive system shutdown programm on the described systematic manager; Whether the shutdown script on the described systematic manager scans registration documents, finds the IP address of client computer one by one, and the backstage is carried out rsh and served execution client computer shutdown script on each client computer, and close with ping order detection client computer; After treating that All Clients is closed, the shutdown system supervisor; Whether described master control machine utilizes ping order to detect to need the systematic manager of the operating system of closing to close; The master control machine cuts out all operations system successively.
7. the system that is used for the remote centralized shutdown as claimed in claim 6 is characterized in that,
Use the computer of UNIX operating system rsh software to be installed and to be opened the rsh service;
Use the computer of WINDOWS operating system the rsh software kit to be installed and to be opened the rsh service;
Described master control machine uses UNIX operating system, and described systematic manager is a database server.
8. the system that is used for the remote centralized shutdown as claimed in claim 6 is characterized in that, client computer shutdown script is by customization.
CN2008100393170A 2008-06-20 2008-06-20 Method and system for remote centralized shutdown Active CN101610159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100393170A CN101610159B (en) 2008-06-20 2008-06-20 Method and system for remote centralized shutdown

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100393170A CN101610159B (en) 2008-06-20 2008-06-20 Method and system for remote centralized shutdown

Publications (2)

Publication Number Publication Date
CN101610159A true CN101610159A (en) 2009-12-23
CN101610159B CN101610159B (en) 2011-08-10

Family

ID=41483758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100393170A Active CN101610159B (en) 2008-06-20 2008-06-20 Method and system for remote centralized shutdown

Country Status (1)

Country Link
CN (1) CN101610159B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045397A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN115396330A (en) * 2022-08-31 2022-11-25 南京维拓科技股份有限公司 Method for intelligently detecting and controlling server to be shut down in data center

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929410A (en) * 2006-09-04 2007-03-14 曙光信息产业(北京)有限公司 Intelligent computers group monitoring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045397A (en) * 2010-12-20 2011-05-04 福建星网视易信息系统有限公司 Method and equipment for logining embedded terminals by using Telnet to debug embedded terminals
CN115396330A (en) * 2022-08-31 2022-11-25 南京维拓科技股份有限公司 Method for intelligently detecting and controlling server to be shut down in data center

Also Published As

Publication number Publication date
CN101610159B (en) 2011-08-10

Similar Documents

Publication Publication Date Title
US8880907B2 (en) Method and system for determining physical location of equipment
US8156388B2 (en) Analysis leading to automatic action
US7493518B2 (en) System and method of managing events on multiple problem ticketing system
CN102655460B (en) Redundancy backup method and system of production server
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CN102664747B (en) Cloud calculating platform system
CN103188277A (en) Load energy consumption management system, method and server
CN104079596A (en) Remote wakeup method and device
CN101572724A (en) Software version management system
CN105635311A (en) Method for synchronizing resource pool information in cloud management platform
CN101127640B (en) A method for improving data synchronization efficiency via the incremental mode
CN101742254A (en) Backup method for video monitoring system information and central platform server
CN101610159B (en) Method and system for remote centralized shutdown
CN103618634A (en) Method for automatically finding nodes in cluster
CN114610567A (en) Container monitoring method, network device and storage medium
CN104506939A (en) Information reporting method and television terminal
CN113238849A (en) Timed task processing method and device, storage medium and electronic equipment
CN115577160A (en) Production line data acquisition method, device, equipment and medium
CN115664947A (en) Cloud service deployment method
CN102833357A (en) Interface platform communicating with third party
CN114039851A (en) Automatic operation and maintenance method for communication equipment
CN108055159A (en) A kind of clustered node operation synchronous method and device
CN112070481A (en) Remote installation system and method
CN108874589A (en) A kind of electric power plant stand complex automatic system host and station data unify standby system
CN108667932A (en) One kind two-shipper big data application attachment management device and method under load operation conditions

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant