CN110850207A - Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium - Google Patents
Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110850207A CN110850207A CN201911117208.0A CN201911117208A CN110850207A CN 110850207 A CN110850207 A CN 110850207A CN 201911117208 A CN201911117208 A CN 201911117208A CN 110850207 A CN110850207 A CN 110850207A
- Authority
- CN
- China
- Prior art keywords
- pdu
- test
- control
- control machine
- power
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 147
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004590 computer program Methods 0.000 claims description 13
- 238000011084 recovery Methods 0.000 claims description 3
- 238000010998 test method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The invention relates to a method, a device, computer equipment and a storage medium for automatically controlling PDU (protocol data Unit) to test, wherein the method comprises the following steps: connecting the control machine with the PDU through a wire; acquiring a test requirement, and configuring control parameters of the PDU according to the test requirement; starting a control machine, and automatically inputting login information to log in; and controlling the corresponding port on the PDU to power on and power off according to the control parameters so as to test. According to the invention, the control machine is connected with the PDU through a wire, the input test requirement is obtained, the control parameter of the PDU is configured in advance according to the test requirement, and the corresponding port on the PDU is controlled to be powered on and powered off according to the control parameter after the control is started, so that the PUD is automatically controlled to be powered on and powered off to carry out power on and power off test, an operator does not need to manually enter the required control layer in a first stage and a second stage according to the test requirement, and the PUD is controlled to be powered on and powered off to carry out power on and power off test, so that the test efficiency is improved, and meanwhile.
Description
Technical Field
The present invention relates to the field of automatic testing, and more particularly, to a method, an apparatus, a computer device and a storage medium for automatically controlling a PDU to perform a test.
Background
A PDU (Power Distribution Unit), which is a Power Distribution socket for a cabinet, is a product designed to provide Power Distribution for electrical equipment installed in the cabinet, has various series specifications of different functions, installation modes and different plug-in combinations, and can provide a suitable rack-mounted Power Distribution solution for different Power environments.
At present, when a test machine is controlled by using a PDU (protocol data unit), the PDU provides three communication modes, namely a webpage, a remote login (network cable) and a serial port, but the control modes all need to be operated by a human operator to operate a control console for several times, and an operator needs to enter a control directory of several layers when an electrifying action is realized, so that the operation efficiency is very low.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for automatically controlling a PDU (protocol data Unit) to test.
In order to achieve the purpose, the invention adopts the following technical scheme: a method for automatically controlling PDU to test includes the following steps:
connecting the control machine with the PDU through a wire;
acquiring a test requirement, and configuring control parameters of the PDU according to the test requirement;
starting a control machine, and automatically inputting login information to log in;
and controlling the corresponding port on the PDU to power on and power off according to the control parameters so as to test.
The further technical scheme is as follows: the step of connecting the control machine and the PDU through a wire comprises the following steps:
the control machine is connected with the PDU through a network cable in a wired mode, the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address; or,
and the control machine is in wired connection with the PDU through a serial port.
The further technical scheme is as follows: before the step of automatically inputting login information to log in, the starting control machine comprises:
judging whether the PDU is in an initial state;
if not, recovering the PDU to the initial state.
The further technical scheme is as follows: the step of controlling the corresponding port on the PDU to power on and power off according to the test instruction to test comprises the following steps:
and after the test is finished, logging out and recovering the PDU to the initial state.
The invention also adopts the following technical scheme: an apparatus for automatically controlling testing of PDUs, comprising:
the connection unit is used for connecting the control machine and the PDU through a wire;
the configuration unit is used for acquiring the test requirement and configuring the control parameter of the PDU according to the test requirement;
the login unit starts the controller and automatically inputs login information to log in;
and the test unit controls the corresponding port on the PDU to be powered on and powered off according to the control parameters so as to test.
The further technical scheme is as follows: the connecting unit comprises a first connecting module and a second connecting module;
the first connection module is used for connecting the control machine and the PDU through a network cable in a wired mode, the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address;
and the second connecting module is used for connecting the control machine and the PDU through a serial port in a wired manner.
The further technical scheme is as follows: the PDU is used for receiving the PDU, and the PDU is used for receiving the PDU and sending the PDU to a judging unit.
The further technical scheme is as follows: the recovery unit is used for completing the test, logging out and recovering the PDU to the initial state.
The invention also adopts the following technical scheme: a computer device comprising a memory having stored thereon a computer program and a processor that, when executed, implements a method of automatically controlling PDU testing as in any one of the above.
The invention also adopts the following technical scheme: a storage medium storing a computer program which, when executed by a processor, implements a method of automatically controlling the testing of PDUs as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, the control machine is connected with the PDU through a wire, the input test requirement is obtained, the control parameter of the PDU is configured in advance according to the test requirement, and the corresponding port on the PDU is controlled to be powered on and powered off according to the control parameter after the control is started, so that the PUD is automatically controlled to be powered on and powered off to carry out power on and power off test, an operator does not need to manually enter the required control layer in a first stage and a second stage according to the test requirement, and the PUD is controlled to be powered on and powered off to carry out power on and power off test, so that the test efficiency is improved, and meanwhile.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic application scenario diagram of a method for automatically controlling a PDU to perform a test according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for automatically controlling a PDU to perform a test according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for automatically controlling PDU testing according to another embodiment of the present invention;
FIG. 4 is a schematic block diagram of an apparatus for automatically controlling PDU testing according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a connection unit of an apparatus for automatically controlling PDU testing according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of an apparatus for automatically controlling PDU testing according to another embodiment of the present invention;
FIG. 7 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a method for automatically controlling a PDU to perform a test according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a method for automatically controlling a PDU to perform a test according to an embodiment of the present invention. The method for automatically controlling the PDU to test is applied to a controller, the controller is in wired connection with the PUD, a tester to be tested is connected to the PDU, the controller and the PUD perform data interaction, login information is automatically input by the controller to log in, and power-up and power-down are performed on a corresponding port of the control PUD, so that the tester performs automatic power-up and power-down tests.
Fig. 2 is a flowchart illustrating a method for automatically controlling a PDU to perform a test according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S140.
And S110, connecting the control machine with the PDU through a wire.
In this embodiment, a Power Distribution Unit (PDU), which is a product designed to provide Power Distribution for electrical equipment installed in a rack, is a Power Distribution Unit (Power Distribution Unit).
Before testing, the PDU is connected with a control machine through a wire, the control machine is used for running an automatic test script and sending a control instruction to the PDU so as to control a specific port of the PDU to be powered on or powered off. The connection between the PDU and the controller is established in a wired connection mode, so that the stability of data transmission between the PDU and the controller can be ensured, and the stable operation of an automatic test process is ensured.
In one embodiment, step S110 includes step S111 or S112.
And S111, connecting the control machine and the PDU through a network cable in a wired mode, wherein the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address.
In the implementation, the control machine is connected with the PDU through a network cable, the PDU and the control machine are necessarily located in the same local area network at the moment, and the IP address of the PDU is a fixed IP address, so that the stability of data transmission between the PDU and the control machine is ensured, and meanwhile, the real-time state can be checked through accessing a graphical control interface of the PDU.
And S112, connecting the control machine and the PDU through a serial port in a wired mode.
In this implementation, the control machine passes through serial ports and PDU wired connection, for example through RS485 serial ports or RS232 serial ports, and it is simpler to build the wired connection of PDU and control machine through the serial ports, need not pass through the network, direct point-to-point transmission, and the test is stable high.
And S120, acquiring the test requirement, and configuring the control parameter of the PDU according to the test requirement.
In this embodiment, an interface for inputting control parameters is reserved on the controller, and the interface can be used for receiving a test requirement input by an upper computer or an operator, the test requirement includes user login information and test information, the test information includes PDU port information to be tested, power-on/power-off time interval information, power-on/power-off duration information, and the like, and control parameters for controlling power-on/power-off of the PDU can be configured on the controller according to the test requirement.
And S130, starting the control machine, and automatically inputting login information to log in.
In this embodiment, after the control parameters are pre-configured, the controller simulates a PDU login graphical interface at the background, and inputs login information in an input box corresponding to the PDU login graphical interface, where the login information includes an account and a password, which are used to verify operator information, so as to ensure that each test has a test permission, and the test result is valid.
And S140, controlling the corresponding port on the PDU to be powered on and powered off according to the control parameters so as to test.
In this embodiment, the controller enters the required control layer at the first level and the second level of the test interface according to the control parameters, and controls the corresponding port on the PDU to perform power-up and power-down through serial connection or network cable, so as to realize power-up and power-down test.
According to the invention, the control machine is connected with the PDU through a wire, the input test requirement is obtained, the control parameter of the PDU is configured in advance according to the test requirement, and the corresponding port on the PDU is controlled to be powered on and powered off according to the control parameter after the control is started, so that the PUD is automatically controlled to be powered on and powered off to carry out power on and power off test, an operator does not need to manually enter the required control layer in a first stage and a second stage according to the test requirement, and the PUD is controlled to be powered on and powered off to carry out power on and power off test, so that the test efficiency is improved, and meanwhile.
Fig. 3 is a flowchart illustrating a method for automatically controlling a PDU to perform a test according to another embodiment of the present invention. As shown in fig. 3, the method for testing an automatic control PDU of the present embodiment includes steps S210 to S270.
And S210, connecting the control machine with the PDU through a wire.
S220, obtaining the test requirement, and configuring the control parameter of the PDU according to the test requirement.
S230, judging whether the PDU is in an initial state.
S240, if not, recovering the PDU to the initial state.
And S250, starting a controller, and automatically inputting login information to log in.
And S260, controlling the corresponding port on the PDU to be powered on and powered off according to the control parameter so as to test.
S270, after the test is finished, logging out and recovering the PDU to the initial state.
Steps S210, S220, S250, and S260 are similar to steps S110 to S140 in the above embodiments, and are not described again here. The steps S230, S240, and S270 added in the present embodiment are explained in detail below.
For steps S230 and S240, the status of the PDU needs to be determined before logging in, when the status of the PDU is in the initial state, the logging information can be input and logged in, and when the status of the PDU is in the non-initial state, the status of the PDU needs to be restored to the initial state first, and then the logging information is input and logged in, so that interference of the previous test on the test result is avoided, and the accuracy of the test result is ensured.
For step S270, after the test is completed, the display interface of the controller is returned to the initial interface, and logging is exited, so as to save the PDU state initialization time in the next test and improve the test efficiency.
According to the invention, the control machine is connected with the PDU through a wire, the input test requirement is obtained, the control parameter of the PDU is configured in advance according to the test requirement, and the corresponding port on the PDU is controlled to be powered on and powered off according to the control parameter after the control is started, so that the PUD is automatically controlled to be powered on and powered off to carry out power on and power off test, an operator does not need to manually enter the required control layer in a first stage and a second stage according to the test requirement, and the PUD is controlled to be powered on and powered off to carry out power on and power off test, so that the test efficiency is improved, and meanwhile.
Fig. 4 is a schematic block diagram of an apparatus for automatically controlling a PDU to perform a test according to an embodiment of the present invention. As shown in fig. 4, the present invention also provides a device for automatically controlling PDU to perform testing, corresponding to the above method for automatically controlling PDU to perform testing. The device for automatically controlling the PDU to test comprises a unit for executing the method for automatically controlling the PDU to test, and the device can be configured in a desktop computer, a tablet computer, a portable computer, and other terminals. Specifically, referring to fig. 4, the apparatus for automatically controlling PDU testing includes a connection unit 10, a configuration unit 20, a login unit 30 and a test unit 40.
And the connection unit 10 is used for connecting the control machine and the PDU through a wire.
In this embodiment, a Power Distribution Unit (PDU), which is a product designed to provide Power Distribution for electrical equipment installed in a rack, is a Power Distribution Unit (Power Distribution Unit).
Before testing, the PDU is connected with a control machine through a wire, the control machine is used for running an automatic test script and sending a control instruction to the PDU so as to control a specific port of the PDU to be powered on or powered off. The connection between the PDU and the controller is established in a wired connection mode, so that the stability of data transmission between the PDU and the controller can be ensured, and the stable operation of an automatic test process is ensured.
Referring to fig. 5, in an embodiment, the connection unit 10 includes a first connection module 11 and a second connection module 12.
The first connection module 11 is used to connect the control machine and the PDU through the network cable, the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address.
In the implementation, the control machine is connected with the PDU through a network cable, the PDU and the control machine are necessarily located in the same local area network at the moment, and the IP address of the PDU is a fixed IP address, so that the stability of data transmission between the PDU and the control machine is ensured, and meanwhile, the real-time state can be checked through accessing a graphical control interface of the PDU.
And the second connecting module 12 is used for connecting the control machine and the PDU through a serial port in a wired manner.
In this implementation, the control machine passes through serial ports and PDU wired connection, for example through RS485 serial ports or RS232 serial ports, and it is simpler to build the wired connection of PDU and control machine through the serial ports, need not pass through the network, direct point-to-point transmission, and the test is stable high.
And the configuration unit 20 is configured to obtain the test requirement and configure the control parameter of the PDU according to the test requirement.
In this embodiment, an interface for inputting control parameters is reserved on the controller, and the interface can be used for receiving a test requirement input by an upper computer or an operator, the test requirement includes user login information and test information, the test information includes PDU port information to be tested, power-on/power-off time interval information, power-on/power-off duration information, and the like, and control parameters for controlling power-on/power-off of the PDU can be configured on the controller according to the test requirement.
The registration unit 30 starts the control machine and automatically inputs registration information to perform registration.
In this embodiment, after the control parameters are pre-configured, the controller simulates a PDU login graphical interface at the background, and inputs login information in an input box corresponding to the PDU login graphical interface, where the login information includes a login account and a password, which are used to verify operator information, so as to ensure that each test has a test permission, and the test result is valid.
And the test unit 40 controls the corresponding port on the PDU to be powered on and powered off according to the control parameters so as to perform testing.
In this embodiment, the controller enters the required control layer at the first level and the second level of the test interface according to the control parameters, and controls the corresponding port on the PDU to perform power-up and power-down through serial connection or network cable, so as to realize power-up and power-down test.
According to the invention, the control machine is connected with the PDU through a wire, the input test requirement is obtained, the control parameter of the PDU is configured in advance according to the test requirement, and the corresponding port on the PDU is controlled to be powered on and powered off according to the control parameter after the control is started, so that the PUD is automatically controlled to be powered on and powered off to carry out power on and power off test, an operator does not need to manually enter the required control layer in a first stage and a second stage according to the test requirement, and the PUD is controlled to be powered on and powered off to carry out power on and power off test, so that the test efficiency is improved, and meanwhile.
Fig. 6 is a schematic block diagram of an apparatus for automatically controlling PDU testing according to another embodiment of the present invention. As shown in fig. 6, the apparatus for testing an automatic control PDU of the present embodiment is the above embodiment, and adds a judging unit 50 and a restoring unit 60.
And the judging unit 50 is configured to judge whether the PDU is in an initial state, and recover the PDU to the initial state when the PDU is not in the initial state.
In this embodiment, the status of the PDU needs to be determined before logging in, when the status of the PDU is in the initial state, the logging information can be input and logged in, and when the status of the PDU is in the non-initial state, the status of the PDU needs to be restored to the initial state first, and then the logging information is input and logged in, so that interference of the last test on the test result is avoided, and the accuracy of the test result is ensured.
And a recovery unit 60, configured to complete the test, log out, and recover the PDU to the initial state.
In this embodiment, after the test is completed, the display interface of the controller is returned to the initial interface, and logging is exited, so as to save the PDU state initialization time during the next test and improve the test efficiency.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the above device for automatically controlling PDU to perform testing and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and conciseness of description, no further description is provided herein.
Referring to fig. 7, fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 7, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032 comprises program instructions that, when executed, cause the processor 502 to perform a method of automatically controlling the testing of a PDU.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for running the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for automatically controlling the PDU to be tested.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in the memory.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. 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.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for automatically controlling PDU to test is characterized by comprising the following steps:
connecting the control machine with the PDU through a wire;
acquiring a test requirement, and configuring control parameters of the PDU according to the test requirement;
starting a control machine, and automatically inputting login information to log in;
and controlling the corresponding port on the PDU to power on and power off according to the control parameters so as to test.
2. The method of claim 1, wherein the step of wired connecting the control unit to the PDU comprises:
the control machine is connected with the PDU through a network cable in a wired mode, the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address; or,
and the control machine is in wired connection with the PDU through a serial port.
3. The method of claim 1, wherein the step of automatically inputting login information to log in the starting controller comprises:
judging whether the PDU is in an initial state;
if not, recovering the PDU to the initial state.
4. The method according to claim 1, wherein the step of controlling the corresponding port of the PDU to power up and power down according to the test command for testing comprises:
and after the test is finished, logging out and recovering the PDU to the initial state.
5. An apparatus for automatically controlling a PDU for testing, comprising:
the connection unit is used for connecting the control machine and the PDU through a wire;
the configuration unit is used for acquiring the test requirement and configuring the control parameter of the PDU according to the test requirement;
the login unit starts the controller and automatically inputs login information to log in;
and the test unit controls the corresponding port on the PDU to be powered on and powered off according to the control parameters so as to test.
6. The apparatus for automatically controlling PDU testing according to claim 5, wherein the connection unit includes a first connection module and a second connection module;
the first connection module is used for connecting the control machine and the PDU through a network cable in a wired mode, the PDU and the control machine are located in the same local area network, and the IP address of the PDU is a fixed IP address;
and the second connecting module is used for connecting the control machine and the PDU through a serial port in a wired manner.
7. The apparatus of claim 5, further comprising a determining unit for determining whether the PDU is in an initial state, and restoring the PDU to the initial state when the PDU is not in the initial state.
8. The apparatus for automatically controlling the testing of PDUs as recited in claim 5, further comprising a recovery unit for testing complete, logging out and recovering the PDU to an initial state.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method of automatic control PDU testing according to any of claims 1-4 when executing the computer program.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements a method of testing an automatic control PDU according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911117208.0A CN110850207A (en) | 2019-11-15 | 2019-11-15 | Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911117208.0A CN110850207A (en) | 2019-11-15 | 2019-11-15 | Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110850207A true CN110850207A (en) | 2020-02-28 |
Family
ID=69600763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911117208.0A Pending CN110850207A (en) | 2019-11-15 | 2019-11-15 | Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110850207A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104459448A (en) * | 2014-12-19 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Automatic correction method for correction parameters of intelligent socket |
CN205809266U (en) * | 2016-07-06 | 2016-12-14 | 康代影像科技(苏州)有限公司 | A kind of power distribution functions of modules test device |
CN106487621A (en) * | 2016-10-10 | 2017-03-08 | 普天智能照明研究院有限公司 | A kind of smart jack of automatic detection network and the application by detection network signal |
CN107678962A (en) * | 2017-09-26 | 2018-02-09 | 郑州云海信息技术有限公司 | The automated testing method and device of a kind of cli interface |
CN108804320A (en) * | 2018-05-30 | 2018-11-13 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
CN109164323A (en) * | 2018-09-25 | 2019-01-08 | 昆山光科鑫激光科技有限公司 | Automatic test machine for being tested PDU |
CN208752157U (en) * | 2018-08-14 | 2019-04-16 | 浙江邮电职业技术学院 | Portable high-pressure direct current cabinet PDU socket detector |
CN110389901A (en) * | 2019-07-17 | 2019-10-29 | 陕西瑞迅电子信息技术有限公司 | Test method, device, computer equipment and the storage medium of ARM industrial personal computer |
CN209624691U (en) * | 2018-11-09 | 2019-11-12 | 通标标准技术服务有限公司 | A kind of plugs and sockets product automation test macro |
-
2019
- 2019-11-15 CN CN201911117208.0A patent/CN110850207A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104459448A (en) * | 2014-12-19 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Automatic correction method for correction parameters of intelligent socket |
CN205809266U (en) * | 2016-07-06 | 2016-12-14 | 康代影像科技(苏州)有限公司 | A kind of power distribution functions of modules test device |
CN106487621A (en) * | 2016-10-10 | 2017-03-08 | 普天智能照明研究院有限公司 | A kind of smart jack of automatic detection network and the application by detection network signal |
CN107678962A (en) * | 2017-09-26 | 2018-02-09 | 郑州云海信息技术有限公司 | The automated testing method and device of a kind of cli interface |
CN108804320A (en) * | 2018-05-30 | 2018-11-13 | 平安普惠企业管理有限公司 | Automated testing method, device, computer equipment and storage medium |
CN208752157U (en) * | 2018-08-14 | 2019-04-16 | 浙江邮电职业技术学院 | Portable high-pressure direct current cabinet PDU socket detector |
CN109164323A (en) * | 2018-09-25 | 2019-01-08 | 昆山光科鑫激光科技有限公司 | Automatic test machine for being tested PDU |
CN209624691U (en) * | 2018-11-09 | 2019-11-12 | 通标标准技术服务有限公司 | A kind of plugs and sockets product automation test macro |
CN110389901A (en) * | 2019-07-17 | 2019-10-29 | 陕西瑞迅电子信息技术有限公司 | Test method, device, computer equipment and the storage medium of ARM industrial personal computer |
Non-Patent Citations (1)
Title |
---|
黄丰等: "ISO 输出插座自动检测***", 《2014中国高端SMT学术会议会议论文集》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109510742B (en) | Server network card remote test method, device, terminal and storage medium | |
CN111404779B (en) | Method, device and system for testing role switching of router nodes | |
CN112087354A (en) | Communication protocol testing method and device, electronic equipment and storage medium | |
CN111414285A (en) | Test method, test device and test equipment for starting function of server system | |
CN112527397A (en) | Method and device for modifying basic input output system options and computer equipment | |
CN110569158A (en) | method and device for testing abnormal power failure in SSD random scene and computer equipment | |
CN111767241A (en) | PCIe fault injection test method, device and storage medium | |
CN107181606B (en) | Method and apparatus for controlling network nodes | |
CN112612533A (en) | BMC setup option modification method based on CentOS in ARM server | |
CN111181781A (en) | Vdbench test configuration method, system, terminal and storage medium | |
CN113590401B (en) | CPE equipment multifunctional test method, CPE equipment multifunctional test device, computer equipment and storage medium | |
CN110850207A (en) | Method and device for automatically controlling PDU (protocol data Unit) to test, computer equipment and storage medium | |
CN109117406B (en) | PCIE hot plug test method, device, terminal and storage medium | |
CN110673507A (en) | Data simulation method and device for Internet of things equipment | |
CN115080325A (en) | PSU (power system unit) testing method, system, device and medium based on PDU (protocol data Unit) | |
CN115437865A (en) | Method, device, equipment and medium for testing abnormal power failure of hard disk | |
CN111147400B (en) | Method and device for command line configuration synchronization and electronic equipment | |
CN114442765A (en) | Fan control method for computer equipment, baseboard management controller and storage medium | |
CN109450682B (en) | IB network card communication configuration method and device, terminal and storage medium | |
CN114637669A (en) | Device management method, device and storage medium | |
CN113132333B (en) | Networking login method, household appliance equipment, household appliance system and storage medium | |
CN114461458A (en) | Server memory test method, system, terminal and storage medium | |
CN112492061A (en) | IP address modification method, device and equipment of BMC (baseboard management controller) and readable storage medium | |
CN113325784A (en) | Controller flashing method and device and flashing equipment | |
CN114363210A (en) | Startup and shutdown testing method, device, system and medium for distributed router |
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: 20200228 |
|
RJ01 | Rejection of invention patent application after publication |