Overview In this article, you will learn information about CLI modes that UltraBand supports.
Audience: The information below can be used by both L1 and L2 agents.
-
Prerequisite:
SSH connection to the management server.
VPN connection when required.
CLI modes: CLI stands for Command Line Interface and It could be used when troubleshooting and accessing PeerApp Cache Logs. It could be also useful when doing configuration changes and operational tasks. CLI could be accessed through an SSH connection to the management server.
You can access the console by;
1. SSH connection to the Management Server.
2. Obtaining root access with: su - and typing root password.
3. Typing su admin (CLI console).
-
Regular Mode: This mode will allow you to view the system configuration and statistics without changing the settings. In the Regular mode, the CLI regular prompt appears console, and you can enter Enable mode or
exit the CLI.
-
Enable Mode: This mode will allow you to update the license or software, set the date, and configure the login name and password. In the Enable mode, the CLI enable prompt appears: console#, and you can enter Configuration
mode, or return to the Regular mode by using the exit command.
-
Configuration Mode: This mode will allow you to configure the settings in the system. In Configuration mode, the CLI prompt appears: configuration#, and you can return to Enable mode using the exit command.
Additional Note: Configuration mode can only be used by a single user at a given time. If you exit Configuration mode without applying your changes, these changes will be lost. -
Server Mode: This mode will allow you to start, stop or restart an individual server and set the server's log level. In the Server mode, the CLI server appears OpenServer <server number> #, for example, open
server 1# and you can return to Enable mode by using the exit command.
Rescue CLI: in addition to the Regular CLI modes, the Rescue CLI will allow you to recover incorrect management network configuration, and lost or forgotten CLI passwords. In Rescue CLI mode the CLI rescue prompt appears rescue@ce-1#, and you can execute the following commands:
- Access: Reset the white and black management access lists.
- Passwords: Reset the admin and rescue the passwords.
- Network: Configure the following network parameters: IP address, netmask, default gateway and DNS server.
- Exit - Exit the Rescue CLI mode.
- Help - Print the list of Rescue CLI commands. This command can also be executed by entering"?"at the CLI rescue prompt. After executing these commands, you can perform another one or exit.
To switch from Regular mode to Enable mode:
- At CLI prompt, enter enable. A password prompt will appear.
-
Enter the Enable mode password and press Enter and you will be logged in to Enable mode. The CLI enables prompt appears: console#. Please note: Your system serial number serves as the default password for the Enable mode.
While logged into Enable mode, you may sometimes need to run configuration commands. To do this you must switch to Configuration mode.
To switch to Configuration mode:
- At the CLI prompt, enter config and you will be in Configuration mode.
To exit Configuration mode:
- At the CLI config prompt, enter exit and you will be returned to Enable mode.
To switch to Server mode:
- At the CLI enable prompt, enter oper server <server number>, where <server number> is the number of the server you want to control. For example, The CLI server prompt appears:
oper server <server number> # (for example: oper server 1#)
To exit Server mode:
- At the CLI server prompt, enter exit and you will be returned to Enable mode.
To switch from enabled user to normal user:
- At the CLI enable prompt, enter exit and you will be returned to the Regular mode.
Content Author: Erick Tovar