Loader

Auto Completion and Help

Interactive

The interactive command, when enabled, causes the command interpreter to prompt for the required parameters when a craft command is executed, but not all parameters of the command are supplied.

Disable

  1. If Interactive mode is currently enabled, the Interactive command can be used to toggle the mode to non-interactive.  From the ESUx> command line, input interactive  and press Enter. Output similar to the following is displayed:
    ESUx> interactive <enter> 
    interactive mode is disabled 
    ESUx> _

Enable

  1. From the ESUx> command line to toggle the interactive mode back on, input interactive  and press Enter. Output similar to the following is displayed:
    ESUx> interactive <enter>
    interactive mode is enabled
    ESUx> _

Auto Completion and Help

When you partially enter a command, parameter, or option, the auto-completion feature either automatically completes your command or with the ? (help) displays a suggested list of commands. To prompt auto-completion, you partially enter in a command and press the tab or space key.

This section is used to demonstrate the use of auto-completion and the help  (?) key, The profile of the Access-Control-List (acl) will be used to show commands, actions and parameters of a command.

Command Completion

Entering enough characters to make the command unique and then pressing the Tab or Space key causes the command processor to complete the command. For example, the command adduser be entered by inputting ad and pressing the tabkey.
ESUx> ad <tab>
ESUx> adduser 
 

Some other examples of using the tab or space key for auto completion.

ESUx> e <tab> <space>
ESUx> _ exit
ESUx> po <tab>
ESUx> port 

 

Information Note: To access the last command entry, press the up-arrow the key or right-click the mouse. To copy a line, highlight the line and left-click the mouse. To add the copy to the command line, press the up-arrow key or right-click the mouse.

 

Parameter Completion

Input enough characters to make the command unique and then press the Tab or Space key to cause the command processor to complete the command.

  1. From the ESUx> command prompt, input pr and press the Tab/Space key. Output similar to the following is displayed:
    ESUx> pr <tab> 
    ESUx> profile 
  2. To access the available profile parameters, press the Shift+? key.  Output similar to the following is displayed:
    ESUx> pr <tab> 
    
    ESUx> profile ? <shift ?>
    Commands:
    Access-Control-List  - access control list profile related operations
    Cross-Connect        - connect profile related operations
    DiffServ-CodePoint   - dscp mapping profile related operations
    Link-Layer-Discovery-Protocol
    - lldp profile related operations
    Network-ACcess       - network access profile related operations
    pon                  - pon profile related operations
    poncp                - pon circuitpack profile related operations
    port                 - port profile related operations
    Port-Access-Entity   - pae profile related operations
    Power-Over-Ethernet  - poe profile related operations
    radius               - radius profile related operations
    Rapid-Spanning-Tree-Protocol
    - rstp profile related operations
    SerViCe              - service profile related operations
    
    ESUx>
  3. Select a profile from the list by inputting selection. For example, to access the Access-Control-List:
  4. From the ESUx> command prompt, input profile acc and press the Tab/Space key. Output similar to the following is displayed:
    ESUx> profile <tab>  
    ESUx> acc <enter> 
    ESUx> profile Access-Control-List _ 
    Information Note: When the profile name has capital letters it indicates that the capital letters are shortcuts to the entry of command. In the Access-Control-List command inputting acl will produce the Access-Control-List command.
    From the ESUx> command prompt, input profile acc and press the Enter key.
     
    ESUx> profile <tab>  
    ESUx> acl <enter> 
    ESUx> profile Access-Control-List _ 
  5. To view the possible actions of the selected command; from the ESUx> command prompt, input profile Access-Control-List and press the Shift+? keys. Output similar to the following is displayed:
    ESUx> profile Access-Control-List ? <shift+?>
     
    Actions:
    create               - create a new acl profile
    delete               - delete an existing acl profile
    edit                 - edit an existing acl profile
    show                 - show acl profiles
    ESUx>   
    
  6. To view the possible parameters of the selected action command; from the ESUx> command prompt, input profile Access-Control-List edit and press the Shift+? keys. Output similar to the following is displayed:
    ESUx> profile Access-Control-List edit <shift+?>  
    Parameters:
    *name                - ACL profile name
    rule                 - add or remove a rule (remove using 'no rule')
    
    (* required parameter)
    
    ESUx> _ 
  7. To view the possible functions of the selected parameters; from the ESUx> command prompt, input profile Access-Control-List edit rule and press the Shift+? keys. Output similar to the following is displayed:
    ESU2C> profile access-control-list edit rule ? <shift+?>
    
    Parameters:
    *name               - ACL profile name
    rule                - add or remove a rule (remove using 'no rule')
    action             - rule action
    +  append          - add rule to the end of the list
    +  basic           - specifies basic rule type
    +  extended        - specifies extended rule type
    identifier         - rule identifier, name of the identifier must be unique within set of rules; there can be up to 8 rules per profile
    +  insert-BEFORE   - add a new rule at X is the index
    l2                 - layer 2 information
    l3                 - layer 3 information
    meter              - meter information
    +  number          - change an existing rule where X is the index
    
    (* required parameter)
    (+ select one parameter from set)
    
    ESUx> profile access-control-list edit rule _
  8. To view the values of a selected parameter from the ESUx> command prompt, input profile Access-Control-List edit rule action=? and press the Shift+? keys. Output similar to the following is displayed:
    ESUx> profile access-control-list edit rule action=? <shift+?>
    
    Parameter:
    action               - rule action
    
    Values:
    deny|permit|sr-tcm|tr-tcm
    
    ESUx> profile access-control-list edit rule action= 
  9. To view each value of selected parameters input the rule name and press the Shift+? keys.  

Previous   |   Next




FEEDBACK: Are you happy with this material?