CN110968489A - Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch - Google Patents

Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch Download PDF

Info

Publication number
CN110968489A
CN110968489A CN201911153183.XA CN201911153183A CN110968489A CN 110968489 A CN110968489 A CN 110968489A CN 201911153183 A CN201911153183 A CN 201911153183A CN 110968489 A CN110968489 A CN 110968489A
Authority
CN
China
Prior art keywords
virtual users
access pressure
sum
virtual
users
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.)
Granted
Application number
CN201911153183.XA
Other languages
Chinese (zh)
Other versions
CN110968489B (en
Inventor
车升娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201911153183.XA priority Critical patent/CN110968489B/en
Publication of CN110968489A publication Critical patent/CN110968489A/en
Application granted granted Critical
Publication of CN110968489B publication Critical patent/CN110968489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/3433Recording 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 for load management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, equipment and a medium for testing BMC (baseboard management controller) access pressure of a white box switch, wherein the method comprises the following steps: creating a plurality of virtual users; simultaneously logging a plurality of virtual users in a BMC web, and recording a first unique identification value generated by each virtual user; selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether a first unique identification value generated by the preset number of virtual users is valid or not, and recording the first frequency of failure; judging whether the first time of failure reaches a threshold value; in response to the fact that the first time of failure does not reach the threshold value, simultaneously logging in the BMC IP by a plurality of virtual users, and recording a second unique identification value generated by each virtual user; sequentially verifying whether second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure; the performance of the access pressure test is determined based on the first number and the second number. The scheme provided by the invention simplifies the test process by establishing the virtual users and logging in simultaneously for testing.

Description

Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch
Technical Field
The present invention relates to the field of testing, and in particular, to a method, a device, and a readable medium for BMC access pressure testing of a white box switch.
Background
In the development process of the switches, because a large number of switches are operated in the test process and the practical application, each switch is required to be successfully accessed, and therefore the access pressure test is indispensable in the test process. The traditional switch is not provided with a BMC monitoring system, the access pressure test is manual operation, the test consumes time and labor, the whole test process and the result are not recorded in log, and the subsequent checking and analysis are inconvenient.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a device, and a medium for testing BMC access pressure of a white box switch, where a virtual user is created and simultaneously logs in a BMC web and a BMC IP based on the virtual user, a failure number value of an open interface is counted, and an access pressure test result is output, so that an influence of manual judgment in a test process can be avoided, reliability of the test result is ensured, time and manpower resources wasted in a manual test in a previous test are avoided, and work efficiency is improved by times.
Based on the above object, an aspect of the embodiments of the present invention provides a method for BMC access pressure testing of a white-box switch, including the following steps: creating a plurality of virtual users; simultaneously logging in a BMC web by the plurality of virtual users, and recording a first unique identification value generated by each virtual user; selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether a first unique identification value generated by the preset number of virtual users is valid or not, and recording the first frequency of failure; judging whether the first time of failure reaches a threshold value; in response to the fact that the first number of failures does not reach a threshold value, simultaneously logging the plurality of virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user; sequentially verifying whether second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and determining the performance of the access pressure test based on the first number and the second number.
In some embodiments, the selecting a predetermined number of virtual users from the plurality of virtual users comprises: and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number comprises: judging whether the sum of the first times and the second times is greater than a second threshold value; displaying the access pressure test performance as a third state in response to the sum of the first number of times and the second number of times being greater than a second threshold; in response to the sum of the first number of times and the second number of times not being greater than a second threshold, determining whether the sum of the first number of times and the second number of times is zero; in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and displaying the access pressure test performance in a second state in response to the sum of the first number and the second number not being zero.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number further comprises: firstly, judging whether the second number of failures reaches a third threshold value; and in response to the second number of failures not reaching a third threshold, determining whether the sum of the first number of times and the second number of times is greater than a second threshold.
In some embodiments, further comprising: and recording the test process and the result into a system log.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: creating a plurality of virtual users; simultaneously logging in a BMC web by the plurality of virtual users, and recording a first unique identification value generated by each virtual user; selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether a first unique identification value generated by the preset number of virtual users is valid or not, and recording the first frequency of failure; judging whether the first time of failure reaches a threshold value; in response to the fact that the first number of failures does not reach a threshold value, simultaneously logging the plurality of virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user; sequentially verifying whether second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and determining the performance of the access pressure test based on the first number and the second number.
In some embodiments, the selecting a predetermined number of virtual users from the plurality of virtual users comprises: and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number comprises: judging whether the sum of the first times and the second times is greater than a third threshold value; displaying the access pressure test performance in a third state in response to the sum of the first number of times and the second number of times being greater than a third threshold; in response to the sum of the first number of times and the second number of times not being greater than a third threshold, determining whether the sum of the first number of times and the second number of times is zero; in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and displaying the access pressure test performance in a second state in response to the sum of the first number and the second number not being zero.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number further comprises: firstly, judging whether the second number of failures reaches a second threshold value; and in response to the second number of failures not reaching a second threshold, determining whether the sum of the first number of times and the second number of times is greater than a second threshold.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by creating the virtual user, logging in the BMC web and the BMC IP respectively and simultaneously based on the virtual user, counting the failure times of opening the interface, and outputting an access pressure test result, the influence of manual judgment in the test process can be avoided, the reliability of the test result is ensured, the time and manpower resources wasted by manual test in the previous test are avoided, and the working efficiency is improved exponentially.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of a method for BMC access pressure testing of a white-box switch according to the present invention;
FIG. 2 is a flow chart of an embodiment of a method for BMC access pressure testing of a white-box switch provided by the present invention;
fig. 3 is a schematic hardware structure diagram of an embodiment of a method for BMC access pressure testing of a white-box switch according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for BMC access pressure testing of a white box switch. Fig. 1 is a schematic diagram illustrating an embodiment of a method for BMC access pressure testing of a white-box switch according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, creating a plurality of virtual users;
s2, simultaneously logging in a BMC web by a plurality of virtual users, and recording a first unique identification value generated by each virtual user;
s3, selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether the first unique identification values generated by the preset number of virtual users are valid, and recording the first frequency of failure;
s4, judging whether the first time of failure reaches a threshold value;
s5, in response to the fact that the first time of failure does not reach a threshold value, simultaneously logging multiple virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user;
s6, sequentially verifying whether second unique identification values generated by a predetermined number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and
and S7, determining the performance of the access pressure test based on the first times and the second times.
A plurality of virtual users is created. The number of virtual users may be equal to the number of tests, for example, 5000 virtual users may be created if 5000 tests are desired.
Simultaneously logging in a BMC web by a plurality of virtual users, and recording a first unique identification value (session ID) generated by each virtual user. Continuing with the above example, 5000 virtual users may log in the bmcbweb page at the same time, each virtual user may generate a corresponding first unique identification value, and record the generated first unique identification value in a log or a table.
Selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether the first unique identification values generated by the preset number of virtual users are valid or not, and recording the first frequency of failure. For example, the predetermined number may be 50, 50 virtual users may be selected from 5000 virtual users, and then whether the first unique identification value generated by the 50 virtual users is valid is sequentially verified, and whether a page opened by the 50 virtual users can still be used may also be determined, if the first unique identification value is invalid, the number of invalidations may be increased by one, and finally the total number of invalidations is counted.
In some embodiments, the selecting a predetermined number of virtual users from the plurality of virtual users comprises: and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression. For example, ranking 5000 virtual users from 1 to 5000, one may choose the virtual user with the numbers 100, 200, 300 … … 5000, 5000.
And judging whether the first time of failure reaches a threshold value. For example, the first threshold may be 5, and if the first number of failures reaches the threshold, that is, the first number reaches 5 times, which indicates that the performance of the access pressure test of the system is poor, it may directly indicate that the performance of the access pressure test is in the third state, which may be poor.
And in response to the first number of failures not reaching the threshold value, simultaneously logging in the BMC IP by a plurality of virtual users, and recording a second unique identification value generated by each virtual user. If the first number of failures does not reach the threshold value, that is, the number of failures is less than 5, the next test may be entered, for example, multiple virtual users simultaneously log in the BMC IP, and a second unique identification value generated by each virtual user based on the number of failures is recorded, where the second unique identification value may be different from the first unique identification value.
And sequentially verifying whether the second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure. Similar to the first authentication, a predetermined number of users may be selected randomly or based on an arithmetic series. And then sequentially verifying whether a predetermined number of user-generated second unique identification values are valid.
The performance of the access pressure test is determined based on the first number and the second number. In some embodiments, said determining performance of the access pressure test based on the first number and the second number comprises: judging whether the sum of the first times and the second times is greater than a second threshold value; displaying the access pressure test performance as a third state in response to the sum of the first number of times and the second number of times being greater than a second threshold; in response to the sum of the first number of times and the second number of times not being greater than a second threshold, determining whether the sum of the first number of times and the second number of times is zero; in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and displaying the access pressure test performance in a second state in response to the sum of the first number and the second number not being zero. For example, whether the sum of the first number and the second number is greater than 5 is judged, and if the sum of the first number and the second number is greater than 5, the access pressure test performance is displayed to be poor; and if the sum of the first times and the second times is not more than 5, judging whether the sum of the first times and the second times is zero, if so, displaying that the access pressure test performance is excellent, and if not, displaying that the access pressure test performance is good.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number further comprises: firstly, judging whether the second number of failures reaches a third threshold value; and in response to the second number of failures not reaching a third threshold, determining whether the sum of the first number of times and the second number of times is greater than a second threshold. For example, it may be determined whether the second number of failures reaches 5, and if the second number of failures reaches 5, it may directly indicate that the access pressure test performance is poor.
In some embodiments, further comprising: and recording the test process and the result into a system log.
Fig. 2 is a flowchart illustrating an embodiment of a method for BMC access pressure testing of a white-box switch according to the present invention. As shown in FIG. 2, beginning at block 101 and proceeding to block 102, a plurality of virtual users are created; then, proceeding to block 103, simultaneously logging in the BMC web for a plurality of virtual users, and recording a first unique identification value generated by each virtual user; then, the process proceeds to block 104, a predetermined number of virtual users in the plurality of virtual users are selected, whether the first unique identification values generated by the predetermined number of virtual users are valid is sequentially verified, and the first number of times of failure is recorded; then, the method proceeds to a block 105, judges whether the first time of failure reaches a threshold value, if the first time of failure is directly finished, if the first time of failure reaches the threshold value, the method proceeds to a block 106, simultaneously logs a plurality of virtual users in a BMC IP, and records a second unique identification value generated by each virtual user; proceeding to block 107, sequentially verifying whether second unique identification values generated by a predetermined number of users in the plurality of virtual users are valid, and recording a second number of times of failure; proceeding then to block 108, the performance of the access pressure test is determined based on the first number and the second number, and proceeding then to block 109 to end.
It should be particularly noted that, the steps in the embodiments of the method for testing the BMC access pressure of the white box switch may be intersected, replaced, added, or deleted, so that these methods for testing the BMC access pressure of the white box switch based on reasonable permutation and combination conversion also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, creating a plurality of virtual users; s2, simultaneously logging in a BMC web by a plurality of virtual users, and recording a first unique identification value generated by each virtual user; s3, selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether the first unique identification values generated by the preset number of virtual users are valid, and recording the first frequency of failure; s4, judging whether the first time of failure reaches a threshold value; s5, in response to the fact that the first time of failure does not reach a threshold value, simultaneously logging multiple virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user; s6, sequentially verifying whether second unique identification values generated by a predetermined number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and S7, determining the performance of the access pressure test based on the first number and the second number.
In some embodiments, the selecting a predetermined number of virtual users from the plurality of virtual users comprises: and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number comprises: judging whether the sum of the first times and the second times is greater than a second threshold value; displaying the access pressure test performance as a third state in response to the sum of the first number of times and the second number of times being greater than a second threshold; in response to the sum of the first number of times and the second number of times not being greater than a second threshold, determining whether the sum of the first number of times and the second number of times is zero; in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and displaying the access pressure test performance in a second state in response to the sum of the first number and the second number not being zero.
In some embodiments, said determining performance of the access pressure test based on the first number and the second number further comprises: firstly, judging whether the second number of failures reaches a third threshold value; and in response to the second number of failures not reaching a third threshold, determining whether the sum of the first number of times and the second number of times is greater than a second threshold.
In some embodiments, further comprising: and recording the test process and the result into a system log.
Fig. 3 is a schematic hardware structural diagram of an embodiment of the method for BMC access pressure testing of the white box switch according to the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer readable storage medium and may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the method for testing access pressure of the white box switch BMC in the embodiment of the present application. The processor 301 executes various functional applications of the server and data processing, namely, the method for implementing the white box switch BMC access pressure test of the above-described method embodiments, by executing the nonvolatile software program, instructions and modules stored in the memory 302.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the method of the white-box switch BMC access pressure test, or the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to the method for white-box switch BMC access pressure testing or methods are stored in the memory 302 and, when executed by the processor 301, perform the method for white-box switch BMC access pressure testing in any of the above-described method embodiments.
Any embodiment of a computer device implementing the method for white box switch BMC access pressure testing described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by instructing relevant hardware by a computer program, and the program of the method for BMC access pressure testing of the white box switch can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for testing BMC access pressure of a white box switch is characterized by comprising the following steps:
creating a plurality of virtual users;
simultaneously logging in a BMC web by the plurality of virtual users, and recording a first unique identification value generated by each virtual user;
selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether a first unique identification value generated by the preset number of virtual users is valid or not, and recording the first frequency of failure;
judging whether the first time of failure reaches a threshold value;
in response to the fact that the first number of failures does not reach a threshold value, simultaneously logging the plurality of virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user;
sequentially verifying whether second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and
determining performance of an access pressure test based on the first number and the second number.
2. The method of claim 1, wherein selecting a predetermined number of the plurality of virtual users comprises:
and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression.
3. The method of claim 1, wherein determining the performance of the access pressure test based on the first number of times and the second number of times comprises:
judging whether the sum of the first times and the second times is greater than a second threshold value;
displaying the access pressure test performance as a third state in response to the sum of the first number of times and the second number of times being greater than a second threshold;
in response to the sum of the first number of times and the second number of times not being greater than a second threshold, determining whether the sum of the first number of times and the second number of times is zero;
in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and
and displaying the access pressure test performance as a second state in response to the sum of the first number and the second number being not zero.
4. The method of claim 3, wherein determining the performance of the access pressure test based on the first number of times and the second number of times further comprises:
firstly, judging whether the second number of failures reaches a third threshold value; and
and responding to the fact that the second number of failures does not reach a third threshold value, and judging whether the sum of the first number of times and the second number of times is larger than a second threshold value.
5. The method of claim 1, further comprising:
and recording the test process and the result into a system log.
6. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
creating a plurality of virtual users;
simultaneously logging in a BMC web by the plurality of virtual users, and recording a first unique identification value generated by each virtual user;
selecting a preset number of virtual users from the plurality of virtual users, sequentially verifying whether a first unique identification value generated by the preset number of virtual users is valid or not, and recording the first frequency of failure;
judging whether the first time of failure reaches a threshold value;
in response to the fact that the first number of failures does not reach a threshold value, simultaneously logging the plurality of virtual users in a BMC IP, and recording a second unique identification value generated by each virtual user;
sequentially verifying whether second unique identification values generated by a preset number of users in the plurality of virtual users are valid or not, and recording the second times of failure; and
determining performance of an access pressure test based on the first number and the second number.
7. The computer device of claim 6, wherein said selecting a predetermined number of virtual users of said plurality of virtual users comprises:
and sequencing the plurality of virtual users, and selecting a preset number of virtual users based on the arithmetic progression.
8. The computer device of claim 6, wherein the determining performance of an access pressure test based on the first number of times and the second number of times comprises:
judging whether the sum of the first times and the second times is greater than a third threshold value;
displaying the access pressure test performance in a third state in response to the sum of the first number of times and the second number of times being greater than a third threshold;
in response to the sum of the first number of times and the second number of times not being greater than a third threshold, determining whether the sum of the first number of times and the second number of times is zero;
in response to the sum of the first number and the second number being zero, displaying access pressure test performance as a first state; and
and displaying the access pressure test performance as a second state in response to the sum of the first number and the second number being not zero.
9. The computer device of claim 8, wherein the determining performance of an access pressure test based on the first number of times and the second number of times further comprises:
firstly, judging whether the second number of failures reaches a second threshold value; and
and responding to the second number of failures not reaching a second threshold value, and judging whether the sum of the first number of times and the second number of times is larger than the second threshold value.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201911153183.XA 2019-11-22 2019-11-22 Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch Active CN110968489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911153183.XA CN110968489B (en) 2019-11-22 2019-11-22 Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911153183.XA CN110968489B (en) 2019-11-22 2019-11-22 Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch

Publications (2)

Publication Number Publication Date
CN110968489A true CN110968489A (en) 2020-04-07
CN110968489B CN110968489B (en) 2022-08-02

Family

ID=70031227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911153183.XA Active CN110968489B (en) 2019-11-22 2019-11-22 Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch

Country Status (1)

Country Link
CN (1) CN110968489B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190052615A1 (en) * 2017-08-10 2019-02-14 International Business Machines Corporation Non-disruptive system for verifying default passwords have been changed wihtout causing security lockouts
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
CN110413477A (en) * 2019-06-27 2019-11-05 苏州浪潮智能科技有限公司 Method, equipment and the readable medium of the input and output performance of test distributed storage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190052615A1 (en) * 2017-08-10 2019-02-14 International Business Machines Corporation Non-disruptive system for verifying default passwords have been changed wihtout causing security lockouts
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
CN110413477A (en) * 2019-06-27 2019-11-05 苏州浪潮智能科技有限公司 Method, equipment and the readable medium of the input and output performance of test distributed storage

Also Published As

Publication number Publication date
CN110968489B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN111585845B (en) Method, device and equipment for detecting network card node performance and readable medium
WO2021003818A1 (en) Interface test case generating method and apparatus, computer device, and storage medium
US11102081B1 (en) Quantitative network testing framework for 5G and subsequent generation networks
US20180081793A1 (en) Generating test scripts for testing a network-based application
CN111177043B (en) Method, system, device and medium for accelerating reading of field replaceable unit information
CN111030892B (en) Method, equipment and medium for testing network function in BMC NCSI adaptive mode
CN104243590A (en) Resource object recommendation method and device
CN110413594A (en) A kind of more example method for testing pressure of Redis and device
CN110704714A (en) Method and device for quickly indexing data of pcap file
CN109639494B (en) Statistical method, device, server and storage medium of interface information
CN110968489B (en) Method, equipment and medium for testing BMC (baseboard management controller) access pressure of white box switch
CN111427777B (en) SOL test method, system, equipment and medium
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN111176932B (en) Method and device for recording abnormal event log and readable medium
CN111045989A (en) Method, device and medium for querying CPLD version information
CN111130976B (en) Method, equipment and medium for configuring virtual local area network of white box switch
CN111722959B (en) Method, system, equipment and medium for expanding storage pool
CN113886221B (en) Test script generation method and device, storage medium and electronic equipment
CN111427756B (en) Method, system, equipment and medium for carrying out mixed pressure test on single hard disk
CN110266546B (en) Method, equipment and readable medium for configuring switch port
CN110995700A (en) Malformed IP message detection method, equipment and storage medium
CN112506721A (en) REST interface checking method, device, equipment and readable medium
WO2021203741A1 (en) Benchmark test method and system, and terminal device
CN110990266B (en) Method, equipment and storage medium for testing server performance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant