CN112256540A - Server inspection method and device - Google Patents

Server inspection method and device Download PDF

Info

Publication number
CN112256540A
CN112256540A CN202011076689.8A CN202011076689A CN112256540A CN 112256540 A CN112256540 A CN 112256540A CN 202011076689 A CN202011076689 A CN 202011076689A CN 112256540 A CN112256540 A CN 112256540A
Authority
CN
China
Prior art keywords
server
checked
host
address
inspection
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.)
Withdrawn
Application number
CN202011076689.8A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011076689.8A priority Critical patent/CN112256540A/en
Publication of CN112256540A publication Critical patent/CN112256540A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a server inspection method and a device, wherein a host is connected with a plurality of servers to be inspected through network cables; the host acquires the IP address of each server to be checked; the host sends a test script to a corresponding server to be tested according to the IP address; each server to be checked is checked according to the corresponding checking script, and the checking result is sent to the host; and the host displays the inspection result of each server to be inspected. The invention is connected with a plurality of servers by one host, controls the inspection of the plurality of servers, reduces the manpower input, greatly reduces the inspection time, improves the efficiency and improves the productivity.

Description

Server inspection method and device
Technical Field
The invention relates to the field of server inspection, in particular to a server inspection method and device.
Background
With the increase of the production quantity of the servers, the inspection process after the server test is completed becomes a bottleneck of the production capacity. At present, the server is tested independently, staff are required to test whether the testing performance of each server reaches the standard or not one by one, the time consumption is long, the efficiency is low, and the collection of related testing logs and asset information is inconvenient.
Disclosure of Invention
In order to solve the above problems, the present invention provides a server inspection method and apparatus, which can realize the inspection of multiple servers simultaneously by one host, thereby providing the inspection efficiency.
The technical scheme of the invention is as follows: a server verification method, comprising the steps of:
the host is connected with a plurality of servers to be checked through network cables;
the host acquires the IP address of each server to be checked;
the host sends a test script to a corresponding server to be tested according to the IP address;
each server to be checked is checked according to the corresponding checking script, and the checking result is sent to the host;
and the host displays the inspection result of each server to be inspected.
Further, the host computer obtains the IP address of each server to be checked from the database through the corresponding local area network address and the machine serial number.
Further, the host computer displays the inspection results of all the servers to be inspected in one screen area.
Furthermore, the screen area comprises a plurality of display areas, and one display area corresponds to one server to be checked;
when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
Further, the method comprises the following steps:
the host sends a log collection script to the corresponding server to be checked according to the IP address and collects the check log of the corresponding server to be checked;
and judging whether the test fails by judging whether the test log has failure characters.
Further, the method comprises the following steps:
if the server to be checked fails in checking, sending an information collection script to the server to be checked, collecting configuration information and asset information of the server to be checked, and generating a document by using the collected information and transmitting the document to a database;
and if the server to be checked is qualified, sending an information collection script to the server to be checked after the server to be checked is checked.
Further, the method comprises the following steps:
and if the server to be checked fails in checking, sending error information through a mail after the configuration information and the asset information are collected.
Further, the error reporting information sent by the mail includes configuration information, asset information, model, machine serial number and IP address corresponding to the server to be checked.
The technical scheme of the invention also comprises a server checking device which is configured on the host and comprises:
an IP address acquisition module: acquiring the IP address of each server to be checked;
the test script sending module: sending a detection script to a corresponding server to be detected according to the IP address;
the inspection result receiving module: the result is the inspection result of each server to be inspected;
the inspection result display module: and displaying the inspection result of each server to be inspected.
Furthermore, the inspection result display module displays the inspection results of all the servers to be inspected in a screen area;
the screen area comprises a plurality of display areas, and one display area corresponds to one server to be checked;
when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
According to the server inspection method and device provided by the invention, the host is connected with the servers, so that the inspection of the servers is controlled, the labor input is reduced, the inspection time is greatly reduced, the efficiency is improved, and the productivity is improved. Further to relevant data information automatic collection, categorised depositing, the inquiry and the derivation of being convenient for, information automatic propelling movement, and the later stage is according to the expandable relevant demand of demand, promotes automation, intellectuality.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a second structure according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
Example one
As shown in fig. 1, the present embodiment provides a server checking method, including the following steps:
s1, connecting the host with a plurality of servers to be checked through network cables;
s2, the host acquires the IP address of each server to be checked;
s3, the host sends a test script to the corresponding server to be tested according to the IP address;
s4, each server to be checked is checked according to the corresponding checking script, and the checking result is sent to the host;
and S5, the host displays the inspection result of each server to be inspected.
It should be noted that, in an assembly link, an MES system (a set of production information management system oriented to a manufacturing enterprise workshop execution layer) may enter a machine SN (machine serial number) and a MAC (Media Access Control local area network Address) of a corresponding motherboard and store the machine SN and the MAC into a database, after the standby device is aged, the standby device is moved to a test area and powered on and accesses to a network, and a host obtains an IP of the machine through the corresponding MAC and SN in the database in the background, and calls an automatic login script to log in each machine through the IP.
In this embodiment, the status of each server is displayed in the form of multiple pictures on the screen of the host, that is, the host displays the inspection results of all servers to be inspected in one screen area. Specifically, the screen area comprises a plurality of display areas, and one display area corresponds to one server to be checked; when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
In order to know whether the server is qualified, in step S3, the present embodiment further sends a log collection script to the corresponding server to be checked according to the IP address, and collects a check log corresponding to the server to be checked. The host machine judges whether the check fails or not by judging whether a failure character exists in the check log or not, if the failure character exists, the check fails, and if the failure character is not detected until the check is finished, the check is qualified.
Preferably, the present embodiment collects the related information by:
if the server to be checked fails in checking, sending an information collection script to the server to be checked, collecting configuration information and asset information of the server to be checked, and generating a document by using the collected information and transmitting the document to a database;
and if the server to be checked is qualified, sending an information collection script to the server to be checked after the server to be checked is checked.
When the inspection fails, the relevant information is immediately collected, and when the inspection is qualified, the relevant information is collected after the inspection is finished. The collected information is sent to a database for storage, and the database stores the information in a classified manner, so that the information can be conveniently inquired and exported.
In this embodiment, when the server to be verified fails to be verified, after the configuration information and the asset information are collected, an error message is sent by a mail. And the server to be checked fails to check, and sends error reporting information through a mail after the configuration information and the asset information are collected. And the maintenance personnel are notified immediately, so that the maintenance personnel can conveniently and quickly position the machine to report error information.
In addition, the host computer can export the related logs or asset information of a plurality of or a single server from the database according to the requirement through the export command.
Example two
As shown in fig. 2, in an embodiment, the present embodiment provides a server checking apparatus configured on a host, including the following functional modules.
The IP address acquisition module 101: acquiring the IP address of each server to be checked;
the verification script sending module 102: sending a detection script to a corresponding server to be detected according to the IP address;
the inspection result receiving module 103: the result is the inspection result of each server to be inspected;
the inspection result display module 104: and displaying the inspection result of each server to be inspected.
Wherein, the inspection result display module 104 displays the inspection results of all servers to be inspected in one screen area; the screen area comprises a plurality of display areas, and one display area corresponds to one server to be checked; when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A server checking method, comprising the steps of:
the host is connected with a plurality of servers to be checked through network cables;
the host acquires the IP address of each server to be checked;
the host sends a test script to a corresponding server to be tested according to the IP address;
each server to be checked is checked according to the corresponding checking script, and the checking result is sent to the host;
and the host displays the inspection result of each server to be inspected.
2. The server inspection method according to claim 1, wherein the host computer obtains the IP address of each server to be inspected from the database through the corresponding local area network address and the machine serial number.
3. The server checking method according to claim 1 or 2, wherein the host displays the checking results of all the servers to be checked in one screen area.
4. The server inspection method according to claim 3, wherein the screen area includes a plurality of display areas, one display area corresponding to each server to be inspected;
when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
5. The server checking method according to claim 4, wherein the method further comprises the steps of:
the host sends a log collection script to the corresponding server to be checked according to the IP address and collects the check log of the corresponding server to be checked;
and judging whether the test fails by judging whether the test log has failure characters.
6. The server checking method according to claim 5, further comprising the steps of:
if the server to be checked fails in checking, sending an information collection script to the server to be checked, collecting configuration information and asset information of the server to be checked, and generating a document by using the collected information and transmitting the document to a database;
and if the server to be checked is qualified, sending an information collection script to the server to be checked after the server to be checked is checked.
7. The server checking method according to claim 6, further comprising the steps of:
and if the server to be checked fails in checking, sending error information through a mail after the configuration information and the asset information are collected.
8. The server inspection method according to claim 7, wherein the error information sent by the mail includes configuration information, asset information, model, machine serial number, and IP address corresponding to the server to be inspected.
9. A server verifying apparatus, configured to a host, comprising:
an IP address acquisition module: acquiring the IP address of each server to be checked;
the test script sending module: sending a detection script to a corresponding server to be detected according to the IP address;
the inspection result receiving module: the result is the inspection result of each server to be inspected;
the inspection result display module: and displaying the inspection result of each server to be inspected.
10. The server inspection apparatus according to claim 9, wherein the inspection result display module displays the inspection results of all the servers to be inspected in one screen area;
the screen area comprises a plurality of display areas, and one display area corresponds to one server to be checked;
when a certain server to be checked is qualified, the corresponding display area is displayed in green, and when the server to be checked is wrong, the corresponding display area is displayed in red.
CN202011076689.8A 2020-10-10 2020-10-10 Server inspection method and device Withdrawn CN112256540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011076689.8A CN112256540A (en) 2020-10-10 2020-10-10 Server inspection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011076689.8A CN112256540A (en) 2020-10-10 2020-10-10 Server inspection method and device

