CN105468486A - Method and device for testing serial ports of servers - Google Patents

Method and device for testing serial ports of servers Download PDF

Info

Publication number
CN105468486A
CN105468486A CN201510809578.6A CN201510809578A CN105468486A CN 105468486 A CN105468486 A CN 105468486A CN 201510809578 A CN201510809578 A CN 201510809578A CN 105468486 A CN105468486 A CN 105468486A
Authority
CN
China
Prior art keywords
printing information
serial
serial ports
display window
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510809578.6A
Other languages
Chinese (zh)
Inventor
李光达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510809578.6A priority Critical patent/CN105468486A/en
Publication of CN105468486A publication Critical patent/CN105468486A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test

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)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and device for testing serial ports of servers. The method comprises the following steps: determining a target serial port, a test mode and a control console terminal according to preset test parameters; judging whether the host configuration and system setting of the current server satisfy the test requirements, and if yes, continuously sending at least one serial port printing information to the target serial port according to the test mode; and after the target serial port converts the serial port printing information into network printing information, sending the network printing information to the control console terminal through an external network, and printing the network printing information on the control console terminal. The device comprises a determination unit, a judging unit, a first sending unit and a second sending unit. The scheme is capable of improving the stability of the servers.

Description

A kind of method of testing server serial ports and device
Technical field
The present invention relates to field of computer technology, particularly a kind of method of testing server serial ports and device.
Background technology
Along with the development of computer technology, the performance of server is constantly improved, the core application of the server operation that increasing user adopts computing power stronger in every field oneself.Serial equipment is the equipment by serial ports and server communication, although serial equipment is fewer and feweri now, but at some specific occasion serial equipments, still there is important application, serial ports is as a part requisite in server, its performance directly affects the performance of server, in order to Deterministic service device can stablize, the core application of reliably run user, need to test the serial ports of server.
At present, for the method for testing of server serial ports, mainly detect serial ports by loop head and whether be communicated with in data communication process, to guarantee that server serial ports can normally use.
Be directed to the method for prior art testing server serial ports, only test serial ports whether to be communicated with in data communication process, serial ports performance is not in use tested, like this, although server serial ports can realize communication, the performance of serial ports does not probably meet the user demand of user in actual use, causes server normally can not perform the application of user, thus, the stability of server is lower.
Summary of the invention
The invention provides a kind of method and device of testing server serial ports, the stability of server can be improved.
Embodiments provide a kind of method of testing server serial ports, comprising:
According to the test parameter preset, determine target serial ports, test pattern and console terminal;
Judge whether host configuration and the Operation system setting of current server meet test request;
If so, according to described test pattern, continue to send at least one serial printing information to described target serial ports;
After described serial printing information is converted to network printing information by described target serial ports, send described network printing information by external network to described console terminal, described console terminal prints described network printing information.
Preferably, described test pattern is permanent printing model or circulation printing model;
Described according to described test pattern, continue to send at least one serial printing information to described target serial ports and comprise:
When described test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending described serial printing information;
When described test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after the number of times sending described serial printing information reaches default targeted number, stop sending described serial printing information.
Preferably, the method comprises further: on described console terminal, create at least one display window, and the number of wherein said display window is identical with the species number of described network printing information;
Describedly on described console terminal, print described network printing information comprise: each described display window on described console terminal prints different types of described network printing information.
Preferably, the method comprises further:
When comprising at least two described display windows, according to the switching cycle preset, often sending the described serial printing information of described switching cycle stipulated number, the kind of the network printing information printed in display window described in each is switched.
Preferably, the method comprises further:
After receiving the outside dynamic out code sent, the described display window of described dynamic out code being specified is closed, and terminates in this display window and prints corresponding described network printing information.
The embodiment of the present invention additionally provides a kind of device of testing server serial ports, comprising: determining unit, judging unit, the first transmitting element and the second transmitting element;
Described determining unit, for according to the test parameter preset, determines target serial ports, test pattern and console terminal;
Whether described judging unit, meet test request for the host configuration and Operation system setting judging current server;
Described first transmitting element, for the judged result according to described judging unit, if so, according to the test pattern that described determining unit is determined, is sent to few a kind of serial printing information to described target serial ports;
Described second transmitting element, for after the serial printing information that described first transmitting element sends is converted to network printing information by described catalogue serial ports, send described network printing information by external network to the console terminal that described determining unit is determined, described console terminal prints described network printing information.
Preferably, described first transmitting element, specifically for performing following operation:
When described test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending described serial printing information;
When described test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after the number of times sending described serial printing information reaches default targeted number, stop sending described serial printing information.
Preferably, this device comprises further: creating unit;
Described creating unit, for creating at least one display window on described console terminal, the number of wherein said display window is identical with the species number of described network printing information;
Described second transmitting element, prints different types of described network printing information for each described display window on described console terminal.
Preferably, this device comprises further: switch unit;
Described switch unit, for when the number of the display window that described creating unit creates is at least two, according to the switching cycle preset, described first transmitting element often sends the described serial printing information of described switching cycle stipulated number, the kind of the network printing information printed in display window described in each is switched.
Preferably, this device comprises further: control module;
Described control module, after receiving the outside dynamic out code sent, the described display window of described dynamic out code being specified is closed, and terminates in this display window and prints corresponding described network printing information.
Embodiments provide a kind of method and device of testing server serial ports, according to the test parameter determination target serial ports preset in test process, test pattern and console terminal, after the host configuration and Operation system setting that judge current server meet test request, according to test pattern, continue to send serial printing information to target serial ports, after target serial ports converts serial printing information to network printing information, by external network, network printing information is sent to console terminal, console terminal prints network printing information, like this, by arranging test parameter, continue to send serial printing information to target serial ports, can whether can use by test target serial ports on the one hand, on the other hand can test target serial ports stability under high load, thus effectively find that the defect existed in the design of server serial ports is revised, thus improve the stability of server.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of testing server serial ports that one embodiment of the invention provides;
Fig. 2 is the method flow diagram of a kind of testing server serial ports that another embodiment of the present invention provides;
Fig. 3 is the device schematic diagram of a kind of testing server serial ports that one embodiment of the invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, one embodiment of the invention provides a kind of method of testing server serial ports, comprising:
Step 101: according to the test parameter preset, determine target serial ports, test pattern and console terminal;
Step 102: judge whether the host configuration of current server and Operation system setting meet test request, if so, performs step 103, otherwise terminates current process;
Step 103: according to described test pattern, continues to send at least one serial printing information to described target serial ports;
Step 104: after described serial printing information is converted to network printing information by described target serial ports, sends described network printing information by external network to described console terminal, and described console terminal prints described network printing information.
Embodiments provide a kind of method of testing server serial ports, according to the test parameter determination target serial ports preset in test process, test pattern and console terminal, after the host configuration and Operation system setting that judge current server meet test request, according to test pattern, continue to send serial printing information to target serial ports, after target serial ports converts serial printing information to network printing information, by external network, network printing information is sent to console terminal, console terminal prints network printing information, like this, by arranging test parameter, continue to send serial printing information to target serial ports, can whether can use by test target serial ports on the one hand, on the other hand can test target serial ports stability under high load, thus effectively find that the defect existed in the design of server serial ports is revised, thus improve the stability of server.
In an embodiment of the invention, test pattern can be permanent printing model or circulation printing model, when test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending type information, when test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to target serial ports with the baud rate preset, until send after the number of times of serial printing information reaches default targeted number, stop sending serial printing information, like this, by arranging different test patterns, can test server serial ports according to the load time, also can test server serial ports according to printing times, to test server serial ports for different testing standards, improve the applicability of the method for this testing server serial ports.
In an embodiment of the invention, can according to testing requirement, console terminal creates multiple display window, the number of display window is identical with the species number of network printing information, a kind of network printing information is printed in each display window, by creating multiple display window, make target serial ports receive multiple serial printing information simultaneously, increase the load of target serial ports, thus the actual service condition realized according to server, flexible adjustment test load, stability when operating under different loads with test target serial ports, improve ease for use and the rationality of the method for testing server serial ports.
In an embodiment of the invention, according to the switching cycle preset, often send the serial printing information of stipulated number, the kind of the network printing information printed in each window of console terminal is switched, to realize printing different types of network printing information in different display window, by switching the kind of the network printing information printed in display window, can whether normal work in switching serial printing information process by test target serial ports on the one hand, different network printing information can be printed on the other hand on each console terminal, check to facilitate user, improve the ease for use of the method for this testing server serial ports.
In an embodiment of the invention, in the process of testing server serial ports, user can send dynamic out code at any time, after the dynamic out code receiving user's transmission, the display window of out code dynamic on console terminal being specified is closed, terminate on this display window and print corresponding network printing information, like this, can the output load of real-time adjustment aim serial ports in server serial ports test process, to realize testing server serial ports output stability, thus improve the stability of server further.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
As shown in Figure 2, one embodiment of the invention provides a kind of method of testing server serial ports, comprising:
Step 201: server to be measured is connected with control end computing machine.
In an embodiment of the invention, when needs testing server serial ports, by the baseboard management controller BMC mouth access network of server to be measured, simultaneously by a control end computing machine access consolidated network, can be managed server to be measured by BMC to realize control end computing machine.Such as, now need to test the serial ports in server A, wherein server A comprises 3 serial ports, the title of 3 serial ports is respectively ttyS0, ttyS1 and ttyS2, then by the baseboard management controller BMC mouth access network B of server A, simultaneously by control end computing machine C access network B, after control end computing machine C access network B, can be managed server A by the BMC of server A.
Step 202: the test parameter configuring server to be measured on control end computing machine.
In an embodiment of the invention, after control end computing machine is connected with server to be measured by network, log in server to be measured, open on server to be measured by network access serial ports SOL, and the test parameter of server to be measured is configured, wherein, test parameter comprises: the information such as target serial ports, bit rate, console terminal, printing grade and test pattern, test pattern can be permanent printing model or circulation printing model.
Such as, after control end computing machine C is connected by network with server A, control end computing machine C opens a terminal simulation software SecuretCRT, by code ipmitool – Ilanplus – HXXX.XXX.XXX.XXX – UADMIN – PADMINsolactivate, the SOL of remote opening server A;
The code arranging test parameter comprises:
A, after the kernel of/boot/grub/grub.conf is capable, add console=ttyS0,115200console=tty0;
B, add a line ttyS0 at/etc/securetty;
C, to add in/etc/inittab: S0:12345:respawn:/sbin/agetty/dev/ttyS0115200vt100;
d、echo6>/proc/sys/kernel/printk;
E, insmodtest_module.kocontinue_run=1 or insmodtest_module.kotimes=10000;
By the above-mentioned five steps arranging test parameter, target serial ports is set to ttyS0, the bit rate of target serial ports ttyS0 is set to 115200, console terminal is set to the display tty0 of control end computing machine C, printing grade is set to 6 grades, test pattern is set to permanent printing model continue_run or circulation printing model times.
Step 203: judge whether the host configuration of server to be measured and Operation system setting meet test request, if so, performs step 204, otherwise terminates current process.
In an embodiment of the invention, after the test parameter of server to be measured has been configured, whether the host configuration of server to be measured and the setting of server OS to be measured are reached to the condition of test, if reached, can test, corresponding execution step 204, if do not reach the condition of test, then cannot test server to be measured, terminate current process accordingly.Such as, the hardware device of server A and operating system are detected, judge whether server A reaches the condition of carrying out testing, if reached, corresponding execution step 204, tests target serial ports, if do not reached, need to revise the part do not satisfied condition, terminate current process accordingly.
Step 204: according to test pattern, continues to send serial printing information to target serial ports.
In an embodiment of the invention, when meeting test request to the host configuration of server to be measured and Operation system setting, start to test the target serial ports in server to be measured, according to the test pattern arranged in test parameter, continue to be sent to few a kind of serial printing information to target serial ports, if test pattern is permanent printing model, send the process of serial printing information until after receiving the instruction of the stopping test that user sends, stop sending serial printing information, if test pattern is circulation printing model, send the process of serial printing information until the number of times sending serial printing information reaches default number of times, stop sending serial printing information.
Such as, after test starts, generate 10 kinds of serial printing informations, be respectively serial printing information 1 to serial printing information 10;
If user requires that the serial ports of server A uses 12 hours can not occur exception continuously, then in step 202. the test pattern of server A is set to permanent printing model continue_run=1, the speed being now 115200 according to bit rate continues to send serial printing information 1 to serial printing information 10 to target serial ports ttyS0, before the instruction receiving the stopping test that user sends, keep the state sending serial printing information always, when arrival 12 hours, user sends the instruction stopping test, stop sending serial printing information to target serial ports ttyS0, if still do not receive the instruction of the stopping test that user sends after reaching 12 hours, then continue to send serial printing information to target serial ports ttyS0,
Can not be abnormal if user requires that the serial ports of server A receives 10000 serial printing informations, then in step 202. the test pattern of server A is set to circulation printing model times=10000, the speed being now 115200 according to bit rate continues to send serial printing information 1 to serial printing information 10 to target serial ports ttyS0, when the number of times sum sending serial printing information 1 to serial printing information 10 equals 10000, automatically stop sending serial printing information to target serial ports ttyS0.
Step 205: target serial ports converts serial printing information to networking type information.
In an embodiment of the invention, serial printing information, after the serial printing information receiving serial ports form, is converted into the network printing information of network format by target serial ports, can realize by network delivery serial printing information.Such as, the serial printing information 1 received is converted into network printing information 1 by the target serial ports ttyS0 in server A, correspondingly, target serial ports ttyS0 network printing information 2 to network printing information 10 corresponding to serial printing information 2 to serial printing information 10 converts to by same mode.
Step 206: network printing information is sent to console terminal, console terminal prints network printing information.
In an embodiment of the invention, after target serial ports converts serial printing information to network printing information, by external network, different types of network printing information is sent to console terminal, console terminal creates multiple display window, wherein the number of display window is identical with the species number of network printing information, a kind of network printing information is printed in each display window, control desk often receives a network printing information, this network printing information is printed in corresponding display window.Such as, owing to comprising 10 kinds of dissimilar network printing information, correspondingly on the display of computing machine C, create 10 display windows, be respectively display window 1 to display window 10, after network printing information 1 to network printing information 10 being sent to computing machine C by network B, do not receive primary network type information 1, just in display window 1, print primary network type information 1, correspondingly in display window 2 to display window 10, print network printing information 2 to network printing information 10 respectively.
Step 207: according to the switching cycle preset, display window print What is switched.
In an embodiment of the invention, print in the process of network printing information in display window, according to the switching cycle preset, often send the serial printing information of stipulated number, the content printed in each display window is once switched.Such as, in present switching period, in display window 1 printing is network printing information 1, in display window 2 printing is network printing information 2, correspondingly in display window 3 to display window 10, print network printing information 3 to network printing information 10 respectively, when the number of times sending serial printing information to target serial ports ttyS0 in present switching period reaches preset value 50 times, the content printed in 10 display windows is switched, after switching, network printing information 2 is printed in display window 1, network printing information 3 is printed in display window 2, correspondingly, network printing information 4 to network printing information 10 is printed successively in display window 3 to display window 9, network printing information 1 is printed in display window 10.
Step 208: receive dynamic out code, closes the display window of specifying.
In an embodiment of the invention, to in the target serial ports test process in server to be measured, after receiving the dynamic out code of user's transmission, the display window of dynamic out code being specified is closed, terminate in this display window and print network printing information, the original network printing information distribution printed in this display window is printed to other display windows.Such as, to in the target serial ports ttyS0 test process in server A, receive the dynamic out code that user sends, according to this dynamic out code, display window 1 is closed, and the original network printing information 1 printed in display window 1 is assigned to other 9 display windows and shows.
It should be noted that, multiple steps that each step shown in Fig. 2 just splits for convenience of description, in practical business implementation procedure, each step may not have the sequencing in strict execution, such as, step 207 can perform before step 208, also can perform with step 208 simultaneously.
As shown in Figure 3, one embodiment of the invention provides a kind of device of testing server serial ports, comprising: determining unit 301, judging unit 302, first transmitting element 303 and the second transmitting element 304;
Described determining unit 301, for according to the test parameter preset, determines target serial ports, test pattern and console terminal;
Whether described judging unit 302, meet test request for the host configuration and Operation system setting judging current server;
Described first transmitting element 303, for the judged result according to described judging unit 302, if so, according to the test pattern that described determining unit 301 is determined, is sent to few a kind of serial printing information to described target serial ports;
Described second transmitting element 304, for after the serial printing information that described first transmitting element 303 sends is converted to network printing information by described catalogue serial ports, send described network printing information by external network to the console terminal that described determining unit 301 is determined, described console terminal prints described network printing information.
In an embodiment of the invention, described first transmitting element 303, specifically for performing following operation:
When described test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending described serial printing information;
When described test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after the number of times sending described serial printing information reaches default targeted number, stop sending described serial printing information.
In an embodiment of the invention, this device comprises further: creating unit;
Described creating unit, for creating at least one display window on described console terminal, the number of wherein said display window is identical with the species number of described network printing information;
Described second transmitting element 304, prints different types of described network printing information for each described display window on described console terminal.
In an embodiment of the invention, this device comprises further: switch unit;
Described switch unit, for when the number of the display window that described creating unit creates is at least two, according to the switching cycle preset, described first transmitting element often sends the described serial printing information of described switching cycle stipulated number, the kind of the network printing information printed in display window described in each is switched.
In an embodiment of the invention, this device comprises further: control module;
Described control module, after receiving the outside dynamic out code sent, the described display window of described dynamic out code being specified is closed, and terminates in this display window and prints corresponding described network printing information.
It should be noted that, the content such as information interaction, implementation between each unit in the said equipment, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
According to such scheme, the method for a kind of testing server serial ports that embodiments of the invention provide and device, at least have following beneficial effect:
1, in the embodiment of the present invention, according to the test parameter determination target serial ports preset in test process, test pattern and console terminal, after the host configuration and Operation system setting that judge current server meet test request, according to test pattern, continue to send serial printing information to target serial ports, after target serial ports converts serial printing information to network printing information, by external network, network printing information is sent to console terminal, console terminal prints network printing information, like this, by arranging test parameter, continue to send serial printing information to target serial ports, can whether can use by test target serial ports on the one hand, on the other hand can test target serial ports stability under high load, thus effectively find that the defect existed in the design of server serial ports is revised, thus improve the stability of server.
2, in the embodiment of the present invention, can according to the demand of user, test pattern is set to permanent printing model or circulation printing model, permanent printing model is the test pattern continuing to send to target serial ports serial printing information before receiving the instruction stopping test, for the situation of testing server serial ports for criterion with the running time, circulation printing model is continue to send serial printing information until transmission times reaches the test pattern of preset value to target serial ports, for taking transmission times as the situation that criterion is tested server serial ports, corresponding test pattern can be selected flexibly like this according to the demand of user, improve the applicability of this method of testing.
3, in the embodiment of the present invention, multiple display window can be created on console terminal, different network printing information is printed in each display window, such needs send different serial printing informations to target serial ports, by changing the number of serial printing information kind, the load of target serial ports can be changed, thus realize testing server serial ports stability under different loads, improve the test event diversity of this method of testing.
4, in the embodiment of the present invention, in the process that server serial ports is tested, the serial printing information of certain number of times is often put to target serial ports, the content printed in each display window is switched, so not only can whether normally work when switching serial printing information by testing server serial ports, different network printing information can also be printed in display window, to facilitate user to check, improve the ease for use of comprehensive and this method of testing to the test of server serial ports.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised a 〃 〃 〃 〃 〃 〃 " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a method for testing server serial ports, is characterized in that, comprising:
According to the test parameter preset, determine target serial ports, test pattern and console terminal;
Judge whether host configuration and the Operation system setting of current server meet test request;
If so, according to described test pattern, continue to send at least one serial printing information to described target serial ports;
After described serial printing information is converted to network printing information by described target serial ports, send described network printing information by external network to described console terminal, described console terminal prints described network printing information.
2. method according to claim 1, is characterized in that, described test pattern is permanent printing model or circulation printing model;
Described according to described test pattern, continue to send at least one serial printing information to described target serial ports and comprise:
When described test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending described serial printing information;
When described test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after the number of times sending described serial printing information reaches default targeted number, stop sending described serial printing information.
3. method according to claim 1, is characterized in that, comprises further: on described console terminal, create at least one display window, and the number of wherein said display window is identical with the species number of described network printing information;
Describedly on described console terminal, print described network printing information comprise: each described display window on described console terminal prints different types of described network printing information.
4. method according to claim 3, is characterized in that, comprises further:
When comprising at least two described display windows, according to the switching cycle preset, often sending the described serial printing information of described switching cycle stipulated number, the kind of the network printing information printed in display window described in each is switched.
5. according to the method described in claim 3 or 4, it is characterized in that, comprise further:
After receiving the outside dynamic out code sent, the described display window of described dynamic out code being specified is closed, and terminates in this display window and prints corresponding described network printing information.
6. a device for testing server serial ports, is characterized in that, comprising: determining unit, judging unit, the first transmitting element and the second transmitting element;
Described determining unit, for according to the test parameter preset, determines target serial ports, test pattern and console terminal;
Whether described judging unit, meet test request for the host configuration and Operation system setting judging current server;
Described first transmitting element, for the judged result according to described judging unit, if so, according to the test pattern that described determining unit is determined, is sent to few a kind of serial printing information to described target serial ports;
Described second transmitting element, for after the serial printing information that described first transmitting element sends is converted to network printing information by described catalogue serial ports, send described network printing information by external network to the console terminal that described determining unit is determined, described console terminal prints described network printing information.
7. device according to claim 6, is characterized in that,
Described first transmitting element, specifically for performing following operation:
When described test pattern is permanent printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after receiving the instruction of the outside stopping test sending, stop sending described serial printing information;
When described test pattern is circulation printing model, continue to be sent to few a kind of serial printing information to described target serial ports with the baud rate preset, until after the number of times sending described serial printing information reaches default targeted number, stop sending described serial printing information.
8. device according to claim 6, is characterized in that, comprises further: creating unit;
Described creating unit, for creating at least one display window on described console terminal, the number of wherein said display window is identical with the species number of described network printing information;
Described second transmitting element, prints different types of described network printing information for each described display window on described console terminal.
9. device according to claim 8, is characterized in that, comprises further: switch unit;
Described switch unit, for when the number of the display window that described creating unit creates is at least two, according to the switching cycle preset, described first transmitting element often sends the described serial printing information of described switching cycle stipulated number, the kind of the network printing information printed in display window described in each is switched.
10. device according to claim 8 or claim 9, is characterized in that, comprise further: control module;
Described control module, after receiving the outside dynamic out code sent, the described display window of described dynamic out code being specified is closed, and terminates in this display window and prints corresponding described network printing information.
CN201510809578.6A 2015-11-20 2015-11-20 Method and device for testing serial ports of servers Pending CN105468486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510809578.6A CN105468486A (en) 2015-11-20 2015-11-20 Method and device for testing serial ports of servers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510809578.6A CN105468486A (en) 2015-11-20 2015-11-20 Method and device for testing serial ports of servers

