CN110134546B - Batch restarting windows system method, electronic device and storage medium - Google Patents

Batch restarting windows system method, electronic device and storage medium Download PDF

Info

Publication number
CN110134546B
CN110134546B CN201910290126.XA CN201910290126A CN110134546B CN 110134546 B CN110134546 B CN 110134546B CN 201910290126 A CN201910290126 A CN 201910290126A CN 110134546 B CN110134546 B CN 110134546B
Authority
CN
China
Prior art keywords
user name
server
restarting
batch
host
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.)
Active
Application number
CN201910290126.XA
Other languages
Chinese (zh)
Other versions
CN110134546A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910290126.XA priority Critical patent/CN110134546B/en
Publication of CN110134546A publication Critical patent/CN110134546A/en
Application granted granted Critical
Publication of CN110134546B publication Critical patent/CN110134546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to software development, and provides a method for restarting windows in batches, an electronic device and a storage medium, wherein the method comprises the following steps: calling a batch file on a host through an allowable, inputting a host IP, a host user name and a host login password into the batch file, and executing a batch command; inputting a domain user name and a domain login password on a host computer, and logging in a domain; copying the script of the restarting server to the host; establishing network connection between a host and a cluster server, and judging whether the network is connected; copying the script of the restarting server to the cluster server; checking whether the local manager group has a domain user name and a cluster server user name, and if the local manager group has the cluster server user name and the domain user name, calling a script of a restarting server to execute restarting operation on the corresponding server. According to the invention, the server restarting operation is realized without inputting passwords from server to server, the servers can be restarted in batch operation, the working efficiency and the accuracy are improved, and the misoperation rate is reduced.

Description

