CN106775612A - Interrupt the method and device of network equipment background process - Google Patents
Interrupt the method and device of network equipment background process Download PDFInfo
- Publication number
- CN106775612A CN106775612A CN201610963973.4A CN201610963973A CN106775612A CN 106775612 A CN106775612 A CN 106775612A CN 201610963973 A CN201610963973 A CN 201610963973A CN 106775612 A CN106775612 A CN 106775612A
- Authority
- CN
- China
- Prior art keywords
- ping
- ftp
- user
- signal
- network equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/486—Scheduler internals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of method and device for interrupting network equipment background process, and the execution of the ping or ftp processes of the corresponding network equipment of ping or ftp orders issued by CLI can be at once stopped when needing and stopping.The method includes:S1, the signal for receiving kernel transmission, wherein, the kernel sends the signal and is triggered by the triggering command of user;S2, by performing the execution that signal process function terminates ping the or ftp processes of the corresponding network equipment of ping or ftp orders that user is issued by CLI, wherein, it is described order be the newest order for issuing of user.
Description
Technical field
The present invention relates to CLI technical fields, and in particular to a kind of method and device of interruption network equipment background process.
Background technology
The network equipment is used for processing the message in network, while also externally providing CLI (command-line
Interface, Command Line Interface) to be operated to the network equipment, such as ping, or ftp etc..
For the network equipment, when ping or ftp orders are issued by CLI, typically start ping or ftp
Process, when these processes are carrying out, CLI is will not to respond other operations, it is necessary to wait these orders to perform
After finishing.When network goes wrong, ping or ftp will wait a period of time just to terminate, or user input order
Afterwards, think to terminate order in advance, be now accomplished by a kind of method and stop correspondence background process at once, but now but without effective
Method can at once stop correspondence background process.
The content of the invention
In view of this, the present invention provides a kind of method and device for interrupting network equipment background process, can need to stop
Ping the or ftp processes of the corresponding network equipment of ping or ftp orders that stop being issued by CLI at once when only are held
OK.
On the one hand, the embodiment of the present invention proposes a kind of method for interrupting network equipment background process, including:
S1, the signal for receiving kernel transmission, wherein, the kernel sends the signal and is triggered by the triggering command of user;
S2, terminate the corresponding network of ping or ftp orders that user is issued by CLI by performing signal process function
The execution of the ping or ftp processes of equipment, wherein, the order is the newest order for issuing of user.
On the other hand, the embodiment of the present invention proposes a kind of device for interrupting network equipment background process, including:
Receiving unit, the signal for receiving kernel transmission, wherein, the kernel sends triggering of the signal by user
Instruction triggers;
End unit, for terminating ping the or ftp orders that user is issued by CLI by performing signal process function
The execution of the ping or ftp processes of the corresponding network equipment, wherein, the order is the newest order for issuing of user.
The method and device for interrupting network equipment background process provided in an embodiment of the present invention, can be by when needing to stop
User performs trigger action, triggers kernel sending signal, and the signal is that the trigger signal performed as signal process function is triggered
Signal process function is performed, and signal process function can terminate the execution of corresponding process, it is thus possible to stop passing through CLI at once
The execution of the ping or ftp processes of the corresponding network equipment of ping or ftp orders for issuing.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the embodiment of method one that the present invention interrupts network equipment background process;
Fig. 2 is the structural representation of the embodiment of device one that the present invention interrupts network equipment background process.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is explicitly described, it is clear that described embodiment be the present invention
A part of embodiment, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having
The every other embodiment obtained under the premise of creative work is made, the scope of protection of the invention is belonged to.
Referring to Fig. 1, the present embodiment discloses a kind of method for interrupting network equipment background process, including:
S1, the signal for receiving kernel transmission, wherein, the kernel sends the signal and is triggered by the triggering command of user;
It should be noted that user can simultaneously on keypad ctrl and c keys triggering kernel sending signal, the now letter
Number be SIGINT signals.Certainly user's trigger action of triggering kernel sending signal can also be other operations, no longer go to live in the household of one's in-laws on getting married herein
State, natural if other trigger actions, then what kernel sent is corresponding signal.
S2, terminate the corresponding network of ping or ftp orders that user is issued by CLI by performing signal process function
The execution of the ping or ftp processes of equipment, wherein, the order is the newest order for issuing of user.
It is understood that CLI processes are provided with the signal process function of the signal sent to kernel, when user passes through key
When disk carries out trigger action, kernel can be triggered and send a signal to CLI processes, now CLI processes can perform signal transacting letter
Number.
In the present embodiment, the trigger signal that the signal that kernel sends is performed as trigger signal treatment function performs signal
Work involved by treatment function can include:Ping the or ftp orders that S20, acquisition user are issued by CLI, and search
Comprising keyword, wherein, the keyword include ping and ftp;S21, according to the keyword issue it is corresponding end refer to
Order, to terminate the execution of the ping or ftp processes of the corresponding network equipment.
When user issues ping or ftp orders by CLI, the order that can be issued to user is recorded and protected
Deposit, subsequently to carry out keyword search to the order.When keyword included in the order that user issues is ping, can
To issue killall-q-s 2ping, or keyword included in the order that user issues is when being ftp, can issue
killall-q-9ftp.Such as, if the newest order for issuing of user is ping 1.1.1.1, because it includes ping keywords, then
Killall-q-s 2ping can be issued.
The method for interrupting network equipment background process provided in an embodiment of the present invention, can be held when needing and stopping by user
Row trigger action, triggers kernel sending signal, and the signal is at the trigger signal trigger signal performed as signal process function
Reason function is performed, and signal process function can terminate the execution of corresponding process, it is thus possible to stop what is being issued by CLI at once
The execution of the ping or ftp processes of the corresponding network equipment of ping or ftp orders.
Referring to Fig. 2, the present embodiment discloses a kind of device for interrupting network equipment background process, including:
Receiving unit 1, the signal for receiving kernel transmission, wherein, the kernel sends the signal touching by user
Send instructions triggering;
It should be noted that user can simultaneously on keypad ctrl and c keys triggering kernel sending signal, the now letter
Number be SIGINT signals.
End unit 2, for terminating ping or the ftp lives that user is issued by CLI by performing signal process function
The execution of the ping or ftp processes of the corresponding network equipment is made, wherein, the order is the newest order for issuing of user.
In the present embodiment, the end unit can include the structure not shown in following figure:
Subelement is obtained, for obtaining ping the or ftp orders that user is issued by CLI, and the key for including is searched
Word, wherein, the keyword includes ping and ftp;
Subelement is issued, for issuing corresponding END instruction according to the keyword, to terminate the corresponding network equipment
Ping or ftp processes execution.
It should be noted that when the keyword included in the order that user issues is ping, can issue
Killall-q-s 2ping, or keyword included in the order that user issues is when being ftp, can issue
killall-q-9ftp。
The device for interrupting network equipment background process provided in an embodiment of the present invention, can be held when needing and stopping by user
Row trigger action, triggers kernel sending signal, and the signal is at the trigger signal trigger signal performed as signal process function
Reason function is performed, and signal process function can terminate the execution of corresponding process, it is thus possible to stop what is being issued by CLI at once
The execution of the ping or ftp processes of the corresponding network equipment of ping or ftp orders.
On the basis of aforementioned means embodiment, described device can also include the structure not shown in following figure:
Subelement is preserved, for before the acquisition subelement work, ping or ftp being issued by CLI in user
During order, the order that user issues is recorded and preserved.
In the present embodiment, when user passes through CLI transmitting order to lower levels every time, recorded simultaneously by the order that user issues
Preserve, be easy to the order for subsequently being issued according to user to issue corresponding END instruction.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the application can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant be intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.Term " on ", D score etc. refers to
The orientation or position relationship for showing are, based on orientation shown in the drawings or position relationship, to be for only for ease of the description present invention and simplify
Description, must be with specific orientation, with specific azimuth configuration and behaviour rather than the device or element for indicating or imply meaning
Make, therefore be not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be being fixedly connected, or being detachably connected, or be integrally connected;Can be
Mechanically connect, or electrically connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two
The connection of element internal.For the ordinary skill in the art, can as the case may be understand above-mentioned term at this
Concrete meaning in invention.
In specification of the invention, numerous specific details are set forth.Although it is understood that, embodiments of the invention can
Put into practice with the case of without these details.In some instances, known method, structure and skill is not been shown in detail
Art, so as not to obscure the understanding of this description.Similarly, it will be appreciated that disclose and help understand each to simplify the present invention
One or more in individual inventive aspect, in above to the description of exemplary embodiment of the invention, of the invention each is special
Levying in be grouped together into sometimes single embodiment, figure or descriptions thereof.However, should not be by the method solution of the disclosure
Release and be intended in reflection is following:The feature that i.e. the present invention for required protection requirement ratio is expressly recited in each claim is more
Many features.More precisely, as the following claims reflect, inventive aspect is less than single reality disclosed above
Apply all features of example.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment,
Wherein each claim is in itself as separate embodiments of the invention.It should be noted that in the case where not conflicting, this
The feature in embodiment and embodiment in application can be mutually combined.The invention is not limited in any single aspect,
Any single embodiment is not limited to, any combination and/or the displacement of these aspects and/or embodiment is also not limited to.And
And, can be used alone it is of the invention each aspect and/or embodiment or with it is one or more other aspect and/or its implementation
Example is used in combination.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme, it all should cover in the middle of the scope of claim of the invention and specification.
Claims (8)
1. it is a kind of interrupt network equipment background process method, it is characterised in that including:
S1, the signal for receiving kernel transmission, wherein, the kernel sends the signal and is triggered by the triggering command of user;
S2, terminate the corresponding network equipment of ping or ftp orders that user is issued by CLI by performing signal process function
Ping or ftp processes execution, wherein, it is described order be the newest order for issuing of user.
2. method according to claim 1, it is characterised in that the signal is SIGINT signals.
3. method according to claim 1 and 2, it is characterised in that the S2, including:
Ping the or ftp orders that S20, acquisition user are issued by CLI, and the keyword for including is searched, wherein, the key
Word includes ping and ftp;
S21, corresponding END instruction is issued according to the keyword, entered with the ping or ftp that terminate the corresponding network equipment
The execution of journey.
4. method according to claim 3, it is characterised in that before the S20, also include:
When user issues ping or ftp orders by CLI, the order that user issues is recorded and preserved.
5. it is a kind of interrupt network equipment background process device, it is characterised in that including:
Receiving unit, the signal for receiving kernel transmission, wherein, the kernel sends triggering command of the signal by user
Triggering;
End unit, for terminating ping the or ftp orders correspondence that user is issued by CLI by performing signal process function
The network equipment ping or ftp processes execution, wherein, it is described order be the newest order for issuing of user.
6. device according to claim 5, it is characterised in that the signal is SIGINT signals.
7. the device according to claim 5 or 6, it is characterised in that the end unit, including:
Subelement is obtained, for obtaining ping the or ftp orders that user is issued by CLI, and the keyword for including is searched, its
In, the keyword includes ping and ftp;
Subelement is issued, for issuing corresponding END instruction according to the keyword, to terminate the corresponding network equipment
The execution of ping or ftp processes.
8. device according to claim 7, it is characterised in that also include:
Subelement is preserved, for before the acquisition subelement work, ping or ftp orders being issued by CLI in user
When, the order that user issues is recorded and preserved.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610963973.4A CN106775612A (en) | 2016-10-28 | 2016-10-28 | Interrupt the method and device of network equipment background process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610963973.4A CN106775612A (en) | 2016-10-28 | 2016-10-28 | Interrupt the method and device of network equipment background process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106775612A true CN106775612A (en) | 2017-05-31 |
Family
ID=58972393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610963973.4A Pending CN106775612A (en) | 2016-10-28 | 2016-10-28 | Interrupt the method and device of network equipment background process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106775612A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656743A (en) * | 2018-12-28 | 2019-04-19 | 杭州迪普科技股份有限公司 | A kind of core file management method and device, equipment, medium |
-
2016
- 2016-10-28 CN CN201610963973.4A patent/CN106775612A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656743A (en) * | 2018-12-28 | 2019-04-19 | 杭州迪普科技股份有限公司 | A kind of core file management method and device, equipment, medium |
CN109656743B (en) * | 2018-12-28 | 2022-04-26 | 杭州迪普科技股份有限公司 | Core file management method and device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9141424B2 (en) | Achieving continuous availability for planned workload and site switches with no data loss | |
US9734343B2 (en) | Detection and prevention of sensitive information leaks | |
US20170277336A1 (en) | Touch Method and Device, Touch Display Apparatus | |
WO2014113367A1 (en) | System for and a method of cognitive behavior recognition | |
US9355002B2 (en) | Capturing trace information using annotated trace output | |
CN106462451B (en) | Virtual platform handles interrupt method and relevant device | |
US20140108345A1 (en) | Exchanging locations of an out of synchronization indicator and a change recording indicator via pointers | |
EP3314506A1 (en) | Query engine for remote endpoint information retrieval | |
CN107077373B (en) | Method and system for executing multiple threads on computer processor core | |
US9069712B2 (en) | Communication of conditions at a primary storage controller to a host | |
US10095608B2 (en) | Application test automation transmitting data via phone/voice calls | |
US9727335B2 (en) | Clearing specified blocks of main storage | |
JP2009037271A (en) | Method for stopping virtual computer system, and computer device | |
US9678830B2 (en) | Recovery improvement for quiesced systems | |
US10657022B2 (en) | Input and output recording device and method, CPU and data read and write operation method thereof | |
CN106775612A (en) | Interrupt the method and device of network equipment background process | |
US9898301B2 (en) | Framework to provide time bound execution of co-processor commands | |
JP6205749B2 (en) | Server apparatus, virtual desktop system, input information processing method, and program thereof | |
KR102472878B1 (en) | Block commit method of virtual machine environment and, virtual system for performing the method | |
CN108062224A (en) | Data read-write method, device and computing device based on file handle | |
WO2018228524A1 (en) | Interrupt control method and apparatus of ssd control chip, and ssd device | |
US10289420B2 (en) | Lightweight interrupts for floating point exceptions using enable bit in branch event status and control register (BESCR) | |
US11068357B2 (en) | Uninterrupted restore operation using a time based approach | |
CN104820561B (en) | A kind of safety control system and its control method based on touch-screen and PLC | |
US10152388B1 (en) | Active stream counts for storage appliances |
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 |