Publications (1)

Publication Number Publication Date
CN105468486A true CN105468486A (en) 2016-04-06

Family

ID=55606219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510809578.6A Pending CN105468486A (en) 2015-11-20 2015-11-20 Method and device for testing serial ports of servers

Country Status (1)

Country Link
CN (1) CN105468486A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748710A (en) * 2017-08-31 2018-03-02 郑州云海信息技术有限公司 A kind of server for supporting that much information is shown
CN109358827A (en) * 2018-12-05 2019-02-19 深圳市创维软件有限公司 Method, system, equipment and the storage medium of serially printing are applied in control
CN111221686A (en) * 2018-11-27 2020-06-02 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN114070753A (en) * 2021-10-12 2022-02-18 山东有人物联网股份有限公司 Transparent transmission equipment testing method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040102916A1 (en) * 2002-11-21 2004-05-27 Zhiguo Chen Method for testing I/O ports of a computer motherboard
CN102088374A (en) * 2010-11-25 2011-06-08 中国航空无线电电子研究所 Stimulating module for testing universal performance of serial interface
CN102289368A (en) * 2011-06-17 2011-12-21 中兴通讯股份有限公司 Method and system for obtaining serial printing information
CN102355380A (en) * 2011-08-17 2012-02-15 迈普通信技术股份有限公司 Hardware testing device and method for synchronous asynchronous serial interface
CN102609349A (en) * 2012-02-08 2012-07-25 北京百度网讯科技有限公司 Method and system for screen capture in server failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040102916A1 (en) * 2002-11-21 2004-05-27 Zhiguo Chen Method for testing I/O ports of a computer motherboard
CN102088374A (en) * 2010-11-25 2011-06-08 中国航空无线电电子研究所 Stimulating module for testing universal performance of serial interface
CN102289368A (en) * 2011-06-17 2011-12-21 中兴通讯股份有限公司 Method and system for obtaining serial printing information
CN102355380A (en) * 2011-08-17 2012-02-15 迈普通信技术股份有限公司 Hardware testing device and method for synchronous asynchronous serial interface
CN102609349A (en) * 2012-02-08 2012-07-25 北京百度网讯科技有限公司 Method and system for screen capture in server failure

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107748710A (en) * 2017-08-31 2018-03-02 郑州云海信息技术有限公司 A kind of server for supporting that much information is shown
CN111221686A (en) * 2018-11-27 2020-06-02 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN111221686B (en) * 2018-11-27 2023-08-25 维谛技术有限公司 Method for enabling linux equipment to support serial port command line
CN109358827A (en) * 2018-12-05 2019-02-19 深圳市创维软件有限公司 Method, system, equipment and the storage medium of serially printing are applied in control
CN109358827B (en) * 2018-12-05 2021-11-16 深圳市创维软件有限公司 Method, system, equipment and storage medium for controlling application serial port printing
CN114070753A (en) * 2021-10-12 2022-02-18 山东有人物联网股份有限公司 Transparent transmission equipment testing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN101789889B (en) Method and system for automatic testing communication equipment
CN109710346A (en) Server management method, device, equipment and computer readable storage medium
WO2020151483A1 (en) Stress testing system for internet-of-things platform, method, device, and server
CN105468486A (en) Method and device for testing serial ports of servers
CN107743076A (en) A kind of NCSI shares interface switching method and device
CN102724079B (en) Method and system for auxiliary configuration of Ethernet equipment
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN104836853A (en) Method and apparatus for business arrangement
CN101867490A (en) Maintenance operation system and method
CN111130821B (en) Power failure alarm method, processing method and device
CN108733403A (en) A kind of BIOS setting methods and device
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN108604996B (en) Strategy transmission method and device in NFV system
CN104239217A (en) Method and system for testing railway signal software
CN108347362A (en) A kind of method and bridging device and devices in system finding new equipment
CN109743225B (en) Data testing method and device, storage medium and computer equipment
US7418376B1 (en) Method for generating a simulated network based on an actual managed network
CN110908845A (en) Method for testing cross loop of dual-port 1553B bus of suspension management system based on real airborne environment
CN103780446A (en) Method and system for monitoring network bandwidth resource in real time
CN114020678B (en) Server serial console redirection method, device and system and electronic equipment
CN116306474A (en) Method, device, equipment and storage medium for verifying access of network on chip
CN105939202A (en) Method and device for managing life cycle of device
CN111130917A (en) Line testing method, device and system
CN110019321A (en) Problem delimits method, device and equipment
CN105335209A (en) Virtual machine scheduling method, electronic device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160406