CN109586977A - Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system - Google Patents

Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system Download PDF

Info

Publication number
CN109586977A
CN109586977A CN201811606274.XA CN201811606274A CN109586977A CN 109586977 A CN109586977 A CN 109586977A CN 201811606274 A CN201811606274 A CN 201811606274A CN 109586977 A CN109586977 A CN 109586977A
Authority
CN
China
Prior art keywords
network interface
positioning lamp
interface positioning
automatically
lighting
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
CN201811606274.XA
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811606274.XA priority Critical patent/CN109586977A/en
Publication of CN109586977A publication Critical patent/CN109586977A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/24Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated network management hardware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses a kind of methods for lighting and extinguishing network interface positioning lamp under Linux system automatically, belong to Linux system network interface positioning lamp control field.Method disclosed by the embodiments of the present invention, comprising the steps of: obtain the number setting value for lighting and extinguishing network interface positioning lamp;It executes and once lights or extinguish the operation of network interface positioning lamp, and record number of operations.Judgement lights or extinguishes whether network interface positioning lamp number of operations reaches number setting value.If number of operations is less than number setting value, continues to execute and once light or extinguish the operation of network interface positioning lamp.The embodiment of the present invention, which realizes, lights and extinguishes automatically network interface positioning lamp, the number of network interface positioning lamp is lighted automatically and is extinguished in setting, number can be automatically recorded during lighting automatically and extinguishing network interface positioning lamp, and can be intuitively by the display such as number lighted automatically and extinguish network interface positioning lamp in main interface.

