All routers running OpenROUTE software use the same user interface. While the software installation process is slightly different for each, configuring the software and accessing the processes are the same for all routers.
The information in this document includes the following topics:
Using Local and Remote Router Terminals
Using the User Interface
Using the Command Line Interface
Overview of the User Interface
OPCON Commands
Using Local and Remote Router Terminals
The router terminal lets you access the command line interface so you can configure and monitor the router. The router supports local and remote terminals.
Local Terminals
Local terminals connect to the router either directly via the supplied console cable or indirectly via modems. For information on installing and configuring local terminals, see the guide shipped with your router.
You need to use a local terminal in the following situations:
During the initial software installation.
If no one has booted your router, you will see the > prompt at your local terminal.
Using the User Interface
The following procedures are the same for all routers running OpenROUTE software:
Logging in
Executing a command
Connecting to a process
Identifying the process by the prompt
Getting help
Getting back to the * prompt
Exiting the router
% telnet brandenburg
or
%telnet 128.185.132.43
The router supports Telnet client and server. The remote terminal on the router acts as a Telnet server. The router acts as a Telnet client when connecting from the router to either another router or a host using the Telnet command.
From this point on, there is no difference whether you have logged in remotely or locally.
The password controls access to the router.
login: ifr
Password:
If the Password: prompt appears and you have no password configured, press Enter for the * prompt.
Logins are not set automatically. For security, you can set up user names
and passwords by entering add user at the
Config> prompt. Reload or restart the router to activate
logins.
Note: If you do not enter a login name and valid password within a minute of the initial prompt, or if you enter an incorrect password three times in succession, the router drops the Telnet connection.
* prompt. The * prompt is the top-level prompt. From it you can communicate with different processes.
To connect to a process, enter the appropriate command at the * prompt.
| Process | Command | Prompt |
| EVENT | event | None |
| MONITOR | monitor | Monitor> |
| CONFIG | configuration | Config> |
Identifying the Process by the Prompt
Each process uses a different prompt. You can tell which process you are connected to by looking at the prompt. If a prompt does not appear, press Enter again.
The following list shows the prompts for the main processes:
| Process | Prompt |
| OPCON | * |
| MONITOR | Monitor> |
| CONFIG | Config> |
Note: The EVENT process does not have a prompt and accepts only the Ctrl P command.
* prompt from any main process, such as CONFIG (Config> prompt) or MONITOR (Monitor> prompt), press Ctrl p, which is the intercept character. You must always return to the * prompt before you can go to another main process. For example, if you are at the Monitor> prompt and you want to go to the Config> prompt, press Ctrl p to return to the * prompt first. *config
Config>ctrl p
*monitor
Monitor>ctrl p
*
* prompt and close the Telnet connection. You can also use local Telnet commands (such as, exit) on your Telnet client to close the connection.IP Config>exit
Config>ctrl p
* logout%
If you use the intercept character from a third-level process, you exit the third level and return to the * prompt; the next time you use the config or monitor command, or their equivalents, however, you re-enter the third level. This link goes away when the router is re-initialized.
Using the Command Line Interface
The Command Line Interface provides the following capabilities:
Press Enter with the cursor at any point in the line, and the software displays the entire line.
You can find a list of available command line editing commands by entering help at any prompt.
Command Completion
Press Space (once or twice) from any prompt to display a list of available commands or command options. If you press Space, the software always lists the possible completions for the present input. The lists of completions varies depending on the software running on your router. For example, press Space twice after typing protocol and the following appears:
Press Space on a blank input line, and a list of all commands the software allows at that prompt appears. For example, press Space at theConfig>protocol
The choices/prefixes are (a complete list)
IP
ARP
IPX
SNMP
AP2
BRIDGE
HST
* prompt and the following appears:Press Space after a unique part of any command and the software completes the command. For example, enter pr followed by Space at the*
The choices/prefixes are (a complete list):
CONFIG -- Enter configuration mode
DIVERT -- Divert output from process
EVENT -- Enter event log monitor mode
FLUSH -- Flush output from process
HALT -- Halt output from process
HELP -- Help about the command line interface
INTERCEPT -- Sets the intercept character (normally control-P)
LOGOUT -- Logout from router
MEMORY -- Memory statistics
MONITOR or M -- Enter monitor mode
RELOAD -- Reload router with new load and restart
RESTART or R -- Restart router with same load
STATUS or S -- Status of process(es)
TALK or T -- Talk to process
TELNET -- Telnet to host
Monitor> prompt and the entire name of the command, PROTOCOL, appears immediately:Press Space at the end of an input line and the software searches all commands that start with the present input. One of the following happens:Monitor> pr
Monitor> PROTOCOL
| If the software finds . . . | Then . . . |
|---|---|
| A complete match of a command | The space becomes a real space. |
| A common unique (sub)string of commands greater than the existing input |
The software displays all of the commands allowed at that prompt and redisplays the input line.
|
| No unique common string of commands | The software displays all commands and redisplays present input. |
A Tab acts similarly to a Space in most cases. The exception is when you enter a command and there is a default supplied for that command. In this case, Tab completes the default. The Tab is helpful when you enter values rather than commands because you can press Tab repeatedly to enter default values.
Command Line Recall
You can display up to the last 10 correctly entered command lines using the following keys:
| Ctrl u or Up arrow | Go up the saved command list. |
| Ctrl n or Down arrow | Go down the saved command list. |
Overview of the User Interface
The processes you use most often are OPCON, EVENT, CONFIG,
and MONITOR. Figure 1 shows the processes and how
they fit into the structure of the router software.
Figure 1 Router Software Processes
Table 1 is a list of processes on the router, with definitions and prompts.
| Process | Definition | Prompt |
|---|---|---|
|
OPCON (First Level) | Operator console. | * |
|
MONITOR (Second Level) | Allows you to monitor the status and statistics of the router's hardware and software. Provides access to the third-level processes, which allow you to monitor configured protocols and features. | Monitor> |
|
CONFIG (Second Level) | Allows you to configure router parameters for interfaces, protocols, users, and booting. Provides access to third-level processes, which allow you to configure various protocols and features. |
Config> |
|
EVENT (Second Level) | Receives Event Logging System (ELS) messages and messages from the operating system and displays them on the console, according to user-configured criteria. | None |
OPCON Commands
If Console Login is enabled on your router, the software first prompts for a username and password. Otherwise, it immediately displays the OPCON prompt.
The OPCON process allows you to configure and monitor all of the router's operating parameters. While in OPCON, the router may be forwarding data traffic. When the router boots and enters OPCON, a copyright logo and an asterisk (*) prompt appear on your terminal. This is the OPCON prompt, the main user interface that allows access to second-level processes.
At the * prompt, there is a set of commands you can enter to check the status of various internal software processes, monitor the performance of the router's interfaces and packet forwarders, and configure various operational parameters.
Some changes to the router's operating parameters made while in OPCON take effect immediately without requiring re-initializing of the router. If the changes do not take effect, use the restart command at the * prompt.
Figure 2 shows the OPCON command tree. Table 2 is a list of the OPCON commands, including a brief description of each command's function.
Each command includes a description, syntax requirements, and an example. To use them, access the OPCON process and enter the command at the * prompt. Enter help for information about using the command line interface.
| Command | Function |
| Config | Enters the configuration process. |
| Divert | Sends output of a process to a console or other terminal. |
| Event | Enters Event Logging System (ELS). |
| Flush | Discards output. |
| Halt | Stops output. |
| Intercept | Sets the intercept character (normally, Ctrl p). |
| Logout | Logs out from a router. |
| Monitor | Enters the monitoring process. |
| Power-Cycle | Cycles power to 3000 Series gateway routers. |
| Reload | Reloads the router with a new load and restarts. |
| Restart | Restarts the router with the same load. |
| Status | Shows information about all router processes. |
| Talk | Talks to a process. |
| Telnet | Connects to another router. |
Config
Enters the Configuration process at the Config>
prompt. See Table 1 for the configuration commands.
To return to the * prompt, use the intercept character, Ctrl P.
config
Config>
Divert
Redirects the output from a specified process to a specified terminal. This command allows you to divert the output of several processes to the same terminal so that you can view them simultaneously. Use it to redirect event messages from the EVENT process (pid 2) to the terminal (tty0) so you can see event messages while entering configuration commands. The router allows only certain processes to be redirected.
After typing divert, enter the pid and tty# (number of the output terminal). To obtain these values, use the status command. The terminal number can be the number of either the local terminal (tty0) or one of the remote terminals (tty1 or tty2).
Event messages appear immediately on the screen even though
you may be in the middle of typing a command. The display and keyboard have
separate buffers to prevent command confusion. The following example shows the
EVENT process connected to TTY1 after entering the divert 2 1 command. If you
want to stop the output, enter Halt 2 at the *
prompt.
divert 2 1
*status
Pid Name Status TTY Comments
1 COpCon IOW TTY0
2 Event IDL TTY0
3 Tasker RDY --
4 MOSDDT DET --
5 Monitr IOW --
6 Config IOW --
7 ROpCon IDL TTY1
8 ROpCon RDY TTY2 128.185.19.111
*halt 2
ELS config> prompt or the ELS> prompt. To return to the * prompt, use the intercept character, Ctrl p.
Example: event
ARP.002: Pkt in 1 1 800 nt 0 int Eth/0
ARP.016: unkn dst prot ad nt 0 int Eth/0
IP.007: 128.185.227.15 -> 128.185.227.0
IP.036: rcv pkt prt 17 frm 128.185.227.15
Flush
Clears the output buffers of the EVENT and other processes. Discards accumulated messages. Use before displaying the contents of the EVENT FIFO buffer to prevent messages from scrolling off the screen. The router only allows certain processes to be flushed. To obtain the process ID (pid), use the status command. After the flush 2 command, for example, the router sends the output of the EVENT process to the sink.
flush 2
*status
Pid Name Status TTY Comments
1 COpCon IOW TTY0
2 Event IDL Sink
3 Tasker RDY --
4 MOSDDT DET --
5 Monitr IOW --
6 Config IOW --
7 ROpCon IDL TTY1
8 ROpCon RDY TTY2 128.185.123.138
halt 2
halt 2
*status
Pid Name Status TTY Comments
1 COpCon IOW TTY0
2 Event IDL Sink
3 Tasker RDY --
4 MOSDDT DET --
5 Monitr IOW --
6 Config IOW --
7 ROpCon IDL TTY1
8 ROpCon RDY TTY2 128.185.123.138
* prompt. The intercept character must be a control character. Enter the ^ (shift 6) character followed by the letter character that you want. The default intercept character is Ctrl P.
Example: intercept
Argument to INTERCEPT command must be a control character.
Enter as '^' character followed by another character, e.g., ^P.*intercept ^u
Logout
Ends the current session. If the physical console login option is enabled, this command requires the next user to log in using an authorized userid/password combination. If the login is not enabled, the * prompt appears again.
logout
Monitor
Enters the monitoring process at the Monitor> prompt.
See Table 1 for the monitoring commands.
To return to the * prompt, use the intercept character, Ctrl P.
Example:monitor
See Monitoring the System for information about the monitoring process.Monitor>
Power-Cycle
Cycles power to 3000 Series gateway routers. This command performs the same function as shutting off power to the router and turning power back on. When you use this command from a remote terminal, it closes any remote sessions.
The power-cycle command causes the 3000 Series to do the following:
Rerun Power On Self Tests (POST) for all connected networks.
Sets software counters to zero.
Clears all routing tables.
Loads and runs a new copy of the software.
Drops packets until the reload is completed.
power-cycle
Power cycling the gateway will force diagnostics to be run
and will reload the gateway.
Are you sure you want to power cycle the gateway? (Yes or [No]):
The software does the following:
reload
Are you sure you want to reload the gateway? (Yes or no): yes
loading
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .Copyright Notices:
Copyright 1985-2000 by Netrix Corp., All rights reserved
Copyright 1984-1987, 1989 by J. Noel Chiappa
*
restart
Are you sure you want to restart the gateway? (Yes or [no]:yes
Copyright Notices:
Copyright 1985-2000 by Netrix Corp., All rights reserved
Copyright 1984-1987, 1989 by J. Noel Chiappa
*
status 7
7 ROpCon IOW TTY1 128.185.46.101
status
Pid Name Status TTY Comments
1 COpCon IOW TTY0
2 Event DET --
3 Tasker RDY --
4 MOSDDT DET --
5 Monitr DET --
6 Config DET --
7 ROpCon IDL TTY1
8 ROpCon RDY TTY2 128.185.19.111
Talk
Switches to other router processes, such as EVENT, MONITOR,
or CONFIG. After connecting to a new process, you can send specific commands to
and receive output from that process. You cannot talk to the TASKER or OPCON process.
To obtain the pid, enter status. Once you are connected to the second-level processes,
such as EVENT, MONITOR, or CONFIG, use the intercept character, Ctrl P, to return
to the * prompt. For more information about connecting to a process,
see Connecting to a Process.
talk 5
Monitor>
A router can have up to five Telnet sessions:
Note: To use the telnet command in a pure bridging environment, you must enable Host Services. Syntax: telnet address port terminal type Example:telnet 128.185.10.30
Trying 128.185.10.30 ...
Connected to 128.185.10.30
Escape character is '^]'
To get to theTrying 128.185.10.30 ...
telnet> prompt, type Ctrl ] at any prompt.Like the terminal type, the port number is optional. However, to enter a terminal type, you must first enter the port number. In this case, you should use the default value of 23, unless you need a different port number.
If you run Telnet to a router,
Press Backspace to delete the last character typed on the command line.
Note: If you use a VT100(TM) terminal, do not press Backspace because it inserts invisible characters. To delete the last character, press Delete.
To delete the whole command line entry so that you can re-enter a command, press Delete or Ctrl u, at the telnet> prompt.
To exit Telnet, close a connection, and end a Telnet session, use the Telnet quit command.
telnet> close
or
telnet> quit*logout