для Cisco Cisco Packet Data Gateway (PDG)

Скачать
Страница из 2186
Using CLI Auto-Pagination
When you enter commands whose expected results exceed the terminal window's vertical display, the
auto-pagination function pauses the display each time the terminal window reaches its display limit. Press
any key to display the next screen of results.
By default, auto-pagination functionality is disabled. To enable auto-pagination, type the pipe command: |
more
.
[local]
host_name
#
show configuration | more
When auto-pagination is enabled, if a command's output exceeds the terminal window's vertical display
parameters, you can exit by entering "q". This returns you to the CLI prompt.
Important
Using CLI Autoconfirmation
By default, the system is configured to prompt all administrative users with a confirmation prior to executing
certain commands. This functionality serves two purposes:
• Helps ensure that you do not execute an unwanted configuration change.
For example, to save a configuration:
[local]
host_name
#
save configuration
Are you sure ? [Yes | No]:
• Indicates potential misspellings of names during configuration. The first time you configure an element
name (context, subscribers, services, etc.), the prompt is displayed. The prompt is not displayed for
subsequent entries of the name. Therefore, if you see the confirmation prompt after entering the name
of a previously configured element, it is likely that you misspelled the name.
You create a context named newcontext:
[local]
host_name
(config)#
context newcontext
Are you sure ? [Yes | No]:
yes
[newcontext]
host_name
(config-ctx)#
You revisit the context named newcontext:
[local]
host_name
(config)#
context newcontext
[newcontext]
host_name
(config-ctx)#
On another occasion, you misspell the context named newcontext:
[local]
host_name
(config)#
context mewcontext
Are you sure ? [Yes | No]:
n
Action aborted
[local]
host_name
(config)#
After aborting the above action, you can again revisit newcontext:
[local]
host_name
(config)#
context newcontext
[newcontext]
host_name
(config-ctx)#
You can control CLI autoconfirmation at the following levels:
• Specific administrative user sessions: To enable or disable autoconfirmation, use the [no] autoconfirm
commands while in the Exec Mode.
   Command Line Interface Reference, Modes A - B, StarOS Release 19
12
Command Line Interface Overview
Using CLI Auto-Pagination