Os ch03
Os ch03
The User Interface (UI) provides a means of configuring parameters and viewing real-time
statistics from a terminal, such as a PC or UNIX workstation, using terminal emulation soft-
ware. The UI is part of the OmniStack’s MPM executable image. When a switch boots up, the
boot monitor handles the loading of this executable image and system startup. Once the
image is loaded and initialized, the UI starts.
You access the UI through a connection with the switch. This connection can be made
directly through the serial port, through a modem, or over a network via Telnet. You can
have up to four simultaneous connections to an OmniStack. (Please see Multiple User Sessions
on page 3-18 for further details.) For Telnet access, you must first set up an IP address for the
switch. See the Getting Started Guide that came with your switch for information on setting
up an IP address and logging in. Once you login, the following main menu displays.
*************************************************************************************
Alcatel OmniStack
Copyright (c), 1994-2000 Alcatel Internetworking, Inc. All rights reserved.
OmniStack is a trademark of Alcatel Internetworking, Inc.
System Name: no_name
Command Main Menu
--------------- --------------------------------------------------------------------------------------------
File Manage system files
Summary Display summary info for VLANs, bridge, interfaces, etc.
VLAN VLAN management
Networking Configure/view network parameters such as routing, etc.
Interface View or configure the physical interface parameters
Security Configure system security parameters
System View/set system-specific parameters1
Services View/set service parameters
Switch Enter Any to Any Switching menu
Help Help on specific commands
Diag Display diagnostic level commands
Exit/Logout Log out of this session
? Display the current menu contents
This menu provides a top-level view of all UI menus. The commands are grouped together in
the form of sub-menus. Within each sub-menu there is a set of commands and/or another
sub-menu.
♦ Note ♦
Although the commands are grouped in a sub-menu
structure, any command may be entered from any sub-
menu. You are not restricted to the commands listed in
the current sub-menu.
Page 3-1
Main Menu Summary
Diag. This menu, fully available to the diag login account, contains commands to run diagnos-
tic tests. It is described in Chapter 40, “Running Hardware Diagnostics.”
Exit. Logs you out of the UI. You can also enter logout to exit.
? Displays the options for current menu.
Page 3-2
General User Interface Guidelines
If you are in verbose mode (which is described in Enabling and Disabling Verbose Mode for
the User Interface on page 3-8), you will be provided with some additional information, as
shown below.
Non-unique command match, possible commands:
switch Enter Any to Any Switching Menu
swch Configure Any To Any Switching Port Translations
swchmac View Per Mac Translation Options
swap Change swap status of chassis
swlogc Configure Switch Logging source/destination mapping and
priority levels
Quitting a Command
Many of the commands give you a list of parameters to change. With most commands you
can enter in Quit if you want to exit the command without making changes. If the Quit
parameter is not available, press Ctrl-d to abort the command without making changes.
Scrolling
If the screen scrolls up too far to read you can stop the incoming data by pressing Ctrl-s. The
screen will stop and allow you to read the data. Press Ctrl-q to continue the data transmis-
sion.
Page 3-3
General User Interface Guidelines
♦ Note ♦
The switch’s prompt, more, verbose/terse, and timeout
functions remain fully supported. However, if you enter
any of the commands listed above, you will be redi-
rected to the UI Configuration menu.
at the system prompt and press <Enter>. The following screen will be displayed:
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Refer to the following sections for information on using the UI Configuration menu.
♦ Note ♦
The default system prompt is $Menu-Path %.
To change the system prompt, type uic at the user prompt and press <Enter>.
Page 3-4
General User Interface Guidelines
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Next, type 1=, followed by the desired prompt information, and press <Enter>. For example:
1=$SysName ->
After you press <Enter>, the screen will be redrawn. Note that the prompt information at line
1 of the uic submenu has been changed.
UI Configuration
Type save at the submenu prompt and press <Enter>. The system prompt has been success-
fully changed.
♦ Note ♦
In order to use the switch’s table filtering feature, more
mode must be enabled. For more information on UI
table filtering, refer to UI Table Filtering (Using Search
and Filter Commands) on page 3-23.
To enable more mode, type uic at the user prompt and press <Enter>.
A screen similar to the following will be displayed.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : off
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Page 3-5
General User Interface Guidelines
Next, type 2=on at the submenu prompt and press <Enter>. The screen will be redrawn. Note
that more mode is now set to on.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
The switch’s default output display is 22 lines. If you want to change this value now, type
21=, followed by the maximum number of lines to be displayed, and press <Enter>. For exam-
ple:
21=50.
After you press <Enter>, the screen will be redrawn. Note that the output display value at line
21 of the uic submenu has been changed.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 50 lines
3) Verbose : off
4) Timeout : 5 minutes
Be sure to type save at the submenu prompt and press <Enter>. More mode is now enabled.
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Type 21=, followed by the maximum number of lines to be displayed, and press <Enter>. (The
value may range from 0 to 2147483647.) For example:
21=2000.
Page 3-6
General User Interface Guidelines
After you press <Enter>, the screen will be redrawn. Note that the output display value at line
21 of the uic submenu has been changed.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 2000 lines
3) Verbose : off
4) Timeout : 5 minutes
Type save at the submenu prompt and press <Enter>. The more mode line value has been
successfully changed.
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Next, type 2=off at the submenu prompt and press <Enter>. The screen will be redrawn. Note
that more mode is now set to off.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : off
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Type save at the submenu prompt and press <Enter>. More mode is now disabled.
♦ Reminder ♦
The switch’s table filtering feature cannot be used
when more mode is disabled. For more information on
UI table filtering, refer to UI Table Filtering (Using
Search and Filter Commands) on page 3-23.
Page 3-7
General User Interface Guidelines
at the user prompt, the Summary menu will be displayed automatically, as shown below:
Command Summary Menu
ss Display MIB-II System group variables
sc OmniStack chassis summary
si Current interface status
The switch’s default verbose mode setting is off, or disabled. To enable verbose mode, type
uic at the user prompt and press <Enter>.
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Next, type 3=on at the submenu prompt and press <Enter>. The screen will be redrawn. Note
that verbose mode is now set to on.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : on
4) Timeout : 5 minutes
Type save at the submenu prompt and press <Enter>. You will be returned to the user
prompt. Verbose mode is now enabled.
Page 3-8
General User Interface Guidelines
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : on
4) Timeout : 5 minutes
Next, type 3=off at the submenu prompt and press <Enter>. The screen will be redrawn. Note
that verbose mode is now set to off.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Type save at the submenu prompt and press <Enter>. Verbose mode is now disabled.
1) Prompt : Ô$Menu-Path% Õ
2) More : off
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 5 minutes
Next, type 4=on, followed by the desired automatic logout time, and press <Enter>. For exam-
ple:
4=15.
Page 3-9
General User Interface Guidelines
After you press <Enter>, the screen will be redrawn. Note that the automatic logout time at
line 4 of the uic submenu has been changed.
UI Configuration
1) Prompt : Ô$Menu-Path% Õ
2) More : on
21) Lines : 22 lines
3) Verbose : off
4) Timeout : 15 minutes
Be sure to type save at the submenu prompt and press <Enter>. The automatic logout time
has been successfully changed.
♦ Note ♦
The automatic logout value you enter takes effect
immediately; you do not have to reboot the switch. In
addition, the timeout parameter you enter is saved.
Later sessions using this account will have the same
automatic logout parameter until you change it.
Viewing Commands
If at any time you are not sure of the commands available, enter ? and you will be given a list
of the commands in the current sub-menu. Following each list of commands is a list of sub-
menus. You can go directly to any sub-menu in the list.
You can specify whether the full menu will be displayed when you enter a command for a
menu or sub-menu and the amount of information you receive when you run the help
command. (Refer to The UI Configuration Menu on page 3-4 for more information.) Addition-
ally, there is a lookup facility to assist with administrative tasks. You can look up any
command name or prefix as follows:
lookup vlans
Changing Passwords
The pw command is used to change passwords and is described in Chapter 6, “Switch Secu-
rity.”
Page 3-10
General User Interface Guidelines
In the example above, the history command is listed last because it is the one that was
executed most recently. If you want to re-execute the last command, enter two exclamation
points (!!). In the example above, you could re-execute the history command by entering
!!
The UI also provides several other ways to re-execute earlier commands. For example, you
can re-execute a specific command shown in the history list by entering an exclamation point
(!) followed by the number to the left of that command shown in the history list. In the exam-
ple at the beginning of this section, entering
!2
Page 3-11
General User Interface Guidelines
In addition, you can re-execute a command by entering an exclamation point (!) followed by
the first character(s) of the most recently executed command. In the example at the begin-
ning of this section, entering
!vim
however, would re-execute the vivl command because it is the most recently executed
command beginning with vi.
You can also re-execute the most recently executed command containing a string of charac-
ters by entering an exclamation point and a question mark (!?), followed by the string of
characters, and an optional question mark (?) which acts as a “wild card.” In the example at
the beginning of this section, entering
!?lan?
however, would re-execute the xlat command because it is the most recently executed
command containing la.
Commands in the history buffer can be modified by adding a parameter, when it is applica-
ble. For example, if you entered
!7 3/1
in the example at the beginning of this section you would execute the command vivl 3/1.
Page 3-12
General User Interface Guidelines
Abbreviating IP Addresses
The OmniStack software provides the user with a more concise way to enter the dotted deci-
mal format of a 32-bit IP address. The new syntax conforms to the traditional Internet inter-
pretation. Several examples of abbreviated IP addresses are shown in the table below. The
first column of the table lists examples of abbreviated IP addresses, and the second column
shows how the system interprets the abbreviated address.
198. 198.0.0.0
198.. 198.0.0.0
198... 198.0.0.0
198.206 198.0.0.206
198..206 198.0.0.206
198..206. 198.0.206.0
198...206 198.0.0.206
198.206. 198.206.0.0
198.206.. 198.206.0.0
198.206.182 198.206.0.182
198..206.182 198.0.206.182
198.206..182 198.206.0.182
198.206.182. 198.206.182.0
198.206.182.158 198.206.182.158
As shown in the table above, the system performs two important steps to ensure that the IP
address is valid. First, it puts zeroes when you do not specify the number. Second, the system
will insert as many zeroes as needed to the right of a period.
Page 3-13
General User Interface Guidelines
This abbreviated IP address format can be used with the ftp, telnet, crgp, modvl, ping, snmpc,
and xlat commands. For example, to ping the IP address 198.0.0.2, you can abbreviate this IP
address by entering
ping 198.2
at the system prompt. After you answer a few prompts (see Chapter 23, “IP Routing” for more
information on the ping command), something similar to the following will be displayed.
Ping starting, hit <Enter> to stop
PING 198.0.0.2: 64 data bytes
[0 ] T
In addition, the IP subnet mask 255.255.0.0 can be abbreviated in the following ways:
• 255.255.
• 255.255..
Page 3-14
User Interface Display Options
at the system prompt to enter the System menu. Press the question mark (?) to see the System
menu commands, as shown below.
Command System Menu
info Basic info on this system
dt Set system date and time
ser View or configure the DTE or DCE port
mpm Configure a Management Processor Module
slot View Slot Table information
systat View system stats related to system, power and environment
taskstat View task utilization stats
memstat View memory use statistics
fsck Perform a file system check on the flash file system
newfs Erase all file from /flash and create a new file system
syscfg Configure info related to this system
uic UI configuration; change - prompt, timeout, more, verbose.
camstat View CAM info and usage
camcfg Configure CAM info and usage
ver/ter Enables/disables automatic display of menus on entry
echo/noecho Enable/disable character echo
chpr Change the prompt for the system
logging View system logs.
health Set health parameters or view health statistics
cli Enter command line interface
For information on the info, dt, ser, slot, systat, taskstat, memstat, fsck, newfs, syscfg, and
camstat commands, refer to Chapter 7, “ Configuring Switch-Wide Parameters.” The camcfg
command is no longer supported on the OmniStack. The ver/ter and chpr commands are
described earlier in The UI Configuration Menu on page 3-4. The echo/noecho command is
described in the following section. The cli command is described earlier in Monitoring Your
Switch on page 3-3. The logging command is described in Chapter 8, “Switch Logging.”
The mpm command returns the message “Slot 1 holds the MPM.”
♦ Note ♦
The ver/ter, and chpr commands now appear as items
in the UI Configuration menu (displayed through the
uic command). If you enter the ver/ter and chpr
commands, a message will advise you to use the uic
command, and the UI Configuration menu will auto-
matically display. For more information on the UI
Configuration menu, refer The UI Configuration Menu
on page 3-4.
Page 3-15
User Interface Display Options
at the system prompt. Everything you enter will be displayed. For example, if you enter
history
at the system prompt, it will be displayed on your terminal, as shown in the example below.
/ %history
If your terminal echoes characters locally it is a good idea to set the UI to noecho to avoid
repeated characters. To disable the echo, enter
noecho
at the system prompt. For example, if your terminal echoes characters locally, you would see
something like the following if you entered history.
/ %history
If your terminal does not echo characters locally, nothing you enter will be displayed. For
example, if you enter
history
at the system prompt, it will not be displayed on your terminal, as shown in the example
below.
/%
Page 3-16
Login Accounts
Login Accounts
The UI provides three types of login accounts—Administrator, Diagnostics, and User. The
Administrator login provides full access to all functions. The initial login name for an Adminis-
trator account is admin and the password is switch. The Diagnostics login also has full access
to all functions plus a special sub-menu with a set of diagnostic tests. The initial login name
for Diagnostics is diag and the password is switch.
The User login is restricted and is used primarily for read-only functions. The initial login
name for the User account is user and the password is switch. Commands that are limited or
not available to the user login account include:
addvp
aisr
crgp
dt (limited)
fc
kill
modvl
modvp
pw (limited)
reboot
risr
rmgp
rmvp
ser
slipc
snmpc (limited)
stc
stpc
syscfg (limited)
Page 3-17
Multiple User Sessions
However, users who log on as either admin or diag without the write privilege can “kill” the
session of the user with the write privilege and gain that privilege for themselves. This is
described in Deleting Other Sessions on page 3-21.
If you try to log on when the limit of user has been reached (e.g., you attempt a Telnet
connection when there are two users currently connected through Telnet), you will see the
following message:
Sorry, reached maximum number of sessions.
Page 3-18
Multiple User Sessions
You can also display information about just your session by typing
who am i
The following sections describe the parameters shown by the who command.
SESSION. The session number of the user. A 0 indicates that the user is connected through the
console port, a 2 or 3 indicates that the user is connected through Telnet. The session number
is used with the write and kill commands described inCommunicating with Other Users on
page 3-20 and Deleting Other Sessions on page 3-21, respectively.
USER. The administrative level of the user. This will be user, admin, or diag.
PRIVS. The privilege level of the user. An A indicates that the user has administrative privi-
lege, a W indicates that the user has write privilege, and an R indicates that the user has read
privileges. The first user who logged on as either admin or diag will be the only user with the
write privilege. However, other users who logged on as either admin or diag can kill the
session of the user with the write privilege and gain that privilege for themselves. This is done
with the kill command which is described in Deleting Other Sessions on page 3-21.
If you are logged on as admin or diag you will also have administrative and read privileges. If
you are logged on as user you will only have the read privilege. If you have the administra-
tive privilege you can execute the kill command. However, if you just have the read privilege
you cannot execute the kill command.
TTY. Type of connection. This shows whether the user is connected by Telnet or the console
port.
Page 3-19
Multiple User Sessions
Everything you type now will by sent to the user connected on the console port until you
press CTRL-D or enter exit on a line by itself. The following is an example of the write
command:
write 0
I need the write privilege
exit
If you enter an invalid session number, the switch will display an error message. For exam-
ple, if you entered
write 2
at the system prompt and no user was connected through the modem port (session 1), the
switch would display
ERROR: Session 2 is an invalid session number.
♦ Note ♦
After you have received a message or after you have
written a message you must press the <Enter> key to
regain the system prompt.
Page 3-20
Multiple User Sessions
The session_number is assigned by the switch and can be displayed with the who command,
which is described in Listing Other Users on page 3-19. If you do not use the -f option, then
the system will wait until the other user presses <Return> or finishes his current command. If
you do use this option, then the other user’s session will be terminated immediately.
The -t option can be used with the -f option to set the amount of time before the other user’s
session is terminated. See Advanced Kill Command Options on page 3-22 for descriptions of
the -f and -t options.
For example, to end the session of the user connected to the console port (session 0) and let
him finish his current command, you would enter
kill 0
at the system prompt. The system would then display something similar to the following:
Press <RETURN> to cancel.
Trying...............................................................................
The user losing the write privilege would see something similar to the following:
Your session will be killed by user 'admin' on session 3
as soon as you finish this command or press return.
After the user with the session being killed has finished his work, he will be logged off. If the
user who was logged off had the write privilege, you will gain the write privilege and a
message similar to the following will be displayed.
Done.
You have gained the WRITE privilege
You can use the who command to confirm that you now have the write privilege.
Remember, only a user who has logged on as admin or diag can execute the kill command. If
you are logged on as user and you enter
kill 0
In addition, the session number used in the kill command must be valid. If, for example, you
entered
kill 1
and no user was connected to the modem port (session 1), the system would display the
following:
ERROR: Session 1 is an invalid session number.
Page 3-21
Multiple User Sessions
Also, you cannot use the kill command to end your own session. For example, if your session
number is 3 and you entered
kill 3
Instead, use the exit or logout command if you want to log out.
at the system prompt. The valid range for the timeout is 1 to 240 seconds.
♦ Note ♦
You cannot use the timeout option (-t) unless you also
use the -f option.
Page 3-22
UI Table Filtering (Using Search and Filter Commands)
After pressing any key, only the page of the table is displayed, followed by the More? prompt.
♦ Important Note ♦
The switch’s more mode is active by default. If the more
mode is turned off, the Search and Filter commands
cannot be used. For more information on the more
command, see Configuring More Mode for the User
Interface on page 3-5.
At the More? prompt, the user is given a list of options, which includes the Search ( /) and
Filter (F) commands:
<SP> Press <SP> (space bar) to display the next page of information.
<CR> Press <CR> (character return) to display the next line of information.
/ Press / to enter the Search mode.
F Press F to enter the Filter mode.
N Press N to renew the search, starting from the next line in the UI table.
Q Press Q to exit the More? prompt.
? Press ? to enter the More? command Help Menu.
These commands are available for admin, diag, and user login sessions. Please refer to the
following sections for more information on the Search and Filter commands, as well as
renewing a search, combining Search and Filter commands, and using wildcards.
Page 3-23
The Search Command
♦ Important Note ♦
The Search command is case sensitive. When using this
command, be sure to type the text pattern exactly as it
would appear in the UI table.
Type the slot number for the module containing the relevant MAC address information
(e.g. 3), then press <Enter>. A table similar to the following will be displayed:
Total number of MAC addresses learned for this slot: 58
Non-Canonical Group CAM Last Exp
Sl/ If/ Service/ In MAC Address MAC Address T ID Indx S Seen Timer
----------------------- -------------------------- ------------------------ --- -------- -------- ---- --------- -----------
3/ 1/ Brg/ 1 00A0C9:064D04 000593:60B220 E 1 7024 T 134 300
3/ 1/ Brg/ 1 006008:C1D7C2 000610:83EB43 E 1 7030 T 115 300
3/ 1/ Brg/ 1 0020DA:88F110 00045B:118F08 E 1 70E6 T 46 300
3/ 1/ Brg/ 1 0020DA:B6FF12 00045B:6DFF48 E 1 7094 T 66 300
3/ 1/ Brg/ 1 0020DA:8A7DC0 00045B:51BE03 E 1 705A T 83 300
3/ 1/ Brg/ 1 0020DA:A67FA2 00045B:65FE45 E 1 7120 T 27 300
3/ 1/ Brg/ 1 0020DA:024F75 00045B:40F2AE E 1 710C T 34 300
3/ 1/ Brg/ 1 0020DA:9B88E4 00045B:D91127 E 1 70EE T 45 300
3/ 1/ Brg/ 1 0020DA:9C062B 00045B:3960D4 E 1 7074 T 76 300
3/ 1/ Brg/ 1 0020DA:79F062 00045B:9E0F46 E 1 70D2 T 52 300
3/ 1/ Brg/ 1 006008:991CA7 000610:9938E5 E 1 701C T 117 300
3/ 1/ Brg/ 1 0020DA:936A8F 00045B:C956F1 E 1 712A T 23 300
3/ 1/ Brg/ 1 0020DA:9CEAC5 00045B:3957A3 E 1 70CC T 53 300
3/ 1/ Brg/ 1 0020DA:9B9B54 00045B:D9D92A E 1 70D6 T 50 300
3/ 1/ Brg/ 1 0020DA:7AAE24 00045B:5E7524 E 1 70B8 T 58 300
3/ 1/ Brg/ 1 0020DA:A9EEB3 00045B:9577CD E 1 710A T 34 300
3/ 1/ Brg/ 1 0020DA:8DB20B 00045B:B14DD0 E 1 7080 T 72 300
3/ 1/ Brg/ 1 0020DA:9F6B82 00045B:F9D641 E 1 70F4 T 42 300
3/ 1/ Brg/ 1 0020DA:8762A3 00045B:E146C5 E 1 7126 T 24 300
3/ 1/ Brg/ 1 006008:C1D7C2 000610:83EB43 E 1 7030 T 115 300
More? [<SP>,<CR>,/,F,N,Q,?]
Note that, because the information in the table exceeds the more command’s default page size
of 22 lines, the More? prompt appears at the bottom of the screen.
Page 3-24
The Search Command
2. Type / at the More? prompt. The Search prompt (/) will appear automatically. At the Search
prompt, enter the text pattern for the desired MAC address. For example:
/0020DA:9E479D
Note that the line containing information for the specified MAC address (0020DA:9E479D) now
appears at the top of the screen, followed by any remaining lines in the UI table. (In this
case, the last line of the macinfo UI table contains MAC address 0020DA:8BA710, as shown).
Renewing a Search
If you execute the Search command and the resulting page still exceeds the maximum
number of table entries designated by the more command, you can renew the Search. Do this
by typing n at the More? prompt. The Search command will scan the remainder of the table
and display the next line containing the desired text pattern at the top of the screen.
Page 3-25
The Filter Command
♦ Important Note ♦
The Filter command is case sensitive. When using this
command, be sure to type the text pattern exactly as it
would appear in the UI table.
Note that, because the information in the table exceeds the more command’s default of 22
lines, the More? prompt appears at the bottom of the screen.
Page 3-26
The Filter Command
2. Type f at the More? prompt. The Filter prompt (f/) will appear automatically. At the Filter
prompt, enter the desired text pattern (remember to type the text pattern exactly as it
would appear in the UI table):
f/Lne
Filtering .......
2 /1 /Lne /1 1 1
2 /1 /Lne /2 111 1
/%
Note that only those lines containing Lane services are now displayed on the screen. All
other table entries have been filtered from the UI.
Page 3-27
Combining Search and Filter Commands
♦ Reminder ♦
Both the Search and Filter commands are case sensi-
tive. When using these commands, be sure to type the
text pattern exactly as it would appear in the text UI
table.
Note that, because the information in the table exceeds the more command’s default of 22
lines, the More? prompt appears at the bottom of the screen.
Page 3-28
Combining Search and Filter Commands
2. Use the Filter command to display all IP network addresses within the IP Routing table that
contain 198. To do this, type f at the More? prompt, followed by the specified text pattern:
f/198
Filtering .......
Because the filtered information in the table still exceeds the more command’s default of
22 lines, the More? prompt appears at the bottom of the screen.
3. In order to further refine your results, you can now combine the Search and Filter
commands. In this example, you will search for IP addresses beginning 198.206.2. To do
this, enter / at the Filter mode’s More? prompt, followed by the specified text pattern:
/198.206.2
Note that the IP address, 198.206.200.0, now appears at the top of the screen, followed by
any remaining lines in the table. (In this case, the last line of the ipr table contains infor-
mation for IP address 198.206.203.0, as shown).
Page 3-29
Using Wildcards with Search and Filter Commands
Multiple Characters
An asterisk (*) is used as a wildcard for multiple characters in a text pattern. For example, the
Filter pattern
/*.img
will filter out all lines from the UI table except those containing any text followed by .img.
This wildcard can also be used within a specific text pattern. For example, the Filter pattern
/1*6
will filter out all lines from the UI table except those containing 1, followed by any number of
characters, then 6. For example:
1:3/6
or
33:3/1 Virtual port (#66)
or
16.
Single Characters
A question mark (?) is used as a wildcard for a single character in a text pattern. For exam-
ple, the Search pattern
f/127.?.0.1
will locate the first line in a UI table containing 127. followed by any single character, and
then the remaining text pattern .0.1. For example:
127.0.0.1.
♦ Note ♦
If you use a wildcard at the Search command and the
resulting page still exceeds the maximum number of
table entries designated by the more command, you can
renew the search, starting from the next line contain-
ing the text pattern. Do this by typing n at the More?
prompt. Note that you can renew a search only while
in Search and Search/Filter modes.
Page 3-30