Batch restarting windows system method, electronic device and storage medium
Technical Field
The present invention relates to the field of software development, and in particular, to a method for restarting windows in batch, an electronic device, and a storage medium.
Background
In the current local area network, for the windows system, the restart operation is required to be executed after the remote log-in host respectively, and the operation of a plurality of servers for installing the windows system is very time-consuming and cannot be started at the same time. This adds virtually to the time cost of personnel operations, and for the above problems, a method for restarting Windows systems in batch has not been discovered.
Disclosure of Invention
In order to solve the technical problems, the invention provides a batch restarting windows system method, which is applied to an electronic device and comprises the following steps:
calling a batch file on a host through an allowable, inputting a host IP, a user name and a password into the batch file, and executing a batch command;
the batch command performs the following operations:
inputting a domain user name and a password on a host, and logging in the domain, wherein the domain user name = domain name\user name;
copying the script of the restarting server to the host;
establishing network connection between a host and a cluster server, and judging whether the network is connected;
copying the script of the restarting server to the cluster server;
checking whether the local manager group has the domain user name or not, recording a log to a host, checking whether the local manager group has the cluster server user name or not if the local manager group has the domain user name, recording the log to the host, and calling a script of a restarting server to execute restarting operation on the cluster server if the local manager group has the cluster server user name.
Preferably, the network connection is disconnected prior to verifying whether the local administrator group has a domain username and a cluster server username.
Preferably, whether there is a field user name in the local administrator group is determined by searching in the administtra names. Txt for a character string matching the field user name through the findstr-I-x command, and whether there is a character string matching the cluster server user name in the administtra names by searching in the administtra names. Txt through the findstr-I-x command.
Preferably, the judgment is carried out by setting the form of a variable d, the fact that the character string identical to the domain user name is searched in the administtra s.txt through the fact that the findstr-I-x "% Q%" "C \PsExe\log \1_administtra s.txt", if the character string identical to the domain user name is searched, d+1 is judged by judging whether the domain user name is in a local manager group or not through d being equal to 1, if d is equal to 1, the fact that the character string matched with the domain user name is not searched is indicated, the fact that the domain user name is not in administtra s.txt is not executed, a restarting command is not executed, and the date, the time, the user name and the IP of a server are output to a log is executed, otherwise, the restarting is executed.
Preferably, the judgment is carried out by setting a variable e, and by setting the variable e, psExe log 1_administers.txt finds the same character string as the cluster server user name in administers.txt, if the character string as the cluster server user name is found, e+1 is found, and if e is equal to 1, whether the domain user name is in the local manager group is judged, if e is equal to 1, the fact that the character string matched with the cluster server user name is not found is indicated, and the fact that the cluster server user name is not in administers.txt is not carried out is indicated, and the date, time, user name, IP of the server are output to the server, otherwise, the restarting is carried out.
Preferably, copying the script of the restart server into the host is to use psedec.exe in the PsTools to execute batch commands on the host or cluster server for copying files.
Preferably, in the process of executing the restarted batch script, for the server which is down, after restarting, the CPU is subjected to frequency reduction processing, whether the phenomenon of down exists is further monitored, if the CPU frequency is continuously increased to 100% after restarting, the host controls to start the standby server and continuously observes the CPU frequency, if the CPU frequency is not continuously increased to 100% after restarting, the problem of down is judged to be solved, and the number of the current servers which are started is maintained.
The invention also provides an electronic device, which comprises: the system comprises a memory and a processor, wherein a batch restarting windows system program is stored in the memory, and the batch restarting windows system program is executed by the processor to realize the following steps:
calling a batch file on a host through an allowable, inputting a host IP, a user name and a password into the batch file, and executing a batch command;
the batch command performs the following operations:
inputting a domain user name and a password on a host, and logging in the domain, wherein the domain user name = domain name\user name;
copying the script of the restarting server to the host;
establishing network connection between a host and a cluster server, and judging whether the network is connected;
copying the script of the restarting server to the cluster server;
checking whether the local manager group has the domain user name or not, recording a log to a host, checking whether the local manager group has the cluster server user name or not if the local manager group has the domain user name, recording the log to the host, and calling a script of a restarting server to execute restarting operation on the cluster server if the local manager group has the cluster server user name.
Preferably, the network connection is disconnected prior to verifying whether the local administrator group has a domain username and a cluster server username.
The present invention also provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, implement a batch restart windows system method as described above.
According to the batch restarting windows system method, the electronic device and the storage medium, the batch restarting operation can be performed by operating the servers in batches without inputting passwords one by one, so that a large amount of time is saved, the working efficiency and the accuracy are improved, and the misoperation rate is reduced.
Drawings
The above-mentioned features and technical advantages of the present invention will become more apparent and readily appreciated from the following description of the embodiments thereof, taken in conjunction with the accompanying drawings.
FIG. 1 is a flow diagram of a method for restarting windows in bulk according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the invention;
FIG. 3 is a block diagram of a batch restart windows system program according to an embodiment of the present invention;
fig. 4 is a block diagram of a verification module according to an embodiment of the present invention.
Detailed Description
Embodiments of a batch restart windows system method, an electronic device, and a storage medium according to the present invention will be described below with reference to the accompanying drawings. Those skilled in the art will recognize that the described embodiments may be modified in various different ways, or combinations thereof, without departing from the spirit and scope of the invention. Accordingly, the drawings and description are to be regarded as illustrative in nature and not as restrictive in scope. Furthermore, in the present specification, the drawings are not drawn to scale, and like reference numerals denote like parts.
The batch restarting windows system method of the present embodiment is used for restarting windows systems of a cluster server through a host, and fig. 1 is a flow diagram of the batch restarting windows system method of the present embodiment, where the method includes the following steps:
step S10, calling a batch file on a host through an allowable (configuration management tool), inputting a host IP, a user name and a password into the batch file, and executing a batch command. The form is as follows:
the allowable windows-m win_command-a "C: \PsExe\PsExe\windows.bat$12$ 3". Wherein, C\PsExe\PsExe\windows.bat windows is a batch processing command executed on the host, $1 represents the host IP address, $2 represents the host user name, $3 represents the host login password, and the user inputs according to the actual IP of the host, the host user name and the host login password. The host user name is the local account of the host, which can only be logged in and used by the host, and network resources (such as network printers, network shared logic discs, network version application software and the like) can not be used. Therefore, a login domain is also required later, and the cluster server is restarted with the domain.
The batch command performs the following operations:
step S301, a domain user name and a domain login password are input on the host, and a domain is logged in, wherein the domain user name=domain name/user (user name), for example, paidom/user;
step S302, copying a script of the restarting server into a host, wherein in the embodiment, the script of the restarting server is restart3.bat, and the script is called when a command of restarting the server is executed;
step S303, establishing network connection between the host and the cluster server, and judging whether the network is connected, in particular, judging by adopting a ping command;
step S304, copying the script of the restarting server to the cluster server, and because the script of the restarting server is copied to each cluster server, the script is directly called when the command of the restarting server is executed in the later stage, so that each server can execute the restarting;
step S305, checking whether a domain user name exists in Administrators (local manager group), and recording logs to a host, wherein whether the logged-in domain user exists in the local manager group is checked, if the domain user name exists in the local manager group, a restarting operation is executed on the cluster server, and if the domain user name does not exist in the local manager group, the restarting operation is not executed. Before executing the restarting operation on the cluster server, checking whether the cluster server user name exists in the Administrators (local manager group), and recording logs to the host, wherein, checking whether the cluster server user name exists in the local manager group, if the cluster server user name exists in the local manager group, executing the restarting operation on the cluster server, and if the cluster server user name does not exist in the local manager group, not executing the restarting operation.
In an alternative embodiment, the network connection may be disconnected before checking whether there is a domain username and a cluster server username in the Administrators (local administrator group).
In an alternative embodiment, the administtra is searched for a string matching the domain user name in the administtra.txt by a fmdstr-I-x command to determine if there is a domain user name in the administtra (local administrator group). Similarly, it is determined whether there is a cluster server user name in the administtra (local administrator group) by the findstr-I-x command if there is a string in the administtra.
Further, it may be determined by setting the form of the variable d. For example, the command "C: \PsExe\log\1_administers.txt" is used for searching the character string identical to the domain user name in the administers.txt, if the character string identical to the domain user name is searched, d+1 is used for judging whether the domain user name is in the local administrator group or not according to whether d is equal to 1. If d is equal to 1, the fact that the character string matched with the domain user name is not found is indicated, the fact that the domain user name is not in the administtrators. Txt is indicated, a restarting command is not executed, and the date, the time, the domain user name and the IP of the server are output to the log. Otherwise, a restart is performed.
May be determined by setting the form of variable e. For example, the command "C: \PsExe\log\1_administers.txt" is used for searching the character string with the same name as the cluster server user name in the administers.txt, if the character string with the same name as the cluster server user name is searched, e+1 is searched, and whether the domain user name is in the local manager group is judged by whether e is equal to 1 or not. If e is equal to 1, the character string matched with the cluster server user name is not found, the situation that the cluster server user name is not in an administator. Txt is indicated, a restarting command is not executed, and the date, time, the cluster server user name and the IP of the server are output to a log. Otherwise, a restart is performed.
In an alternative embodiment, copying the script of the restart server into the host is using psexec.exe in a PsTools (remote or local system management toolkit) tool to execute batch commands on the host or cluster server for copying files. The method comprises the following steps:
start C:\PsExe\psexec.exe\\127.0.0.1-u"paicdom\sqluser"-p%3-s-d-i
-accepteula C:\PsExe\copy.bat%1
wherein, C\psexec is the path of the psexec.exe program, and 127.0.0.1 is the IP of the host. -u "paicdom\sqlurer" is the domain user name. P%3 is a domain login password. copy. Bat is a batch script that performs copies.
In an alternative embodiment, the server is usually down when the kernel crashes and the load is too high, and for the down server, only restarting is not necessary to solve the problem, in the process of executing the restarted batch script, the CPU of the down server is subjected to down-frequency processing after restarting, and whether the down phenomenon exists in the server is further monitored. If the CPU frequency continues to rise to 100% after restarting, the load is determined to be too high, and the host controls the starting of the standby server. And continuously observing the CPU frequency of the server, if the CPU frequency is not continuously increased to 100% after restarting, judging that the downtime problem is solved, and keeping the number of the current servers started.
Fig. 2 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the invention. In this embodiment, the electronic device 2 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction. For example, it may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including a stand-alone server or a server cluster composed of a plurality of servers), etc. As shown in fig. 2, the electronic device 2 includes at least, but is not limited to, a memory 21, a processor 22, and a network interface 23, which are communicatively connected to each other via a system bus. Wherein: the memory 21 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 21 may be an internal storage unit of the electronic device 2, such as a hard disk or a memory of the electronic device 2. In other embodiments, the memory 21 may also be an external storage device of the electronic apparatus 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic apparatus 2. Of course, the memory 21 may also comprise both an internal memory unit of the electronic device 2 and an external memory means thereof. In this embodiment, the memory 21 is generally used to store an operating system and various application software installed on the electronic device 2, such as the batch restart windows system program code. Further, the memory 21 may be used to temporarily store various types of data that have been output or are to be output.
The processor 22 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the electronic device 2, such as performing control and processing related to data interaction or communication with the electronic device 2. In this embodiment, the processor 22 is configured to execute the program code or process data stored in the memory 21, for example, execute the batch restart windows system program.
The network interface 23 may comprise a wireless network interface or a wired network interface, which network interface 23 is typically used for establishing a communication connection between the electronic device 2 and other electronic devices. For example, the network interface 23 is configured to connect the electronic device 2 to a push platform through a network, and establish a data transmission channel and a communication connection between the electronic device 2 and the push platform. The network may be an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband CodeDivision Multiple Access, WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, or other wireless or wired network.
Alternatively, the electronic apparatus 2 may further include a user interface, which may include an input unit such as a Keyboard (Keyboard), a voice input device such as a microphone (microphone), or the like, a voice output device such as a sound box, an earphone, or the like, which has a voice recognition function.
Optionally, the user interface may also include a standard wired interface, a wireless interface.
Optionally, the electronic device 2 may also comprise a display, which may also be referred to as a display screen or display unit. In some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) display, or the like. The display is used for displaying information processed in the electronic device 2 and for displaying a visualized user interface.
It is noted that fig. 2 only shows an electronic device 2 having components 21-23, but it is understood that not all of the illustrated components are required to be implemented, and that more or fewer components may alternatively be implemented.
The memory 21 containing the readable storage medium may include an operating system, a batch restart windows system program 50, and the like. The processor 22 performs the following steps when executing the batch restart windows system program 50 in the memory 21:
step S10, calling a batch file on a host through an allowable (configuration management tool), inputting a host IP, a host user name and a host login password into the batch file, and executing a batch command.
The batch command performs the following operations:
step S301, a domain user name and a domain login password are input on the host, and a domain is logged in, wherein the domain user name=domain name/user (user name), for example, paidom/user;
step S302, copying a script of the restarting server into the host, wherein in the embodiment, the script is restart3.bat and is called later when a command for restarting the server is executed;
step S303, establishing network connection between the host and the cluster server, and judging whether the network is connected, in particular, judging by adopting a ping command;
step S304, copying the script of the restarting server to the cluster server, and because the script of the restarting server is copied to each cluster server, the script is directly called when the command of the restarting server is executed in the later stage, so that each server can execute the restarting;
step S305, checking whether the domain user name exists in the Administrators (local manager group), and recording logs to the host, wherein whether the logged-in domain user is in the local manager group is checked, if the domain user name exists in the group, the restarting operation is executed on the cluster server, and if the domain user name does not exist in the local manager group, the restarting operation is not executed. Before executing the restarting operation, it also checks whether there is a cluster server user name in the Administrators (local manager group), and records the log to the host, wherein it checks whether the cluster server user name is in the local manager group, if there is a cluster server user name in the group, then executing the restarting operation on the cluster server, if there is no cluster server user name in the local manager group, then not executing the restarting operation.
In this embodiment, the batch restart windows system program stored in the memory 21 may be divided into one or more program modules, which are stored in the memory 21 and executed by one or more processors (the processor 22 in this embodiment) to complete the present invention. For example, FIG. 3 shows a program module schematic of the batch restart windows system program, in which embodiment the batch restart windows system program 50 may be partitioned into a batch file call module 501, a login module 502, a copy module 503, a networking and off-networking module 504, and a verification module 505. The program modules referred to herein are meant to be a series of computer program instruction segments capable of performing a specific function, more suitable than a program for describing the execution of the batch restart windows system program in the electronic device 2. The following description will specifically introduce specific functions of the program modules.
The batch file calling module 501 calls a batch file on a host through an allowable (configuration management tool), inputs a host IP, a domain user name and a domain login password into the batch file, and executes a batch command. The form is as follows:
the allowable windows-m win_command-a "C: \PsExe\PsExe\windows.bat$12$ 3". Wherein, C\PsExe\PsExe\windows.bat windows is a batch processing command executed on the host, $1 represents the host IP address, $2 represents the host user name, $3 represents the host login password, and the user inputs according to the actual IP of the host, the host user name and the host login password. The host user name is the local account of the host, which can only be logged in and used by the host, and network resources (such as network printers, network shared logic discs, network version application software and the like) can not be used. Therefore, a login domain is also required later, and the cluster server is restarted with the domain.
The login module 502 inputs a domain user name, a domain login password, and a login domain on the host, where the domain user name=domain name/user (user name), for example, paidom/user;
the copying module 503 copies the script of the restart server to the host, which in this embodiment is restart3.bat, and then invokes the script when executing the command of restarting the server;
the networking and off-line module 504 establishes network connection between the host and the cluster server, and determines whether the network is connected, specifically, may use a ping command to determine;
the copying module 503 copies the script of the restarting server to the cluster servers, and as the script of the restarting server is copied to each cluster server, each server does not need to be logged in, and when the command of the restarting server is executed in the later period, the script is directly called, so that each server can execute the restarting;
as shown in fig. 4, the verification module 505 includes a domain user name verification unit 5051 for verifying whether there is a domain user name in administers (local administrator group), and recording logs to the host, where it is verified whether the logged-in user is in the local administrator group, if there is the domain user name in the group, the restarting operation is performed on the cluster server, and if there is no domain user name in the local administrator group, the restarting operation is not performed.
The verification module 505 further includes a cluster server user name verification unit 5052, before executing the restart of the cluster server, further verifies whether there is a cluster server user name in an Administrators (local administrator group), and records a log to the host, where it is verified whether the cluster server user name is in the local administrator group, if there is a cluster server user name in the group, a restart operation is executed on the server, and if there is no cluster server user name in the local administrator group, a restart operation is not executed.
In addition, the embodiment of the invention also provides a computer readable storage medium, which can be any one or any combination of a plurality of hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disc read-only memory (CD-ROM), a USB memory and the like. The computer readable storage medium includes a batch restart windows system program, and the specific implementation of the batch restart windows system program 50 executed by the processor 22 is substantially the same as the specific implementation of the batch restart windows system method and the specific implementation of the electronic device 2 described above, and will not be described herein.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for restarting windows in batches, which is applied to an electronic device, and is characterized by comprising the following steps:
calling a batch file on a host through an allowable, inputting a host IP, a user name and a password into the batch file, and executing a batch command;
the batch command performs the following operations:
inputting a domain user name and a password on a host, and logging in the domain, wherein the domain user name = domain name\user name;
copying the script of the restarting server to the host;
establishing network connection between a host and a cluster server, and judging whether the network is connected;
copying the script of the restarting server to the cluster server;
checking whether the local manager group has the domain user name, recording a log to a host, checking whether the local manager group has the cluster server user name if the local manager group has the domain user name, recording the log to the host, calling a script of a restarting server to execute restarting operation on the cluster server if the local manager group has the cluster server user name,
in the process of executing the restarted batch script, for the server which is down, the CPU is subjected to frequency reduction processing after restarting, whether the phenomenon of down exists is further monitored, if the CPU frequency is continuously increased to 100% after restarting, the situation that the load is too high to cause the down is judged, the host controls to start the standby server, continuously observes the CPU frequency, and if the CPU frequency is not continuously increased to 100% after restarting, the problem of down is judged to be solved, and the starting quantity of the current server is maintained.
2. The batch restart windows system method of claim 1, wherein the network connection is disconnected prior to verifying whether there are domain usernames and cluster server usernames in the local administrator group.
3. The batch restart windows system method of claim 1, wherein the determining of whether the local administrator group has a domain user name is performed by searching the administtra names in the administtra names by a findstr-I-x command, and the determining of whether the local administrator group has a cluster server user name is performed by searching the administtra names in the administtra names by a findstr-I-x command.
4. The method for restarting windows system in batch according to claim 3, wherein the method is characterized in that the method is judged by setting a variable d, the fact that the character string same as the domain user name is searched in the administtra s. Txt is judged by findstr-I-x "% Q%" "C \PsExe \log \1_administtra s. Txt", if the character string same as the domain user name is searched, d+1 is found, and whether the domain user name is in a local administrator group is judged by d being equal to 1 is judged, if d is equal to 1, the fact that the character string matched with the domain user name is not found is indicated, the fact that the domain user name is not in administers. Txt is not executed is indicated, the date, time, user name and IP of a server are output to the log, and otherwise, the fact that the domain user name is in the local administrator group is indicated.
5. The method for restarting windows system in batch according to claim 3, wherein the method is characterized in that a variable e is set to judge whether the domain user name is in a local manager group, if e is equal to 1, the method indicates that the character string matched with the cluster server user name is not found, the method does not execute a restart command, and the date, time, user name and IP of a server are output in a log, if e is equal to 1, the method is characterized in that the character string same as the cluster server user name is searched in the administ by setting the variable e, if e is equal to 1, the method indicates that the character string matched with the cluster server user name is not found, and if e is equal to 1, the method indicates that the cluster server user name is not in administ, and the method does not execute a restart command, and the date, the user name and IP of the server are output in the log, otherwise, the method indicates that the cluster server user name is in the local manager group.
6. A batch restart windows system method according to claim 3, wherein copying the script of the restart server into the host is performed using psexec.exe in a PsTools to execute batch commands for copying files on the host or cluster server.
7. An electronic device, comprising: the system comprises a memory and a processor, wherein a batch restarting windows system program is stored in the memory, and the batch restarting windows system program realizes the batch restarting windows system method according to any one of claims 1-6 when the batch restarting windows system program is executed by the processor.
8. The electronic device of claim 7, wherein the electronic device comprises a plurality of electronic devices,
the network connection is disconnected before checking whether the domain user name and the cluster server user name exist in the local administrator group.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, implement the batch restart windows system method according to any one of claims 1-6.
CN201910290126.XA 2019-04-11 2019-04-11 Batch restarting windows system method, electronic device and storage medium Active CN110134546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290126.XA CN110134546B (en) 2019-04-11 2019-04-11 Batch restarting windows system method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290126.XA CN110134546B (en) 2019-04-11 2019-04-11 Batch restarting windows system method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110134546A CN110134546A (en) 2019-08-16
CN110134546B true CN110134546B (en) 2023-10-20

Family

ID=67569677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290126.XA Active CN110134546B (en) 2019-04-11 2019-04-11 Batch restarting windows system method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110134546B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955457A (en) * 2019-10-11 2020-04-03 广西电网有限责任公司信息中心 Batch automatic operation and maintenance management method for operating systems
CN113422879A (en) * 2020-03-03 2021-09-21 富士施乐实业发展(中国)有限公司 Multifunction apparatus, control method thereof, user terminal, and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Test method for remote control server cold reboot
CN105162623A (en) * 2015-08-12 2015-12-16 深圳市瑞驰信息技术有限公司 Cloud processing method and cloud server
WO2017124799A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Firmware management method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8250577B2 (en) * 2008-04-16 2012-08-21 International Business Machines Corporation Mechanism to enable and ensure failover integrity and high availability of batch processing
CN105487943A (en) * 2015-12-09 2016-04-13 浪潮电子信息产业股份有限公司 Method for automatically copying files to each node of cluster server
CN106789362B (en) * 2017-02-20 2020-04-14 京信通信系统(中国)有限公司 Equipment management method and network management system
CN107895107A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of batch setting BMC username and passwords
CN108196982B (en) * 2017-12-29 2021-12-07 北京诺君安信息技术股份有限公司 Configuration method for automatic restart service of LINUX system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Test method for remote control server cold reboot
CN105162623A (en) * 2015-08-12 2015-12-16 深圳市瑞驰信息技术有限公司 Cloud processing method and cloud server
WO2017124799A1 (en) * 2016-01-18 2017-07-27 中兴通讯股份有限公司 Firmware management method and device