Description

Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system
Technical field
The present invention relates to Linux system network interface positioning lamp control fields.
Background technique
In cloud computing era, need a large amount of server as support, network data transmission becomes one key of server Technology, network transmission performance is in data center, algorithm acceleration, big data analysis, high-performance calculation, server hardware acceleration hair Wave important role, the straight-through stability of network interface card becomes an important test item, and liberates the both hands of engineer, allows test It more automates, test is more efficiently an important improvement optimization point.
Summary of the invention
The present invention is to solve network interface to position lamp test from the technical issues of change.For this purpose, the present invention provides a kind of Linux system The method for lighting and extinguishing network interface positioning lamp automatically down, it has and can light automatically and extinguish network interface positioning lamp under Linux system Method the advantages of.
To achieve the goals above, the present invention adopts the following technical scheme that.
The embodiment of the present invention provides a kind of method for lighting and extinguishing network interface positioning lamp under Linux system automatically, includes step It is rapid:
Obtain the number setting value for lighting and extinguishing network interface positioning lamp;
It executes and once lights or extinguish the operation of network interface positioning lamp, and record number of operations.
Judgement lights or extinguishes whether network interface positioning lamp number of operations reaches number setting value.
If number of operations is less than number setting value, continues to execute and once light or extinguish the operation of network interface positioning lamp.
Preferably, network interface positioning lamp is lighted or extinguished to the method for lighting and extinguishing network interface positioning lamp under Linux system automatically It include standing process after operation.
Preferably, network interface positioning lamp is lighted or extinguished to the method for lighting and extinguishing network interface positioning lamp under Linux system automatically After number of operations reaches number setting value, printing test result.
It is further preferred that the method for lighting and extinguishing network interface positioning lamp under Linux system automatically, test result includes fortune The number of row operation.
It is further preferred that the method for lighting and extinguishing network interface positioning lamp under Linux system automatically, test result includes different Often record.
Preferably, network interface positioning lamp is lighted or extinguished to the method for lighting and extinguishing network interface positioning lamp under Linux system automatically After number of operations reaches number setting value, stop operation.
Network interface positioning lamp is lighted and extinguish automatically to the embodiment of the present invention the utility model has the advantages that realizing, setting is lighted and put out automatically Go out the number of network interface positioning lamp, number can be automatically recorded during lighting automatically and extinguishing network interface positioning lamp, and can be directly That sees shows number lighted automatically and extinguish network interface positioning lamp etc. in main interface.
Detailed description of the invention
Fig. 1 is the flow diagram of embodiment.
Specific embodiment
The invention will be further described with embodiment with reference to the accompanying drawing.
Automatically the method for lighting and extinguishing network interface positioning lamp under a kind of Linux system as shown in Figure 1, the present embodiment use Linux operating system.By the way of C language and bash shell scripting language hybrid programming.The present embodiment is using most New kernel and operating system can effectively be promoted crawl and the execution performance of failure, while can be mentioned using C language The execution efficiency for rising software can be improved the processing capacity of text using bash shell and improve software and writes efficiency.
The present embodiment executes the positioning lamp operation for lighting or extinguishing network interface by ethtool-p eth* sentence.
The tool of the present embodiment is formed with several encapsulation functions, and first function function is record number, the Two function function are to execute the movement for lighting and extinguishing network interface positioning lamp.Third is to judge whether to have reached setting Number, cycle count cyclecounter function is for record the number restarted, the controllability of realization either on or off network interface.
The course of work of the present embodiment specifically includes:
(1) the number setting value for lighting and extinguishing network interface positioning lamp is obtained.
(2) the positioning lamp operation for lighting network interface, i.e. execution ethtool-p eth* are executed.It runs succeeded and records number. The present embodiment records number using cycle count function CycleCounter.Crawl, which executes, lights automatically and extinguishes the specified net of network interface card Mouthful positioning lamp action process in log and save storage under file.
(3) 10 seconds are stood under system.
(4) the positioning lamp operation for extinguishing network interface is executed.Execute ethtool-p eth*.It runs succeeded and records number.
(5) 10 seconds are stood under system
(6) judgement lights or extinguishes whether network interface positioning lamp number of operations reaches number setting value.Such as reach number setting Value, stops operation, printing test result.It is such as not up to number setting value, continues cycling through and executes the positioning lamp operation for lighting network interface.
In the present embodiment, screen recycles output system configuration information result.Test is completed, and prints test on main screen Done, file where tool can generate two files after the completion of test: count and ethtool.log, count are record fortune Whether capable number, ethtool.log have abnormal generation during being recorded in real time at script operation.
Above-mentioned, although the foregoing specific embodiments of the present invention is described with reference to the accompanying drawings, not protects model to the present invention The limitation enclosed, those skilled in the art should understand that, based on the technical solutions of the present invention, those skilled in the art are not Need to make the creative labor the various modifications or changes that can be made still within protection scope of the present invention.

Claims (7)

1. a kind of method for lighting and extinguishing network interface positioning lamp under Linux system automatically, which is characterized in that include step:
Obtain the number setting value for lighting and extinguishing network interface positioning lamp;
It executes and once lights or extinguish the operation of network interface positioning lamp, and record number of operations;
Judgement lights or extinguishes whether network interface positioning lamp number of operations reaches number setting value;
If number of operations is less than number setting value, continues to execute and once light or extinguish the operation of network interface positioning lamp.
2. a kind of method for lighting and extinguishing network interface positioning lamp under Linux system automatically, which is characterized in that include step:
Obtain the number setting value for lighting and extinguishing network interface positioning lamp;
It executes and once lights the operation of network interface positioning lamp, and record number of operations;
It executes the primary network interface positioning lamp that extinguishes to operate, and records number of operations;
Judgement lights or extinguishes whether network interface positioning lamp number of operations reaches number setting value;
If number of operations is less than number setting value, continues to execute and once light the operation of network interface positioning lamp.
3. the method for lighting and extinguishing network interface positioning lamp under Linux system as described in claim 1 automatically, which is characterized in that It lights or extinguishes after network interface positioning lamp operates comprising standing process.
4. the method for lighting and extinguishing network interface positioning lamp under Linux system as described in claim 1 automatically, which is characterized in that It lights or extinguishes after network interface positioning lamp number of operations reaches number setting value, printing test result.
5. the method for lighting and extinguishing network interface positioning lamp under Linux system as claimed in claim 4 automatically, which is characterized in that Test result includes the number of operation operation.
6. the method for lighting and extinguishing network interface positioning lamp under Linux system as claimed in claim 4 automatically, which is characterized in that Test result includes exception record.
7. the method for lighting and extinguishing network interface positioning lamp under Linux system as described in claim 1 automatically, which is characterized in that It lights or extinguishes after network interface positioning lamp number of operations reaches number setting value, stop operation.
CN201811606274.XA 2018-12-27 2018-12-27 Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system Pending CN109586977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811606274.XA CN109586977A (en) 2018-12-27 2018-12-27 Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811606274.XA CN109586977A (en) 2018-12-27 2018-12-27 Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system

Publications (1)

Publication Number Publication Date
CN109586977A true CN109586977A (en) 2019-04-05

Family

ID=65931990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811606274.XA Pending CN109586977A (en) 2018-12-27 2018-12-27 Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system

Country Status (1)

Country Link
CN (1) CN109586977A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110635967A (en) * 2019-08-27 2019-12-31 深圳市菲菱科思通信技术股份有限公司 Method for automatically testing network port index

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148085A1 (en) * 2010-09-01 2013-06-13 Kazuaki Sakamoto Light source lamp lighting device and method
CN104535940A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Automatic UID lamp stability testing method based on Linux system
CN106504797A (en) * 2016-10-10 2017-03-15 郑州云海信息技术有限公司 The automatic mode of RAID IO LED lamps in test memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130148085A1 (en) * 2010-09-01 2013-06-13 Kazuaki Sakamoto Light source lamp lighting device and method
CN104535940A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Automatic UID lamp stability testing method based on Linux system
CN106504797A (en) * 2016-10-10 2017-03-15 郑州云海信息技术有限公司 The automatic mode of RAID IO LED lamps in test memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110635967A (en) * 2019-08-27 2019-12-31 深圳市菲菱科思通信技术股份有限公司 Method for automatically testing network port index
CN110635967B (en) * 2019-08-27 2021-11-16 深圳市菲菱科思通信技术股份有限公司 Method for automatically testing network port index

Similar Documents

Publication Publication Date Title
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
CN105843630B (en) A method of it is developed based on robot graphic programming
CN109448100B (en) Three-dimensional model format conversion method, system, computer device and storage medium
CN109634621A (en) Openstack Platform deployment method, storage medium, electronic equipment and system
US20180329813A1 (en) System and method for automated intelligent mobile application testing
US7984332B2 (en) Distributed system checker
US20190065347A1 (en) Debugging program code at instruction level through emulation
WO2016004657A1 (en) Device for automatically generating test cases for embedded software and method thereof
CN104714863A (en) Method for completely storing Raid card logs on basis of Linux operation system after system crashes
CN112433819A (en) Heterogeneous cluster scheduling simulation method and device, computer equipment and storage medium
CN103870338A (en) Distributive parallel computing platform and method based on CPU (central processing unit) core management
CN109359038B (en) Qt and Lua combination based configuration testing system, implementation method and device
Camara et al. DCE: Test the real code of your protocols and applications over simulated networks
CN109586977A (en) Automatically the method for network interface positioning lamp is lighted and extinguished under a kind of Linux system
CN112925555A (en) Model management method, device, equipment and storage medium
CN106227550A (en) Generation method, system and the computer of a kind of Internationalized Graphical User Interface
CN109144834A (en) Acquisition method and device, the Android system and terminal device of user behavior data
CN110147314A (en) Test method, device and computer readable storage medium
CN107506292B (en) Automatic test method for random read time delay under multilevel non-uniform directory
US20230101154A1 (en) Resumable instruction generation
CN103729202A (en) DSP reliable on-line FLASH programming method based on GEL script
CN109933479A (en) Fault simulation and emulation mode and relevant device
CN115309542A (en) Dynamic simulation method and simulation system for external operation environment of database
CN112506729B (en) Fault simulation method and device
CN113900893A (en) Log obtaining method and related equipment thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190405