CN100550745C - A kind of interface helping method and device - Google Patents

A kind of interface helping method and device Download PDF

Info

Publication number
CN100550745C
CN100550745C CNB2006101093916A CN200610109391A CN100550745C CN 100550745 C CN100550745 C CN 100550745C CN B2006101093916 A CNB2006101093916 A CN B2006101093916A CN 200610109391 A CN200610109391 A CN 200610109391A CN 100550745 C CN100550745 C CN 100550745C
Authority
CN
China
Prior art keywords
interface
condition
interfaces
command
help
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.)
Expired - Fee Related
Application number
CNB2006101093916A
Other languages
Chinese (zh)
Other versions
CN1937508A (en
Inventor
陈世兴
樊迟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2006101093916A priority Critical patent/CN100550745C/en
Publication of CN1937508A publication Critical patent/CN1937508A/en
Application granted granted Critical
Publication of CN100550745C publication Critical patent/CN100550745C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of interface helping method, the interface condition that system command and its is adaptive is associated; When fill order helps, in the interface message of current existence, search the set of interfaces of the interface condition that satisfies this order association; In described set of interfaces scope, provide interface help information.The invention also discloses a kind of interface help device, comprise the interface memory cell, be used to store the interface message of current existence; Associative cell is used for the interface condition that system command and its is adaptive and is associated; Query unit is used for treating in the associative cell inquiry interface condition of HELP command association, and inquires about the set of interfaces that satisfies described interface condition in the interface memory cell; The helping prompt unit is used for providing interface help information in the set of interfaces scope that described query unit provides.Use technical solution of the present invention, the interface message that the order with user's input can be had nothing to do filters out, and then serves for the user provides screening.

Description

A kind of interface helping method and device
Technical field
The present invention relates to the networking products field, relate in particular to a kind of interface helping method and installation method.
Background technology
Popular along with networking products becomes a measurement index of product quality to close friend's property optimized of user interface.At present a responsible consumer interface of networking products is exactly an order line, and the user is when the configuration order row, and using maximum is configuration to network interface.In layoutprocedure, system can provide interface help for the user, finishes configuration to network interface with assisting users.
Whole interfaces that the existing interface help scheme system that counts supports, and the card number at each interface place and plate number.When the user imported a hope and points out out the HELP command of subordinate's symbol, system can help out the next stage symbol (for example plate number or card number) of total interface type, for user oneself selection.
For example, certain user need dispose two layers of characteristic about network interface, then in order line HELP command of input, wish that system can point out out alternative next stage symbol, suppose that interface help information is divided into three grades: plate number, card number, interface number.So, at first point out out all plates of existing in the system number; After the user selects wherein certain plate number, reresent the whole card numbers that under the selected plate number; After the user selects wherein certain card number, point out out the whole interface numbers under this card number at last, so that the user selects one of them interface to carry out two layers of attribute configuration.
Because the next stage symbol of pointing out out is the full detail that is under the jurisdiction of the upper level symbol, therefore the user might occur and not support two layers of attribute configuration according to the last interface of help information one-level one-level selection, as what choose is three layer interfaces, after the user confirms this order, this is ordered when carrying out in the software of system and just finds to carry out this order, and then just can print the information of " command execution mistake " this moment.This shows that existing this interface help scheme is for the user, very unfriendly, especially those dispose unfamiliar user to network interface, may need repeatedly to repeat to select just can find adaptive interface.
Summary of the invention
The problem to be solved in the present invention provides a kind of interface helping method and device, screens before providing help information to the user, the user can not occur and select just to find the wrong technical problem of interface selection after physical interface, the fill order.
For solving the problems of the technologies described above, the objective of the invention is to be achieved through the following technical solutions: a kind of interface helping method may further comprise the steps: the interface condition that system command and its is adaptive is associated; When fill order helps, in the interface message of current existence, search the set of interfaces of the interface condition that satisfies this order association; In described set of interfaces scope, provide interface help information.
Preferably, described method also comprises: according to the interface message of the current existence of interface condition classification storage.
Preferably, when fill order helps, adopt the traversal mode to search the set of interfaces of the interface condition that satisfies this order association.
Preferably, the interface condition of described order association is determined by command element self.
Preferably, the interface condition of described order association is determined jointly by command execution environment and command element.
Preferably, described interface condition comprises interface type and interface attributes.
A kind of interface help device comprises the interface memory cell, is used to store the interface message of current existence; Associative cell is used for the interface condition that system command and its is adaptive and is associated; Query unit is used for treating in the associative cell inquiry interface condition of HELP command association, and inquires about the set of interfaces that satisfies described interface condition in the interface memory cell; The helping prompt unit is used for providing interface help information in the set of interfaces scope that described query unit provides.
Preferably, described interface memory cell is stored the interface message of current existence according to the distinct interface condition stub.
Preferably, described query unit adopts the traversal mode to inquire about the set of interfaces that satisfies described interface condition.
Preferably, described interface condition comprises interface type and interface attributes.
Above technical scheme in interface helping method of the present invention, at first is associated system command and its required interface condition as can be seen; When fill order helps, search the set of interfaces of the interface condition that satisfies this order association then; And then make system in described set of interfaces scope, provide interface help information.Thus, system just can not help out can not carry out the interface relevant information of this order at all, thereby avoids the user to select the possibility of wrong interface information, the user therefore can not occur and just find the wrong phenomenon of interface selection after fill order.
From another angle, by interface helping method provided by the invention, the interface that can overanxious user need not be concerned about in this command configuration reaches the accurate help of the next stage symbol of docking port title, thereby improves the friendly of networking products Command Line Interface.
Description of drawings
Fig. 1 is the first embodiment flow chart of interface helping method of the present invention;
Fig. 2 adopts the schematic diagram of tree type storage organization classification memory interface information for the present invention;
Fig. 3 is the second embodiment flow chart of interface helping method of the present invention;
Fig. 4 is the example structure schematic diagram of interface help device of the present invention.
Embodiment
See also Fig. 1, it is the first embodiment flow chart of a kind of interface helping method disclosed by the invention.
Step 110: during Ordered Registration, system command and adaptive interface condition are associated.
Every order all has two features in the system: command execution environment and command element.The command execution environment is meant that mainly it carries out under certain view; Command element is meant the main body that constitutes order, for example, and one
Three letters in " STP (Spanning-Tree Protocol) " order just can be called command element.
For networking products, the objective for implementation of order generally is an interface, enables under interface as configuration stp.The enforcement interface of different command correspondence is different, and for example the related command of above-mentioned STP can only carry out on two layers of Ethernet interface; And the order of relevant IP address can only be carried out on three layers of Ethernet interface interface.Described " Ethernet interface " is a kind of in the interface type, for example also has types such as serial ports and VLAN interface; " two layers " can think a kind of interface attributes under the interface type, as also having " three layers " interface attributes.Usually interface type and interface attributes are referred to as interface condition, every adaptive interface condition of order is not quite similar.
Usually, command element can a kind of order of unique identification, and then command element self has just been determined the interface condition adaptive with this order.But, do not get rid of the same commands element under the different command execution environment corresponding to the different order of essence, in this case, determine jointly by command execution environment and command element with the adaptive interface condition of order.
Networking products at first can carry out system initialization when start, comprise Ordered Registration in this process.When Ordered Registration, each bar system command is associated with its adaptive interface condition.For example, order and two layers of Ethernet interface condition about STP are associated, order and three layers of Ethernet interface condition about IP are associated, all the other order similar processing.
Step 120: the interface message of storing current existence according to the distinct interface condition stub.
In initialization procedure, not only comprise aforesaid Ordered Registration, also comprise the interface establishment.Interface is created and mainly is meant, the interface relevant information of the current existence of networking products is collected storage.Preferably, store the interface message of current existence according to the distinct interface condition stub.So-called interface message for the present invention, is often referred to interface name, and interface name is according under the most comprehensive situation, should comprise interface type title, plate number, card is good and interface number.For example an interface name is IFTYPE3/1/2, and wherein, IFTYPE represents a kind of character string of general-purpose interface type; " 3 " display plate number; " 1 " expression card number; " 2 " expression interface number.Because interface type name character string is long, can use numeral, and is further again, in storage organization, can represent the numeral of node representative with the position at node place.See also Fig. 2, it adopts tree type storage organization classification memory interface information schematic diagram for the present invention, is holding in shown in this figure, will further describe the storage mode of interface name.
The start node of the type of tree shown in figure storage organization is considered as root node (not having practical significance), comprises 18 one-level nodes below the start node: label 1~18, and on this one deck, the interface condition difference of different node locations representatives.Need explanation, the label of " 1~18 " is just in order to illustrate node location, and for example, on behalf of the interface condition of this node branch, the one-level node that is in the 15th position be " serial type interface "; On behalf of the interface condition of this node branch, the one-level node that is in the 16th position be: " Ethernet (Ethernet) interface "; On behalf of the interface condition of this node branch, the one-level node that is in the 17th position be " two layers of Ethernet (Ethernet) interface "; On behalf of the interface condition of this node branch, the one-level node that is in the 18th position be " three layers of Ethernet (Ethernet) interface ".
Under each one-level node, be mounted with a plurality of (one situation is also only arranged) two-level node, two-level node present position representative be plate number, on this level, the plate of the two-level node of same position representative is number identical.For example, the two-level node of first position under the one-level node 16 (numeral is 1) is number identical with the plate of two-level node (numeral the is 1) representative of first position under the one-level node 17.And the like, card number is represented in three grades of node present positions, and what level Four node present position was represented is interface number.A complete interface name just can be regarded as by the level Four node location and be determined.
As can be seen from the figure, this storage organization will belong to the interface name classification storage of distinct interface condition.With the Ethernet style interface in the networking products is example, is divided into three branches and is stored, an Ethernet interface branch, one two layers Ethernet interface branch, one three layers Ethernet interface branch.When interface is created, according to interface characteristics is to know clearly that this Ethernet interface is operated in two layers or three layers, for two layer interfaces, under two layers of Ethernet type branch and Ethernet type branch, all articulate respectively, for example two layers of Ethernet interface ethernet1/1/1.For three layer interfaces, under three layers of Ethernet type branch and Ethernet type branch, all articulate respectively, for example three layers of ethernet interface ethernet2/1/1.So Ethernet branch has comprised two, three layers of all Ethernet interface messages; Two layers of Ethernet branch have included only two layer interface information; Include only three layer interface information under three layers of Ethernet branch.
Step 130: when fill order helps, search the interface condition that this order is associated.
Narrated in the abovementioned steps 110, when Ordered Registration, system command and adaptive interface condition were associated.Therefore, when the user in order line behind the input command element, system can find the interface condition (as interface type and interface attributes) of this order association.If just determine adaptive interface condition according to command element in the step 110, this step is correspondingly only searched related interface condition according to command element so; If be in the step 110 according to command element and the definite jointly adaptable interface condition of command execution environment (being view), this step correspondingly so, want the execution environment of while, search related interface condition according to the command element of importing in the order line and this order.
Step 140: in the interface message of classification storage, obtain to satisfy the set of interfaces of above-mentioned interface condition.
Owing in step 120, stored the total interface information that system supports, therefore can directly find the set of interfaces of required interface condition according to the distinct interface condition stub.Comprised interface help information at different levels in the described set of interfaces, as interface name information such as interface type, plate number, card number and interface numbers.
Step 150: in described set of interfaces scope, provide interface help information.
Interface message in the set of interfaces that step 140 finds, can both support the order operation that the user imports, therefore, the help information that provides to the user in this range of convergence has been through screening, as long as the user selects in this scope step by step, just can when fill order, not produce the phenomenon that interface does not match, causes order to move, save user time thus, avoid the user to repeat situation about selecting again and again.For example, when the user carried out two layers of Ethernet interface related command, system can help in set of interfaces information (the numeral 17 expressions) scope that two layers of Ethernet type branch comprise.When carrying out three layers of Ethernet interface related command, system can help in set of interfaces information (the numeral 18 expressions) scope that three layers of Ethernet type branch comprise.When carrying out interface Ethernet, can in set of interfaces information (the numeral 16 expressions) scope that Ethernet type branch comprises, help.
Be illustrated from the another one angle below.Suppose that the plate that comprises two layers of Ethernet interface in the networking products is pulled out for a certain reason, only remaining three layers of Ethernet interface.Two layers of Ethernet type branch of storage this moment (numeral 17 expressions) do not exist, and each node content in this branch is empty (if this branch exists, then each node content of this branch is the pointer of next node straw line).At this moment, the user imports " STP " related command, because the adaptive interface condition of this order is two layers of Ethernet interface, therefore step 140 can't find the set of interfaces of the interface condition that satisfies this order association in the interface message of creating, and then also just can't in this set of interfaces scope, provide interface help, so system can point out the user not have adaptive interface.
Under above-mentioned kindred circumstances, if adopt the existing interface helping method, system will help out the plate number at three floor Ethernet interface places, and user and do not know there are not two layer interfaces on this plate, so according to the downward selection of help information one-level one-level, action command after final selection finishes a concrete interface.Because the final interface of selecting is not supported " STP " order, then the information of fill order mistake can appear, this moment the user to know that just interface selects wrong, can only reselect again.
As seen, use interface helping method disclosed by the invention, can screen in advance, can not go out and the irrelevant interface message of this order to user aid according to the order of input.
See also Fig. 3, it is for the second embodiment flow chart of a kind of interface helping method of the present invention.The difference part of the present embodiment and first embodiment mainly is, system is not the whole interface messages according to the current existence of interface condition classification storage, but can adopt any one file layout, cause thus when searching the set of interfaces that satisfies certain interface condition, need in whole interface messages, travel through and search.This execution mode is suitable for the less situation of interface number, if the interface number is a lot, ergodic process is just slow.The specific implementation process is as follows:
Step 310: during Ordered Registration, system command and adaptive interface condition are associated.The detailed introduction of this step sees also the step 110 of first embodiment, repeats no more herein.
Step 320: when fill order helps, search the interface condition that this order is associated.The detailed introduction of this step sees also the step 120 of first embodiment, repeats no more herein.
Step 330: in whole interface messages of the current existence of system, traversal is searched the set of interfaces that satisfies above-mentioned interface condition.Because system is not whole interface messages of supporting according to interface condition classification storage system, therefore can't directly find the set of interfaces information of this interface condition correspondence under the required interface condition situation knowing, can only in whole interface messages, travel through and search.Because when interface is created, the type of each interface and attribute thereof (being operated in two layers still three layers) have all been known, therefore search by traversal, can find out the set of interfaces information that satisfies required interface condition fully.
Step 340: in described set of interfaces scope, provide interface help information.The detailed introduction of this step sees also the step 150 of first embodiment, repeats no more herein.
See also Fig. 4, it is the example structure schematic diagram of a kind of interface help device disclosed by the invention.Described device comprises interface memory cell 14, associative cell 13, query unit 12 and helping prompt unit 11, and this device is arranged at networking products inside usually.Below in conjunction with the operation principle of this device, each inner part of this device is further disclosed.Need explanation,, carried out introducing in detail, therefore do not give the fully technical characterictic of introduction, please refer to the related content of preamble for present embodiment at preamble owing to some technical characterictics that in introducing this device process, relate to.
In the initialized interface constructive process of networking products, can the total interface information of current existence be stored by interface memory cell 14, preferred, store above-mentioned interface message according to the distinct interface condition stub.In addition, in initialized ordered registration process, can be associated by associative cell 13 interface condition that each system command and its is adaptive.And then, when the user imports an order to be helped, at first in associative cell 13, inquire about the interface condition for the treatment of the HELP command association by query unit, the set of interfaces of this interface condition is satisfied in inquiry in interface memory cell 14 then.If interface memory cell 14 is the interface messages of storing current existence according to the distinct interface condition stub, query unit 12 can directly find the set of interfaces that satisfies required condition in interface memory cell 14 so; If interface memory cell 14 is not stored the interface message of current existence according to the distinct interface condition stub, query unit 12 just need be in the total interface information of interface memory cell 14 storages so, and traversal is searched the interface that satisfies required condition.
After this, the described set of interfaces information that query unit will inquire offers helping prompt unit 11, provides interface help information to the user by helping prompt unit 11 in this set of interfaces scope.So-called helping prompt unit 11 can be regarded as the input/output interface that networking products provide for the user, and the user is by this interface input command, and system prints help information by this interface to the user.
More than a kind of interface helping method provided by the present invention and device are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1, a kind of interface helping method is characterized in that, may further comprise the steps:
The interface condition that system command and its is adaptive is associated; Described interface is a network interface;
When fill order helps, in the interface message of current existence, search the set of interfaces of the interface condition that satisfies this order association; The interface condition of described order association is by command element or comprise that also the command execution environment is definite jointly;
In described set of interfaces scope, provide interface help information.
2, interface helping method as claimed in claim 1 is characterized in that, described method also comprises:
Interface message according to the current existence of interface condition classification storage.
3, interface helping method as claimed in claim 1 is characterized in that, when fill order helps,
Adopt the traversal mode to search the set of interfaces of the interface condition that satisfies this order association.
4, as any described interface helping method in the claim 1 to 3, it is characterized in that described interface condition comprises interface type and interface attributes.
5, a kind of interface help device is characterized in that comprising:
The interface memory cell is used to store the interface message of current existence;
Associative cell is used for the interface condition that system command and its is adaptive and is associated; Described interface is a network interface;
Query unit is used for treating in the associative cell inquiry interface condition of HELP command association, and inquires about the set of interfaces that satisfies described interface condition in the interface memory cell; The interface condition of described order association is by command element or comprise that also the command execution environment is definite jointly;
The helping prompt unit is used for providing interface help information in the set of interfaces scope that described query unit provides.
6, interface help device as claimed in claim 5 is characterized in that, described interface memory cell is stored the interface message of current existence according to the distinct interface condition stub.
7, interface help device as claimed in claim 5 is characterized in that, described query unit adopts the traversal mode to inquire about the set of interfaces that satisfies described interface condition.
8, as any described interface help device in the claim 5 to 7, it is characterized in that described interface condition comprises interface type and interface attributes.
CNB2006101093916A 2006-08-16 2006-08-16 A kind of interface helping method and device Expired - Fee Related CN100550745C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101093916A CN100550745C (en) 2006-08-16 2006-08-16 A kind of interface helping method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101093916A CN100550745C (en) 2006-08-16 2006-08-16 A kind of interface helping method and device

Publications (2)

Publication Number Publication Date
CN1937508A CN1937508A (en) 2007-03-28
CN100550745C true CN100550745C (en) 2009-10-14

Family

ID=37954795

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101093916A Expired - Fee Related CN100550745C (en) 2006-08-16 2006-08-16 A kind of interface helping method and device

Country Status (1)

Country Link
CN (1) CN100550745C (en)

Also Published As

Publication number Publication date
CN1937508A (en) 2007-03-28

Similar Documents

Publication Publication Date Title
US7519700B1 (en) Method and system for topological navigation of hierarchical data groups
US8352620B2 (en) Displaying a network topology map with a reduced number of objects
CN102124703B (en) Switching table in an Ethernet bridge
CN103428093B (en) Route prefix storing, matching and updating method and device based on names
CN102422600B (en) Method provided in mixed nodes, network thereof and network units thereof
CN103227778B (en) Memory pool access method, equipment and system
CN102971732A (en) System architecture for integrated hierarchical query processing for key/value stores
EP2689568A1 (en) Network topology discovery
CN107463366A (en) A kind of interface mobilism method based on mobile App
CN107026882A (en) The method and relevant device of a kind of resource acquisition
CN105847023A (en) Service system network topology relationship obtaining method and device
CN110166277A (en) A kind of method of order line order tree constructing method and order line dynamically load
US9485179B2 (en) Apparatus and method for scalable and flexible table search in a network switch
CN105554169A (en) OID configuration and analytic methods, ORS client, and OID node and database thereof
CN103902705B (en) Metadata-based cross-mechanism cloud digital content integration system and metadata-based cross-mechanism cloud digital content integration method
CN109460409A (en) Data access method and device
WO2013167006A1 (en) Method for configuring browser bookmarks, device and terminal thereof
CN109391548A (en) List item moving method, device and network communicating system
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
CN101833511A (en) Data management method, device and system
CN100550745C (en) A kind of interface helping method and device
CN110096541A (en) Method for interchanging data and device between a kind of database
CN102868775B (en) Method for expanding capacity of address resolution protocol table, and message forwarding method and device
CN100393072C (en) Method and apparatus for storing table entry, and inquiry method
CN104135549B (en) A kind of data transmission method and device for supporting diversified addressing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091014

Termination date: 20200816