Also Published As

Publication number Publication date
CN110134546A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
US8863109B2 (en) Updating secure pre-boot firmware in a computing system in real-time
US20150358392A1 (en) Method and system of virtual desktop infrastructure deployment studio
US7721153B2 (en) System, method and program product for recovering from a failure
EP2472402A1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
US11030303B2 (en) Time limited application enablement
CN109388569B (en) Method for remotely detecting environmental anomaly of client, test server and storage medium
US20140122931A1 (en) Performing diagnostic tests in a data center
US11126729B2 (en) System and method of ensuring secure changing of system configurations
US10824488B2 (en) Device detection method and system, electronic device, cloud robot system, and computer program product
WO2021057795A1 (en) System starting method and apparatus, node device and computer-readable storage medium
CN110134546B (en) Batch restarting windows system method, electronic device and storage medium
JP6282217B2 (en) Anti-malware system and anti-malware method
US10223092B2 (en) Capturing and deploying applications using maximal and minimal sets
CN111399862A (en) Batch installation method and device of Windows missing driver and computer equipment
CN114184885A (en) Fault detection method, device and storage medium
US10761940B2 (en) Method, device and program product for reducing data recovery time of storage system
CN114880157B (en) Fault injection method and device
CN105824622A (en) Data processing method and electronic equipment
US20210334153A1 (en) Remote error detection method adapted for a remote computer device to detect errors that occur in a service computer device
CN114153503A (en) BIOS control method, device and medium
CN111464594A (en) Http interface connection method, apparatus and storage medium
CN114222972A (en) Application presence monitoring and reinstallation
CN105320853B (en) Information monitoring method and device and terminal
US12001285B2 (en) System booting method and apparatus, node device, and computer-readable storage medium
EP3441901B1 (en) System and method of ensuring secure changing of system configurations

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
GR01 Patent grant
GR01 Patent grant