CN108984438A - Serial ports authority control method and device - Google Patents
Serial ports authority control method and device Download PDFInfo
- Publication number
- CN108984438A CN108984438A CN201810671238.5A CN201810671238A CN108984438A CN 108984438 A CN108984438 A CN 108984438A CN 201810671238 A CN201810671238 A CN 201810671238A CN 108984438 A CN108984438 A CN 108984438A
- Authority
- CN
- China
- Prior art keywords
- container
- serial ports
- network equipment
- instruction
- attribute information
- 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
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/124—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
- G06F13/128—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine for dedicated transfers to a network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/604—Tools and structures for managing or administering access control systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Automation & Control Theory (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer And Data Communications (AREA)
Abstract
Serial ports authority control method and device provided by the embodiments of the present application, are related to serial port communication technology field, which comprises firstly, whether network equipment detection is the instruction for exiting current container by the instruction that serial ports inputs;Then, in the instruction to exit current container, the container attribute information that the network equipment provides current operation container is selected for user;Finally, the selection operation of network equipment response user, making the selected purpose container of the selection operation obtain the serial ports permission of the serial ports, being operated with will pass through the serial ports to the purpose container.In the above method, serial ports can switch between the container of multiple operations, to realize operation of the serial ports to multiple containers.
Description
Technical field
This application involves serial port communication technology fields, in particular to a kind of serial ports authority control method and device.
Background technique
Generally, the network equipment (for example, router or interchanger) all supports serial communication, and administrative staff can be by this
Serial ports logging in network equipment, the network equipment is managed by serial ports, is safeguarded, order is executed, checks system log output etc.
The operation of serial ports permission.Under normal conditions, the every network equipment only one serial ports.
Container is a kind of virtualization technology, and by container technique, a physical equipment can simulate more virtual units,
Multiple containers can carry out independent configuration management.
In single machine non-interrupting service upgrading (In-Service Software Upgrade, abbreviation ISSU) environment, in order to
Ensure that computer is not restarted after software upgrading, the upgrading of software version is completed using the mode of more containers (for example, two).It is old
Software version is run in a vessel, and the stylish software version of software upgrading is run in other container, is carrying out software
In escalation process, multiple containers are all in operating status.
In this condition, user needs to keep having operating right to multiple container, to understand each container in time
Container state, in this way, multiple containers share a serial ports serial ports permission become as those skilled in the art's technology urgently to be solved
Problem.
Summary of the invention
Embodiments herein describes a kind of serial ports authority control method and device, one shared for solving multiple containers
The technical issues of serial ports permission.
In a first aspect, the embodiment of the present application provides a kind of serial ports authority control method, there are multiple containers applied to operation
The network equipment, the network equipment include a serial ports, which comprises
Whether detection is the instruction for exiting current container by the instruction that the serial ports inputs;
If detecting, described instruction is to exit the instruction of current container, provides the container attribute information of current operation container
It is selected for user;
The selection operation for responding user makes the selected purpose container of the selection operation obtain the serial ports power of the serial ports
Limit, is operated with will pass through the serial ports to the purpose container.
In the above method, serial ports permission can assign the different vessels of multiple operations, to realize the behaviour to different vessels
Make, is monitored convenient for the container state to different vessels.
It optionally, in the present embodiment, whether is the instruction for exiting current container by the instruction that serial ports inputs in detection
Before, the method also includes:
When the system for detecting the network equipment is activated, serial ports authority distribution is held to preset default
Device.
Optionally, in the present embodiment, the method also includes:
Obtain the container attribute information of each container in the network equipment, wherein the container attribute information includes each
Container ID, Container Name, container state or the container start command of a container.
Optionally, in the present embodiment, the step for obtaining the container attribute information of each container in the network equipment
Suddenly include:
The container attribute information of each container in the network equipment is obtained using Docker order.
Optionally, in the present embodiment, the method also includes:
By the serial ports by one in the Container ID, Container Name, container state or container start command or
It is multiple to be sent to the display equipment connecting with the network equipment, for make to show in the display equipment Container ID,
One or more in Container Name, container state or container start command.
Second aspect, the embodiment of the present application also provide a kind of serial ports permission control device, have multiple containers applied to operation
The network equipment, the network equipment includes a serial ports, and described device includes:
Instruction detection module, for detecting by the way that whether the instruction that the serial ports inputs is the instruction for exiting current container;
Information providing module, if providing current operation for detecting that described instruction is to exit the instruction of current container
The container attribute information of container is selected for user;
Respond module makes the selected purpose container of the selection operation obtain institute for responding the selection operation of user
The serial ports permission of serial ports being stated, being operated with will pass through the serial ports to the purpose container.
Optionally, in the present embodiment, described device further include:
Distribution module, when for being activated in the system for detecting the network equipment, by serial ports authority distribution to preparatory
The default container of setting.
Optionally, in the present embodiment, described device further include:
Module is obtained, for obtaining the container attribute information of each container in the network equipment, wherein the container category
Property information includes Container ID, Container Name, container state or the container start command of each container.
Optionally, in the present embodiment, the acquisition module is specifically used for:
The container attribute information of each container in the network equipment is obtained using Docker order.
Optionally, in the present embodiment, the information providing module is specifically used for:
By the serial ports by one in the Container ID, Container Name, container state or container start command or
Multiple display equipment connecting with the network equipment that are sent to are shown, for making in the display equipment described in display
One or more in Container ID, Container Name, container state or container start command.
The third aspect, the embodiment of the present application also provide a kind of network equipment, and the network equipment includes processor and storage
There is the nonvolatile memory of several computer instructions, when the computer instruction is executed by the processor, the network is set
It is standby to execute serial ports authority control method described in first aspect.
Fourth aspect, the embodiment of the present application also provide a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes calculating
Machine program, the network equipment executes described in first aspect the computer program controls the readable storage medium storing program for executing when running where
Serial ports authority control method.
In terms of existing technologies, the application has the advantages that
Serial ports authority control method and device provided by the embodiments of the present application, firstly, network equipment detection is defeated by serial ports
Whether the instruction entered is the instruction for exiting current container;Then, in the instruction to exit current container, network equipment offer is worked as
The container attribute information of preceding operation container is selected for user;Finally, the selection operation of network equipment response user, makes the selection
The serial ports permission that selected purpose container obtains the serial ports being operated, being carried out with will pass through the serial ports to the purpose container
Operation.In the above method, serial ports permission assigns the different vessels of multiple operations, to realize a serial ports to the behaviour of multiple containers
Make, meanwhile, it does not need to configure container in advance in the above-mentioned methods, serial ports permission need to only select correspondence to want to obtain when controlling
The container of serial ports permission is obtained, it is easy to operate simple.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural block diagram of the network equipment provided by the embodiments of the present application;
Fig. 2 is the frame diagram of the network equipment provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of serial ports authority control method provided by the embodiments of the present application;
Fig. 4 is that the application implements the container attribute information list provided;
Fig. 5 is another flow diagram of serial ports authority control method provided by the embodiments of the present application;
Fig. 6 is a kind of functional block diagram of serial ports permission control device provided by the embodiments of the present application;
Fig. 7 is another functional block diagram of serial ports permission control device provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in this application.
At present under the more container environment of ISSU, below by taking twin containers environment as an example, only one of which possesses serial ports permission
Container be able to use the serial ports of equipment, one container can only also be operated by serial ports, can not to other containers into
Row operation.
During ISSU upgrading, user or developer can only be operated the network equipment by serial ports, at this
Under kind situation, user or developer generally require flexibly to be switched between the two containers, to monitor upgrading software
The container state of the container of the software upgrading progress and operation legacy version software of place container.
In the prior art, more container controls are realized using Telnet (for example, telent, ssh etc.) there are a kind of
Scheme, user needs to log on to by Telnet corresponding multiple containers in this scenario, carries out container operation.
Nevertheless applicants found that: although scheme in the prior art, which overcomes a serial ports, can only control a container
Deficiency, however using the above scheme, it is necessary to meet following condition: needing the system in container to start completely, and configures in container
It could normally be logged in after having Telnet.
In a case where, user can not log in container by Telnet:
1. the system of container is just during startup, starting is not completed also.
2. being previously not configured Telnet in the system of container.
3. there is exception in the system of container, can not normal use Telnet.
In order to overcome above-mentioned defect existing in the prior art, is studied by applicant, propose following solution, under
Face is described in detail.
Fig. 1 is please referred to, Fig. 1 is a kind of structural schematic diagram of the network equipment 100 provided by the embodiments of the present application.The network
Equipment 100 includes serial ports permission control device 110, memory 111, processor 112 and communication unit 113.
Each element of the memory 111, processor 112 and communication unit 113 is directly or indirectly electrical between each other
Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other
Number line, which is realized, to be electrically connected.
Wherein, the memory 111 may be, but not limited to, random access memory (English: Random Access
Memory, referred to as: RAM), read-only memory (English: Read Only Memory, referred to as: ROM), programmable read only memory
(English: Programmable Read-Only Memory, referred to as: PROM), erasable read-only memory (English: Erasable
Programmable Read-Only Memory, referred to as: EPROM), electricallyerasable ROM (EEROM) (English: Electric
Erasable Programmable Read-Only Memory, referred to as: EEPROM) etc..Wherein, memory 111 is for storing
Program, the processor 112 execute described program after receiving and executing instruction.The communication unit 113 is for passing through network
The communication connection between the network equipment 100 and other equipment (such as user terminal) is established, and for carrying out by network
Data send and receive.
Serial ports permission control device 110 includes that at least one can be stored in institute in the form of software or firmware (firmware)
State in memory 111 or be solidificated in the operating system (English: Operating System, abbreviation: OS) of the network equipment 100
In software function module.The processor 112 is used to execute the executable module stored in the memory 111, such as goes here and there
Software function module and computer program etc. included by mouth permission control device 110.
It should be understood that structure shown in FIG. 1 is only to illustrate, the network equipment 100 may also include than shown in Fig. 1
More perhaps less component or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware,
Software or combinations thereof is realized.
Referring to figure 2., Fig. 2 is a kind of frame diagram of the network equipment 100 provided by the embodiments of the present application, in frame diagram,
The network equipment 100 further includes serial ports 120, serial ports permission control device 110 and container 130.Serial ports permission control device 110 controls
Connection relationship between serial ports 120 and container 130.
Container 130 does not simulate the physical devices such as CPU, memory, and there is no the kernels of oneself, general only to run one group of User space
Program, and a kernel is shared with host.The appearance of container 130 primarily to meet virtual machine isolation and process isolation it
Between blank, wherein virtual machine isolation belongs to heavyweight isolation, have hardware resource (for example, memory, hard disk and CPU) consumption
Big disadvantage;Process isolation belongs to lightweight isolation, has the shortcomings that isolation effect is undesirable.
Container 130 will be encapsulated using required running environment, cache environment, database environment etc., with most succinct
Mode is supported using operation.One container 130 can be equivalent to the software systems of an independent completion (for example, comware software
System).In the present embodiment, multiple containers 130 can be run on the network equipment 100.
Serial ports 120 (Serial Interface) uses the expansion interface of serial communication mode, and serial ports 120 is by data one
One ground transmits in sequence, its main feature is that communication line is simple, as long as a pair of of transmission line realizes two-way communication, thus
Cost is greatly reduced, especially suitable for telecommunication.Serial ports 120 can be used for connecting outer PC, and by PC machine
The terminal simulation software realization of operation and the interaction of the network equipment 100, the serial ports control so run in logging in network equipment 100
Platform (serial ports control simulation softward) processed realizes the interaction with the network equipment 100.In the present embodiment, the network equipment 100 wraps
Include a serial ports 120.
In conjunction with Fig. 1, it is known that, serial ports permission control device 110 can store in the memory 111, and by processor
112 execute.The handover operation for realizing serial ports between multiple containers 130 is performed in serial ports permission control device 110.Switching
The process of operation will be specifically illustrated below.
Referring to figure 3., Fig. 3 is the access control side provided by the embodiments of the present application applied to the network equipment 100 in Fig. 2
The flow chart of method, below to the method includes each step illustrated in detail.
Whether step S310, detection are the instruction for exiting current container by the instruction that serial ports inputs.
Input equipment can be the key command inputted by keyboard by the input instruction of serial ports 120, the instruction of input,
It can be the code command by display screen input.By taking key command as an example, key command can be single key and be pressed
The key command of Shi Shengcheng is also possible to the key command generated when multiple keys are concurrently depressed.
In the present embodiment, the instruction for exiting current container 130 can be generation when multiple keys are concurrently depressed
Key command, specifically, the instruction for exiting current container 130 can be the combination of tri- keys of ctrl+p+q.
In the present embodiment, current container 130 refers to the container 130 with serial ports permission, exits current container 130 and refers to
Current container 130 abandons serial ports permission, i.e., is changed to grasp by serial ports from that can pass through operation of serial-port by current container 130
The process of work.
User is detected by input equipment via the instruction that serial ports 120 inputs, exits current container if detecting
130 instruction, then enter step S320;Conversely, continuing step S310.
Step S320, the container attribute information for providing current operation container are selected for user.
When the instruction of input is to exit the instruction of current container 130, by the container attribute information of current operation container 130
Be sent to input equipment by serial ports 120, input equipment (display equipment) shows said vesse attribute information, so as to
Family is selected.
Referring to figure 4., in the present embodiment, container attribute information may include the Container ID of container 130, Container Name,
Container state or container start command etc..Specifically, by taking the container 130 that number is 1 in Fig. 4 as an example, container 130 that number is 1
Container ID can be 329de3dabb50;The Container Name of container 130 can be v9000;The container state of container 130 can be with
It is online 6 hours;The container start command of container 130 can be "/bin/bash/bin/v9.sh ".
Step S330 responds the selection operation of user, and the selected purpose container of the selection operation is made to obtain serial ports
Serial ports permission is operated with will pass through serial ports to the purpose container.
In the present embodiment, the network equipment 100 sends the container attribute information of current operation container 130 to and serial ports
It being selected on the input equipment of 120 connections for user, wherein user can carry out container 130 by the number of input pod and select,
Container 130 can also be carried out by the ID of input pod or the title of container to select.
After completing selection operation, the network equipment 100 responds above-mentioned selection operation, and serial ports permission is assigned to the purpose of selection
Container 130.Operation so as to user by serial ports realization to purpose container.Wherein the operation includes: to container state
Check, the order of containment system and configuration such as issue at the operation.
Serial ports authority control method provided in this embodiment, firstly, what the detection of the network equipment 100 was inputted by serial ports 120
Whether instruction is the instruction for exiting current container 130;Then, in the instruction to exit current container 130, current operation is provided
The container attribute information of container 130 is selected for user;Finally, the selection operation of response user, the serial ports permission is controlled and is assigned
The purpose container of selection is given, to operate by the serial ports to the purpose container.
The above method can solve the shared of only one serial ports 120 under more 130 environment of container and use problem, support user
It is switched to the operation of different vessels as needed, the operating status of container 130 can be monitored and be checked, targetedly
It does and controls and operates accordingly, meanwhile, it does not need to configure container in advance in the above-mentioned methods, when serial ports permission controls only
The corresponding container for going for serial ports permission need to be selected, it is easy to operate simple.
The embodiment of the present application further includes the steps that obtaining container attribute information, specifically, in a kind of implementation of the present embodiment
In mode, the network equipment 100 can obtain each appearance in the network equipment 100 when detecting the instruction for exiting current container 130
The container attribute information of device 130.
Optionally, the container attribute information of each container 130 in the network equipment is obtained using Docker order.
Specifically, the container list of all operations in the network equipment can be checked using docker ps order;It uses
Docker inspect order can check the more detailed container attribute information of each container 130.
Of course, it should be understood that the present embodiment can also use other Docker orders, other Docker orders can be with
Referring to the prior art, will not enumerate herein.
In the another embodiment of the present embodiment, the network equipment 100 can also be obtained according to certain time interval
The container attribute information of each container 130 of operation.When detecting the instruction for exiting current container 130, the last time is obtained
The container attribute information taken is selected as the container attribute information of current operation container 130 for user, wherein currently runs container
130 refer to all containers 130 currently run on the network equipment 100.
In the present embodiment, container attribute information is sent to and the network equipment 100 by the network equipment 100 by serial ports 120
The display equipment of connection.When showing that equipment shows container attribute information, Container ID, Container Name, container state can will be shown
Or one or more in container start command is shown.
Referring to figure 5., in the embodiment of the present application, before step S310, the method can also include:
Step S309 is preset serial ports authority distribution when the system for detecting the network equipment is activated
Default container 130.
In the system starting of the network equipment 100, by serial ports authority distribution to default container 130, default container 130 can be with
It is set as the container 130 that user is concerned about the most, such setting can reduce the unnecessary serial ports permission control operation of user.
The embodiment of the present application also provides a kind of serial ports permission control device 110, unlike above example, this serial ports
Permission control device 110 is to describe application scheme from the angle of virtual bench.Please refer to Fig. 6, serial ports permission control device
110 may include with lower module.
Instruction detection module 1101 passes through whether the instruction that serial ports 120 inputs is the finger for exiting current container for detecting
It enables.
Input equipment can be the key command inputted by keyboard by the input instruction of serial ports 120, the instruction of input,
It can be the code command by display screen input.By taking key command as an example, key command can be single key and be pressed
The key command of Shi Shengcheng is also possible to the key command generated when multiple keys are concurrently depressed.
In the present embodiment, the instruction for exiting current container 130 can be generation when multiple keys are concurrently depressed
Key command, specifically, the instruction for exiting current container 130 can be the combination of tri- keys of ctrl+p+q.
In the present embodiment, current container 130 refers to the container 130 with serial ports permission, exits current container 130 and refers to
Current container 130 abandons serial ports permission, i.e., is changed to grasp by serial ports from that can pass through operation of serial-port by current container 130
The process of work.
If information providing module 1102 provides current fortune for detecting that described instruction is to exit the instruction of current container
The container attribute information of row container is selected for user.
Information providing module 1102 is specifically used for: by the serial ports 120 by the Container ID, Container Name, container-like
One or more in state or container start command is sent to the display equipment connecting with the network equipment 100 and is shown
Show, shows one in the Container ID, Container Name, container state or container start command in the display equipment for making
It is a or multiple.
Respond module 1103 makes the selected purpose container of selection operation be gone here and there for responding the selection operation of user
The serial ports permission of mouth, is operated with will pass through serial ports to the purpose container.
Fig. 7 is please referred to, in the present embodiment, the serial ports permission control device 110 can also include: distribution module
1104。
Distribution module 1104 gives serial ports authority distribution when for being activated in the system for detecting the network equipment
Preset default container 130.
Referring once again to Fig. 7, in the present embodiment, the serial ports permission control device 110 can also include obtaining module
1105。
Obtain the container attribute information that module 1105 is used to obtain each container in the network equipment.
In an embodiment of the present embodiment, information providing module 1102 can exit current container detecting
When instruction, the container attribute information of each container in the network equipment 100 is obtained.
Optionally, module 1105 is obtained using each container 130 in the Docker order acquisition network equipment 100
Container attribute information.Specifically, all operations in the network equipment can be checked using docker ps order by obtaining module 1105
Container list can check the more detailed container attribute information of each container 130 using docker inspect order.
In the another embodiment of the present embodiment, obtaining module 1105 can also obtain according to certain time interval
The container attribute information of each container 130 of operation.When detecting the instruction for exiting current container, information providing module 1102
The container attribute information that the last time is obtained is selected as the container attribute information of current operation container 130 for user.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that the execution of the network equipment 100 the application is each
The all or part of the steps of a embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, letter
Claim: RAM), the various media that can store program code such as magnetic or disk.
In conclusion serial ports authority control method provided by the embodiments of the present application and device.Firstly, network equipment detection is logical
Whether the instruction for crossing serial ports input is the instruction for exiting current container;Then, network is set when to exit the instruction of current container
The standby container attribute information for providing current operation container is selected for user;Finally, the selection operation of network equipment response user, by
The selected purpose container of selection operation obtains serial ports permission, to be operated by the serial ports to the purpose container.
The above method can solve the shared of only one serial ports under more container environment and use problem, support user according to need
It is switched to the operation of different vessels, the operating status of container can be monitored and be checked, is targetedly done corresponding
It controls and operates.Meanwhile not needing to configure container in advance in the above-mentioned methods, serial ports permission need to only select pair when controlling
The container of serial ports permission should be gone for, it is easy to operate simple.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (10)
1. a kind of serial ports authority control method, which is characterized in that have the network equipment of multiple containers, the network applied to operation
Equipment includes a serial ports, which comprises
Whether detection is the instruction for exiting current container by the instruction that the serial ports inputs;
If detecting, described instruction is to exit the instruction of current container, provide the container attribute information of current operation container for
Family selection;
The selection operation for responding user, makes the selected purpose container of the selection operation obtain the serial ports permission of the serial ports,
It is operated with will pass through the serial ports to the purpose container.
2. the method as described in claim 1, which is characterized in that in the instruction that input by serial ports of detection whether be to exit currently
Before the instruction of container, the method also includes:
When the system for detecting the network equipment is activated, serial ports authority distribution is given to preset default container.
3. the method as described in claim 1, which is characterized in that the method also includes:
Obtain the container attribute information of each container in the network equipment, wherein the container attribute information includes each appearance
Container ID, Container Name, container state or the container start command of device.
4. method as claimed in claim 3, which is characterized in that the container category for obtaining each container in the network equipment
The step of property information includes:
The container attribute information of each container in the network equipment is obtained using Docker order.
5. method as claimed in claim 3, which is characterized in that the method also includes:
By the serial ports by one or more in the Container ID, Container Name, container state or container start command
It is sent to the display equipment connecting with the network equipment, shows the Container ID, container in the display equipment for making
One or more in title, container state or container start command.
6. a kind of serial ports permission control device, which is characterized in that have the network equipment of multiple containers, the network applied to operation
Equipment includes a serial ports, and described device includes:
Instruction detection module, for detecting by the way that whether the instruction that the serial ports inputs is the instruction for exiting current container;
Information providing module, if providing current operation container for detecting that described instruction is to exit the instruction of current container
Container attribute information for user select;
Respond module makes the selected purpose container of the selection operation obtain the string for responding the selection operation of user
The serial ports permission of mouth, is operated with will pass through the serial ports to the purpose container.
7. device as claimed in claim 6, which is characterized in that described device further include:
When for being activated in the system for detecting the network equipment, serial ports authority distribution is preset for distribution module
Default container.
8. device as claimed in claim 6, which is characterized in that described device further include:
Module is obtained, for obtaining the container attribute information of each container in the network equipment, wherein the container attribute letter
Breath includes Container ID, Container Name, container state or the container start command of each container.
9. device as claimed in claim 8, which is characterized in that the acquisition module is specifically used for:
The container attribute information of each container in the network equipment is obtained using Docker order.
10. device as claimed in claim 8, which is characterized in that the information providing module is specifically used for:
By the serial ports by one or more in the Container ID, Container Name, container state or container start command
It is sent to the display equipment connecting with the network equipment to be shown, shows the container in the display equipment for making
One or more in ID, Container Name, container state or container start command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810671238.5A CN108984438A (en) | 2018-06-26 | 2018-06-26 | Serial ports authority control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810671238.5A CN108984438A (en) | 2018-06-26 | 2018-06-26 | Serial ports authority control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984438A true CN108984438A (en) | 2018-12-11 |
Family
ID=64538803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810671238.5A Pending CN108984438A (en) | 2018-06-26 | 2018-06-26 | Serial ports authority control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984438A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796914A (en) * | 2020-07-20 | 2020-10-20 | 山东超越数控电子股份有限公司 | Method for setting attribute of physical serial port, virtual machine and host machine |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776063A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | Mobile terminal, container telephonic communication function realizing method and across container communication means |
CN107391313A (en) * | 2017-07-31 | 2017-11-24 | 郑州云海信息技术有限公司 | The operation method and device of a kind of container |
CN108021425A (en) * | 2017-12-28 | 2018-05-11 | 南开大学 | A kind of virtual desktop system and operation method for integrating multiple Graphics Application windows |
-
2018
- 2018-06-26 CN CN201810671238.5A patent/CN108984438A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776063A (en) * | 2016-11-29 | 2017-05-31 | 北京元心科技有限公司 | Mobile terminal, container telephonic communication function realizing method and across container communication means |
CN107391313A (en) * | 2017-07-31 | 2017-11-24 | 郑州云海信息技术有限公司 | The operation method and device of a kind of container |
CN108021425A (en) * | 2017-12-28 | 2018-05-11 | 南开大学 | A kind of virtual desktop system and operation method for integrating multiple Graphics Application windows |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796914A (en) * | 2020-07-20 | 2020-10-20 | 山东超越数控电子股份有限公司 | Method for setting attribute of physical serial port, virtual machine and host machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105404525B (en) | Manage the method and device of the basic input output system configuration in computer system | |
US8161393B2 (en) | Arrangements for managing processing components using a graphical user interface | |
US9426026B2 (en) | Cluster configuration | |
CN107480011B (en) | BIOS switching device | |
EP3709149B1 (en) | Off-board flash memory | |
US10951471B2 (en) | Mechanism for hardware configuration and software deployment | |
US10162646B2 (en) | System for programmably configuring a motherboard | |
CN101853172A (en) | Device and method for dynamically upgrading complex programmable logic device (CPLD) | |
CN111669284B (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
US20180276385A1 (en) | System and method for restoration of a trusted system firmware state | |
CN104063551B (en) | A kind of modeling method of avionics system Life cycle unified model | |
JP2002132518A (en) | Virtual computer system and exchanging method of input- output apparatus among virtual computers | |
CN101739287A (en) | Device, system and method for managing virtual machines | |
US20090217103A1 (en) | Logical to physical connectivity verification in a predefined networking environment | |
US20120297091A1 (en) | Method and apparatus of server i/o migration management | |
CN109510742A (en) | A kind of server network interface card remote test method, device, terminal and storage medium | |
CN101202764A (en) | Method and system for defining link state of virtual Ethernet adapter | |
CN102253845B (en) | Server system | |
CN109783390A (en) | PSU firmware promotion and demotion stability test method, apparatus, terminal and storage medium | |
CN103268302B (en) | A kind of Interface Expanding circuit, Interface Expanding method of attachment and embedded system | |
KR20140076185A (en) | Mobile device for simultaneous executing multi operating program and method thereof | |
CN110347558A (en) | A kind of server apparatus method for diagnosing faults and device and equipment | |
CN108984438A (en) | Serial ports authority control method and device | |
CN106528114B (en) | Android firmware application device and android firmware upgrading method | |
US20180081930A1 (en) | Maintaining storage profile consistency in a cluster having local and shared storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |