CN110716902A - Detection method of in-domain online computer - Google Patents

Detection method of in-domain online computer Download PDF

Info

Publication number
CN110716902A
CN110716902A CN201910952751.6A CN201910952751A CN110716902A CN 110716902 A CN110716902 A CN 110716902A CN 201910952751 A CN201910952751 A CN 201910952751A CN 110716902 A CN110716902 A CN 110716902A
Authority
CN
China
Prior art keywords
script
computer
computers
ping
date
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
Application number
CN201910952751.6A
Other languages
Chinese (zh)
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.)
CSSC Marine Power Co Ltd
Original Assignee
CSSC Marine Power 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 CSSC Marine Power Co Ltd filed Critical CSSC Marine Power Co Ltd
Priority to CN201910952751.6A priority Critical patent/CN110716902A/en
Publication of CN110716902A publication Critical patent/CN110716902A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a detection method of an in-domain online computer, which automatically calls a compiled script, scans the script at a specific time, automatically outputs a scanning result to a text document taking the current date as a file name, and can be positioned to a computer without closing the computer or cutting off a power supply only by searching the text file of the relevant date when carrying out spot check on the computer, thereby saving the electric energy cost and reducing the fire risk.

Description

Detection method of in-domain online computer
Technical Field
The invention relates to a detection method of an in-domain online computer, belonging to the technical field of electronic information.
Background
With regard to the use of computers, for a long time, the potential safety hazard and the waste of electric power caused by the fact that the computer is not shut down and not cut off a power supply during non-working time are very many because of various reasons, and the computer is subjected to economic loss in light and electrical fire in heavy cases. In a general company internal local area network, except for a server and network equipment, all terminal equipment needs to be normally turned off and power is cut off during non-working time, and how to automatically find out computers in the domain which cannot be normally turned off under the condition of no operation is a technical problem, and how to effectively and accurately find out the computers is the most main purpose of the invention.
Disclosure of Invention
The invention aims to provide a detection method of an in-domain online computer, which utilizes an execution script made by a DOS command to automatically search a computer without a power supply cut off by the computer in non-working time, realizes the positioning and searching of the computer without the power supply cut off, saves electric energy and reduces the fire risk.
The purpose of the invention is realized by the following technical scheme:
a method of detecting an inline computer, comprising the steps of:
1. counting and deriving the number of computers actually used in the domain control and the IP addresses of all the computers, and making a scanning list;
2. editing an A script according to the format of the DOS script command, and carrying out Ping test on the computers in the scanning list, wherein the Ping command is used by the script for carrying out online state test;
3. editing the script B, automatically calling the script A by the script B, and outputting a Ping result of the script A to a text document taking the current date as a file name;
4. adding the B script into a task plan of Windows Server main domain control, and calling the B script regularly to execute a scanning task;
5. collecting text files of each date needing to be checked, retrieving the text files of the corresponding date file names, importing the text files into excel for checking, and searching for 'Reply from' character strings to find a computer with a power supply not being turned off in the result;
6. the statistics flag does not turn off the power computer IP address.
The object of the invention can be further achieved by the following technical measures:
in the detection method of the in-domain online computer, step 6 uses the replacement function of the Excle software to position and mark the IP address of the computer with the power supply not being turned off.
Compared with the prior art, the invention has the beneficial effects that: under the condition of unmanned operation, the method and the system automatically find out the computers in the domain which cannot be normally closed, realize the positioning and the finding of the computers without switching off the power supply, save electric energy and reduce the fire risk.
Drawings
FIG. 1 is a flow chart of a method for detecting an inline computer in the field of the present invention;
FIG. 2 is a screenshot of a result of deriving the IP address and information of a computer to be checked according to the embodiment;
FIG. 3 is a diagram illustrating an embodiment of editing a script screenshot according to a DOS script command format;
FIG. 4 is a block diagram of an embodiment editing a script B to automatically select a text file with a current date as the filename;
FIG. 5 illustrates a file with a date as a filename generated by an embodiment;
FIG. 6 is a flowchart of the embodiment B in which a script is added to a domain control task plan and scanning is run at regular time;
FIG. 7 is an embodiment gather file and import into EXCEL file;
FIG. 8 is a screenshot of an embodiment statistical marking result.
Detailed Description
The invention is further described with reference to the following figures and specific examples.
With the progress of computer software and hardware, the software and hardware are frequently updated, which causes the abnormal shutdown of the computer to summarize the following conditions:
1. software and hardware factors: when the computer is shut down, the computer cannot be shut down due to software and hardware reasons or the computer is restarted due to certain software and hardware reasons.
2. Human factors: because work needs to be done, a computer user does not shut down the computer at night and works.
In order to solve the above problems, the present invention provides a method for detecting an in-domain online computer, as shown in fig. 1, including the following steps:
1. counting and deriving the number of computers actually used in the domain control and the IP addresses of all the computers, and making a scanning list: for example, the corresponding data can be exported by using an electronic account system commonly used by companies, and in principle, any management software can be used as long as the requirement on the information of the computer and the IP address is met; fig. 2 is a screenshot of an EXCEL file representing information such as a computer IP address in an export management ledger according to an embodiment.
2. Editing an A script according to the format of a DOS script command, performing Ping test on a computer in a scanning list, wherein the script performs online state test by using a Ping command carried by Microsoft when the computer acts as one command, and the A script only performs online state test according to the scanning list; as shown in fig. 3:
editing the A script to conform to the format of the DOS script command, such as: examining a computer with an IP address of 200.200.50.18, the script would need to enter:
ping_200.200.50.18
each computer has an exclusive line in the script, and if a plurality of computers exist, the script needs to be input:
ping_200.200.50.19
ping_200.200.50.20
ping_200.200.50.21
in an embodiment, "_" in the script command represents a space.
3. Editing the script B, automatically calling the script A by the script B, and outputting a Ping result of the script A to a text document taking the current date as a file name; as shown in fig. 4: the script B is responsible for calling the script A, and as shown in FIG. 5, the script A is a text file with the current date as the file name automatically.
4. And adding the B script into a task plan of the Windows Server main domain control, calling the B script regularly to execute a scanning task, and calling the A script regularly through the B script. As shown in fig. 6: the automatic starting time is 1 point every morning when the system is added into a set task plan of a Windows Server operating system.
5. Collecting text files of each date needing to be checked, retrieving the text files of the corresponding date file names, importing the text files into excel for checking, and searching for 'Reply from' character strings to find a computer with a power supply not being turned off in the result; as shown in fig. 7: collecting the date text files needing to be checked, importing the TXT documents by using an EXCEL import function, opening an EXCEL program, and importing the text TXT documents of the selected dates by using a self-text function in a data menu.
6. Counting and marking the IP address of the computer: if the power supply is not turned off, the Ping result of the computer with the power supply normally turned off is 'Request timeoutlog', if the power supply is not turned off, the Ping result is 'Reply from 200.200.130.72: bytes =32 time <1msTTL = 127', wherein character string values such as IP addresses have different return values according to the test result, and compared with return data of the computer which is turned off and not turned off, we obtain a computer which can find the power supply which is not turned off in the result only by searching for 'Reply from' character strings in a generated text file, and the positioning method uses the replacement function of the excel software to search for 'Reply from' character strings, and inputs 'Reply from' in the searched content, and selects the format as red, and the points are all replaced, so that all the conforming items can be marked with red, and the readability is improved, as shown in FIG. 8. The computers which are not normally shut down and powered off can be found in the corresponding computer scanning list by contrasting the company electronic account system.
In addition to the above embodiments, the present invention may have other embodiments, and any technical solutions formed by equivalent substitutions or equivalent transformations fall within the scope of the claims of the present invention.

