CN111858308A - Method, system, terminal and storage medium for acquiring test data of diskless system - Google Patents

Method, system, terminal and storage medium for acquiring test data of diskless system Download PDF

Info

Publication number
CN111858308A
CN111858308A CN202010567102.7A CN202010567102A CN111858308A CN 111858308 A CN111858308 A CN 111858308A CN 202010567102 A CN202010567102 A CN 202010567102A CN 111858308 A CN111858308 A CN 111858308A
Authority
CN
China
Prior art keywords
test
data
management server
tester
directory
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
CN202010567102.7A
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 CN202010567102.7A priority Critical patent/CN111858308A/en
Publication of CN111858308A publication Critical patent/CN111858308A/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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a system, a terminal and a storage medium for acquiring test data of a diskless system, comprising the following steps: the management server and all the diskless system test machines are accessed to the same local area network; mounting a file system total directory of a management server to each test machine; and synchronously updating and storing the test data of each tester to the management server through the general directory. The invention can realize the real-time acquisition of the test data of the batch diskless system tester, improves the data acquisition efficiency, is convenient for problem location and repair of the tester and ensures the stability of the system and the server.

Description

Method, system, terminal and storage medium for acquiring test data of diskless system
Technical Field
The invention relates to the technical field of server testing, in particular to a method, a system, a terminal and a storage medium for acquiring test data of a diskless system.
Background
In the current server technology field, the use of diskless systems is becoming more and more common, especially in the areas of development, testing, production, etc. When a diskless system is tested, log storage and storage are basically performed in a mode of connecting a notebook computer and a server through a serial port line, the test data acquisition method is easy to occupy a large amount of manpower investment, partial data under the system cannot be acquired, and one serial port line and one notebook computer can only acquire data of one machine, so that the resource occupation is large. The diskless system is convenient to use, simple and easy to operate, the space of a hard disk is reduced to a great extent, the diskless system is easy to maintain, the situation that some data are not easy to store exists, due to the characteristics of the diskless system, after the system is restarted, all settings and data are restored to an initial state, problems occurring in the testing or using process, particularly in a downtime state, no data log is stored, the test data can be lost, and problem positioning and repairing are not facilitated. And after the diskless system is restarted, all data are emptied, so the remote log acquisition method commonly used by the diskless system is not suitable for data acquisition of the diskless system because the data synchronization level cannot be achieved.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for obtaining test data of a diskless system, so as to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for acquiring test data of a diskless system, including:
the management server and all the diskless system test machines are accessed to the same local area network;
mounting a file system total directory of a management server to each test machine;
and synchronously updating and storing the test data of each tester to the management server through the general directory.
Further, the mounting the total directory of the file system of the management server to each tester includes:
and mounting the total directory of the network file system of the management server to each test machine by using a mount command.
Further, the synchronously updating and storing the test data of each tester to the management server through the general directory includes:
marking the test data of each tester for generation time;
and regularly grabbing a test log of the test machine by using a local script of the test machine, and uploading the test log to a path corresponding to the test machine in a general directory.
Further, the method further comprises:
The management server screens the stored test data through keywords to screen abnormal data;
and outputting the abnormal data and outputting the serial number of the tester to which the abnormal data belongs.
In a second aspect, the present invention provides a test data acquisition system for a diskless system, comprising:
the network setting unit is configured to access the management server and all the diskless system test machines into the same local area network;
the directory mounting unit is configured to mount a total directory of the file system of the management server to each test machine;
and the data synchronization unit is configured to synchronously update and store the test data of each tester to the management server through the general directory.
Further, the directory mount unit includes:
and the mounting module is configured to mount the total directory of the network file system of the management server to each test machine by using the mount command.
Further, the data synchronization unit includes:
the data marking module is configured to mark the test data of each tester for generating time;
and the data uploading module is configured to periodically capture a test log of the test machine by using a local script of the test machine and upload the test log to a path corresponding to the test machine in the general directory.
Further, the system further comprises:
the abnormal screening unit is configured for screening the stored test data to obtain abnormal data through keyword screening by the management server;
and the exception output unit is configured to output the exception data and output a tester serial number to which the exception data belongs.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the method, the system, the terminal and the storage medium for acquiring the test data of the diskless system, provided by the invention, the data synchronization of the tester and the management server is realized by mounting the total directory of the file system of the management server to each diskless system tester. The invention can realize the real-time acquisition of the test data of the batch diskless system tester, improves the data acquisition efficiency, is convenient for problem location and repair of the tester and ensures the stability of the system and the server.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a diskless system test data acquisition system.
As shown in fig. 1, the method 100 includes:
step 110, connecting the management server and all the diskless system test machines into the same local area network;
step 120, mounting a total directory of the file system of the management server to each test machine;
step 130, synchronously updating and storing the test data of each tester to the management server through the total directory.
In order to facilitate understanding of the present invention, the principle of the method for acquiring test data of a diskless system according to the present invention is further described below with reference to the process of acquiring test data of a diskless system in the embodiment.
Specifically, the method for acquiring test data of the diskless system includes:
and S1, connecting the management server and all the diskless system test machines to the same local area network.
And (3) accessing each test machine and the management server into the same switch, and automatically allocating ip addresses, subnet masks, broadcast addresses and the like to enable the test machines and the management server to be in the same network domain.
And configuring an OS system, a kernel and a mac boot file under a management server, connecting each testing machine to the management server through PXE boot, and entering a corresponding system according to the configuration file.
S2, mount the total file system directory of the management server to each tester.
And respectively adding a starting self-starting program into each tester, wherein the Linux is/etc/rc. The testing machine automatically enters an operating system after being started or restarted, automatically or manually runs a testing program, and simulates the actual use scene of a user.
The network file system nfs is configured at the management server (the network file system is a network abstraction over the file system to allow a remote client to access through a network in a manner similar to a local file system), and the network file system nfs is mounted to each tester by using mount commands, and a specific mounting method is the prior art and is not described in detail herein.
And S3, synchronously updating and storing the test data of each test machine to the management server through the total directory.
And compiling a script getlog.sh for acquiring the test data, and sending the script getlog.sh to each test machine. And (4) naming the test machine log by using a date suffix, and uploading the test machine log to a path corresponding to the test machine serial number in a total directory mounted by the test machine regularly. And synchronously updating the log uploaded to the total directory to a management server, and storing the updated server by the management server.
The script getlog.sh can regularly acquire the basic information of key components such as a hard disk, a memory, a CPU and the like and the system log of the tester, and the specific content of the script getlog.sh is as follows:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
#For details see man 4crontabs
#Example of job definition:
#.----------------minute(0-59)
#|.-------------hour(0-23)
#||.----------day of month(1-31)
#|||.-------month(1-12)OR jan,feb,mar,apr...
#||||.----day of week(0-6)(Sunday=0or 7)OR sun,mon,tue,wed,thu,fri,sat
#*****user-name command to be executed
*****root/getlog.sh
and the management server performs exception screening on all the test data stored locally, and screens the critical fields such as fail, error and the like. If the fields of fail, error and the like exist in the test data, putting the test data into a fail folder so as to be used for analysis; if the log is normal, the log can be directly and iteratively classified or deleted, and the storage space is saved. When the tester is down, the problem can be positioned according to the log on the total server; and comparing and analyzing a plurality of test results.
As shown in fig. 2, the system 200 includes:
a network setting unit 210 configured to access the management server and all the diskless system testers to the same local area network;
a directory mount unit 220 configured to mount a total directory of the file system of the management server to each tester;
and a data synchronization unit 230 configured to update and store the test data of each tester to the management server synchronously through the total directory.
Optionally, as an embodiment of the present invention, the directory mount unit includes:
And the mounting module is configured to mount the total directory of the network file system of the management server to each test machine by using the mount command.
Optionally, as an embodiment of the present invention, the data synchronization unit includes:
the data marking module is configured to mark the test data of each tester for generating time;
and the data uploading module is configured to periodically capture a test log of the test machine by using a local script of the test machine and upload the test log to a path corresponding to the test machine in the general directory.
Optionally, as an embodiment of the present invention, the system further includes:
the abnormal screening unit is configured for screening the stored test data to obtain abnormal data through keyword screening by the management server;
and the exception output unit is configured to output the exception data and output a tester serial number to which the exception data belongs.
Fig. 3 is a schematic structural diagram of a terminal system 300 according to an embodiment of the present invention, where the terminal system 300 may be used to execute the method for acquiring test data of a diskless system according to the embodiment of the present invention.
The terminal system 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention realizes the data synchronization of the tester and the management server by mounting the file system total directory of the management server to each diskless system tester. The invention can realize real-time acquisition of test data of the batch diskless system tester, improves the data acquisition efficiency, is convenient for problem location and repair of the tester, and ensures the stability of the system and the server.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A diskless system test data acquisition method, comprising:
the management server and all the diskless system test machines are accessed to the same local area network;
mounting a file system total directory of a management server to each test machine;
and synchronously updating and storing the test data of each tester to the management server through the general directory.
2. The method of claim 1, wherein mounting the total directory of the file system of the management server to each tester comprises:
and mounting the total directory of the network file system of the management server to each test machine by using a mount command.
3. The method of claim 1, wherein the step of synchronously updating and saving the test data of each tester to the management server through the general directory comprises:
marking the test data of each tester for generation time;
and regularly grabbing a test log of the test machine by using a local script of the test machine, and uploading the test log to a path corresponding to the test machine in a general directory.
4. The method of claim 1, further comprising:
the management server screens the stored test data through keywords to screen abnormal data;
and outputting the abnormal data and outputting the serial number of the tester to which the abnormal data belongs.
5. A diskless system test data acquisition system, comprising:
the network setting unit is configured to access the management server and all the diskless system test machines into the same local area network;
The directory mounting unit is configured to mount a total directory of the file system of the management server to each test machine;
and the data synchronization unit is configured to synchronously update and store the test data of each tester to the management server through the general directory.
6. The system of claim 5, wherein the directory mount unit comprises:
and the mounting module is configured to mount the total directory of the network file system of the management server to each test machine by using the mount command.
7. The system of claim 5, wherein the data synchronization unit comprises:
the data marking module is configured to mark the test data of each tester for generating time;
and the data uploading module is configured to periodically capture a test log of the test machine by using a local script of the test machine and upload the test log to a path corresponding to the test machine in the general directory.
8. The system of claim 5, further comprising:
the abnormal screening unit is configured for screening the stored test data to obtain abnormal data through keyword screening by the management server;
and the exception output unit is configured to output the exception data and output a tester serial number to which the exception data belongs.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202010567102.7A 2020-06-19 2020-06-19 Method, system, terminal and storage medium for acquiring test data of diskless system Withdrawn CN111858308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010567102.7A CN111858308A (en) 2020-06-19 2020-06-19 Method, system, terminal and storage medium for acquiring test data of diskless system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010567102.7A CN111858308A (en) 2020-06-19 2020-06-19 Method, system, terminal and storage medium for acquiring test data of diskless system

