Router User Manual

3 CLI overview
Nortel Secure Router 8000 Series
Configuration Guide - Basic Configuration
Nortel Networks Inc. Issue 5.3 (30 March 2009)
z
When the information displayed exceeds a full screen, the CLI provides a pause function.
Table 3-5 describes the three display functions.
Table 3-5 Display functions
Key Function
Ctrl+C Stops the display and running of the command.
Space Continues to display the information on the next screen.
Enter Continues to display the information on the next line.
3.8 Outputting the display
3.8.1 Viewing the display
Do as follows on the router:
Run:
display current-configuration
The current configuration is displayed.
3.8.2 Filtering the display
Do as follows on the router:
Run:
display current-configuration | include ip
The commands that include ip are displayed.
3.9 Filtering information through regular expressions
When you output information, you can use regular expressions to filter the displayed
information. A regular expression is a tool for matching and replacing modes. You construct
the matching mode based on rules, and then match the mode with the target object.
To help you construct the matching mode, you can use special characters called
metacharacters with regular expressions. Metacharacters are used to define the matching
modes of other characters in the regular expression.
Table 3-6 describes metacharacters.
Table 3-6 Metacharacters
Metacharacter Connotation
\ Escape character
. Matches any single character including a space, except for \n.
3-10