Publications (1)

Publication Number Publication Date
CN112256540A true CN112256540A (en) 2021-01-22

Family

ID=74242560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011076689.8A Withdrawn CN112256540A (en) 2020-10-10 2020-10-10 Server inspection method and device

Country Status (1)

Country Link
CN (1) CN112256540A (en)

Similar Documents

Publication Publication Date Title
US9219644B2 (en) Automated configuration of new racks and other computing assets in a data center
CN100536403C (en) Method and equipment of intelligent patrol detection for communication network
CN109361562B (en) Automatic testing method based on associated network equipment access
US7664986B2 (en) System and method for determining fault isolation in an enterprise computing system
CN107332765B (en) Method and apparatus for repairing router failures
CN107577545A (en) A kind of failed disk detection and restorative procedure and device
CN103197640A (en) Intelligent management and control system and method of manufacturing technique
CN108984332A (en) A kind of device and method of location-server delay machine failure
CN101442448B (en) Test system and method for knife blade server
CN101149780B (en) System and method for automatic measurement for radio frequency identification service system
CN107193730A (en) A kind of interface test method of automation
CN115615732A (en) Quality detector abnormal state monitoring method and system
CN114429256A (en) Data monitoring method and device, electronic equipment and storage medium
CN112203251A (en) TBOX automatic testing method and device realized by using cascade mode
CN109933533B (en) Visual data testing method, device and equipment and readable storage medium
CN105681070A (en) Method and system for automatically collecting and analyzing computer cluster node information
CN112256540A (en) Server inspection method and device
CN111176950A (en) Method and equipment for monitoring network card of server cluster
CN109272674A (en) A kind of self-service device malfunction elimination system for supporting to use under offline and on-line environment
CN115238923A (en) Equipment management system
CN113986586A (en) Switch accompanying equipment health degree management system and management method
CN1735047A (en) Fault self-diagnosis method and device
CN111597068A (en) IT operation and maintenance management method and IT operation and maintenance management device
CN111082987A (en) Ubiquitous power Internet of things-oriented distribution network operation and maintenance system and method
CN106992873B (en) Protection group processing method and device

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210122

WW01 Invention patent application withdrawn after publication