Claims (2)

1. A method for detecting an inline computer, comprising the steps of:
1) counting and deriving the number of computers actually used in the domain control and the IP addresses of all the computers, and making a scanning list;
2) editing an A script according to the format of the DOS script command, and carrying out Ping test on the computers in the scanning list, wherein the Ping command is used by the script for carrying out online state test;
3) editing the script B, automatically calling the script A by the script B, and outputting a Ping result of the script A to a text document taking the current date as a file name;
4) adding the B script into a task plan of Windows Server main domain control, and calling the B script regularly to execute a scanning task;
5) collecting text files of each date needing to be checked, retrieving the text files of the corresponding date file names, importing the text files into excel for checking, and searching for 'Reply from' character strings to find a computer with a power supply not being turned off in the result;
6) the statistics flag does not turn off the power computer IP address.
2. The method for detecting an inline computer in a domain as claimed in claim 1, wherein step 6) uses a replacement function of an exception software to locate and mark the IP address of the not-powered-off computer.
CN201910952751.6A 2019-10-09 2019-10-09 Detection method of in-domain online computer Pending CN110716902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910952751.6A CN110716902A (en) 2019-10-09 2019-10-09 Detection method of in-domain online computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910952751.6A CN110716902A (en) 2019-10-09 2019-10-09 Detection method of in-domain online computer

Publications (1)

Publication Number Publication Date
CN110716902A true CN110716902A (en) 2020-01-21

Family

ID=69212384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910952751.6A Pending CN110716902A (en) 2019-10-09 2019-10-09 Detection method of in-domain online computer

Country Status (1)

Country Link
CN (1) CN110716902A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool
CN108319535A (en) * 2017-12-25 2018-07-24 国网河北省电力有限公司衡水供电分公司 Terminal O&M auxiliary system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360922A (en) * 2014-10-20 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically monitoring BMC working state based on ipmitool
CN108319535A (en) * 2017-12-25 2018-07-24 国网河北省电力有限公司衡水供电分公司 Terminal O&M auxiliary system

Similar Documents

Publication Publication Date Title
CN103729905B (en) Graphical cruising inspection system and method for inspecting
CN105468583A (en) Entity relationship obtaining method and device
CN109669933B (en) Transaction data intelligent processing method and device and computer readable storage medium
CN112631913B (en) Method, device, equipment and storage medium for monitoring operation faults of application program
CN109088773B (en) Fault self-healing method and device, server and storage medium
CN103678109A (en) Dump document analysis method, device and system
CN108563708B (en) equipment information retrieval method and device and computer equipment
US8090994B2 (en) System, method, and computer readable media for identifying a log file record in a log file
CN110245059B (en) Data processing method, device and storage medium
CN113791943A (en) Website real-time monitoring method, system, equipment and storage medium
CN113360895A (en) Station group detection method and device and electronic equipment
CN110716902A (en) Detection method of in-domain online computer
CN102419758A (en) Data processing system and method
CN109165513B (en) System configuration information inspection method and device and server
CN111784145A (en) Service scheduling method, device, equipment and storage medium
CN115796607A (en) Acquisition terminal security portrait assessment method based on power consumption information analysis
JPH08314763A (en) Log information analyzer
CN104850484A (en) Bitmap analysis based automatic determination method for character terminal interactive state
CN111767693A (en) Information processing apparatus, information processing method, and computer-readable recording medium
CN111666569A (en) Electronic data evidence obtaining system
CN111314308A (en) System security check method and device based on port analysis
CN111858782A (en) Database construction method, device, medium and equipment based on information security
JP2009116616A (en) Electronic mail monitoring system
CN112769729B (en) Server intrusion alarm method and system
CN114844691B (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200121