Publications (1)

Publication Number Publication Date
CN111858308A true CN111858308A (en) 2020-10-30

Family

ID=72987024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010567102.7A Withdrawn CN111858308A (en) 2020-06-19 2020-06-19 Method, system, terminal and storage medium for acquiring test data of diskless system

Country Status (1)

Country Link
CN (1) CN111858308A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254032A (en) * 2021-05-07 2021-08-13 杭州广立微电子股份有限公司 Probe card record file updating module, system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254032A (en) * 2021-05-07 2021-08-13 杭州广立微电子股份有限公司 Probe card record file updating module, system and method

Similar Documents

Publication Publication Date Title
US6167358A (en) System and method for remotely monitoring a plurality of computer-based systems
CN110554938B (en) BIOS (basic input output System) testing method, system, terminal and storage medium based on script set
CN109783117A (en) Mirror image file making and starting method of diskless system
CN111669284B (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN111352700A (en) Method, system, terminal and storage medium for online migration of virtual machine across clouds
CN113608940B (en) Production test method, system and device of intelligent network card and readable storage medium
CN109257249A (en) A kind of network interface card stability test method, apparatus, terminal and storage medium
CN114866515A (en) IP address configuration method, device, electronic equipment and storage medium
CN111858308A (en) Method, system, terminal and storage medium for acquiring test data of diskless system
CN111262753A (en) Method, system, terminal and storage medium for automatically configuring number of NUMA nodes
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN110554992B (en) Distributed metadata path management method, system, terminal and storage medium
CN109558300B (en) Whole cabinet alarm processing method and device, terminal and storage medium
CN110543394A (en) server sensor information consistency testing method, system, terminal and storage medium
CN114860271A (en) PXE starting method, system and device and readable storage medium
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN113904926A (en) Pre-boot execution environment checking method, system, terminal and storage medium
CN111143193B (en) Big data service testing method, system, terminal and storage medium based on RobotFramework
CN109450682B (en) IB network card communication configuration method and device, terminal and storage medium
CN109783031B (en) Method, device, terminal and storage medium for checking drive letter and slot number of RAID card
CN113204355A (en) Method, system, terminal and storage medium for pre-installing software of domestic system
CN114448788A (en) Installation method, system, equipment and medium of switch system
CN114564213A (en) Pre-installed software deployment method, system, terminal and storage medium
CN113220353B (en) Hard disk startup item sorting method, system, terminal 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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201030

WW01 Invention patent application withdrawn after publication