Command Line Interface

The command-line interface features allows you to install, setup, manage, and troubleshoot Aruba Central (on-premises) deployments. The CLI is accessed through a console or through a Secure Shell (SSHSecure Shell. SSH is a network protocol that provides secure access to a remote device. ) session from a remote management console or workstation.

Accessing the Aruba Central CLI

The following procedure describes how to access the SSH and start executing CLI commands:

  1. From a secure shell (SSH) client, open an SSH connection.
  2. Login as an administrator.
  3. When prompted, enter the administrator password.

    A list of commands is displayed.

For example:

login as: copadmin admin@10.22.150.92 password: Last login: Wed Aug 7 05:43:22 2019 from 10.20.15.180

Syntax

Enter option [0 - <option number> ] : <enter option>

For example:

1. System 2. File Operations 3. Show ... 0. exit ... Enter option [ 0 - 9 ]:

Common Command Options

The following common options are used to:

  • 0 – Exit—Use this command option to exit the SSH connection.
  • b – Back—Use this command option to go back to the previous menu.
  • m -Main menu—Use this command option to go to the main menu.

Password Recovery

The password recovery system helps create a new password for the copadmin user. If you have forget the password, login to the console with the user, coprecovery, and the following options are displayed to generate the recovery key.

  • Generate Recovery Key—The recovery key is generated and stored in an encrypted .asc file. You can either copy it or use the SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. command to copy the file. Once the key is copied to the local server, contact customer support to decrypt the recovery key to get a new password.
  • SCP Recovery Key—The recovery key is generated and an SCP command is used to copy the file to a local server. Once the key is copied to the local server, contact customer support to decrypt the recovery key to get a new password.
  • Activate Recovery secret—The secret key is provided and verified by the customer support. A reset option is used to rest the password in all nodes.
  • Retrieve "core" PasswordAruba does not recommend using core user access. The customer support will decode the secret file provided by the user to provide access to the core user.

Main Menu Options

When you login to the Aruba Central (on-premises) SSH, the main set of commands are displayed. Using the main menu command options, you can perform various other actions as described in the table.

1. System 2. File Operations 3. Show 4. System Configuration 5. Advanced 6. Security 7. Support 8. Temporary Root Shell 9. Search Commands ==================================== 0. exit Enter option [ 0 - 9 ]:

List of CLI Commands

The following table lists all the commands supported in Aruba Central (on-premises) deployment:

Option Number

Command

Description

1

System

Reboots or resets the system.

1-1

Reboot

Reboots the system.

1-2

Shutdown

Shutdowns the system.

1-3

Factory Reset

Resets the system to factory settings.

2

File Operations

Uploads a file to the host.

2-1

Upload via (SCP)

Uploads a file to the host over SCP.

2-2

Upload via (SFTP)

Uploads a file to the host over SFTPSecure File Transfer Protocol. SFTP is a network protocol that allows file access, file transfer, and file management functions over a secure connection..

2-3

Upload via (HTTP/HTTPS)

Uploads a file to the host over HTTPHypertext Transfer Protocol. The HTTP is an application protocol to transfer data over the web. The HTTP protocol defines how messages are formatted and transmitted, and the actions that the w servers and browsers should take in response to various commands. or HTTPSHypertext Transfer Protocol Secure. HTTPS is a variant of the HTTP that adds a layer of security on the data in transit through a secure socket layer or transport layer security protocol connection.

2-4

Download File from COP

Downloads a file that is saved on the host.

2-5

Delete File

Deletes the files that was uploaded by the upload file command.

3

Show

Show commands are used to view or display the settings or parameters configured.

3-1

Version (Detail)

Displays the version (Detail) of the Aruba Central (on-premises) deployment.

3-2

List Files

Displays the total number of files in the pod.

3-3

Backup – Restore Status

Display the backup and restore status of the pod

3-4

Configuration

Display the updated network settings, cluster details, NTPNetwork Time Protocol. NTP is a protocol for synchronizing the clocks of computers over a network./Timezone information.

3-5

System

Display system information like usage of memory, activate information, and uptime.

3-6

User Sessions

Displays the list of user sessions.

3-7

Show Clock

Displays the date, week, month, time details.

3-8

App status

Pod status of any Aruba Central (on-premises) application.

3-9

Cluster Status

Displays the cluster details for Aruba Central (on-premises)

4

System Configuration

System configuration commands are used to configure system parameters like network setup, cluster setup, timezone setup and also, upgrade the setup or perform a complete factory reset.

4-1

Upgrade

Upgrades the system for either an online customer or an offline customer.

4-2

Network Setup

Sets up a network permanently or temporarily.

4-3

Proxy Setup

Setup proxy configuration for Aruba Central (on-premises)

4-4

Setup Timezone

Sets up a timezone.

4-5

Setup NTP

Sets up an NTP server.

4-6

Node Setup

Sets up a node.

5

Advanced

Advanced commands are used to ping or check connectivity.

5-1

Test Connectivity

Tests the connectivity to any URLUniform Resource Locator. URL is a global address used for locating web resources on the Internet..

5-2

Nslookup

Performs a DNSDomain Name System. A DNS server functions as a phone book for the intranet and Internet users. It converts human-readable computer host names into IP addresses and IP addresses into host names. It stores several records for a domain name such as an address 'A' record, name server (NS), and mail exchanger (MX) records. The Address 'A' record is the most important record that is stored in a DNS server, because it provides the required IP address for a network peripheral or element. lookups for any host names.

5-3

Toggle CDN

Used to enable CDN, disable CDN , or show CDN Status.

6

Security

Security commands are used to reset or update the password.

6-1

Reset Password GUI

Resets the GUI password.

6-2

Reset Password CLI

Resets the CLI password.

6-3

Reset debug apps password

Resets the debug applications password.

7

Support

Support commands are used to collect information that are useful to TACTechnical Assistance Center..

7-1

Support Connection

Starts or stops support connection for remote TAC access.

7-2

Collect All Logs

Collects Aruba Central (on-premises) diagnostic tar for debugging.

7-3

Log Snapshot Operations

Generates and downloads snapshots. It also deletes snapshots and downloads upgrade reports.

7-4

Download COP Setup Logs

Downloads the COP setup logs.

7-5

Restart Applications

Restarts the applications.

7-6

System Operations Lock Management

Restarts a particular application.

8

Temporary Root Shell

Creates a temporary user and allows access to SSH for 2 days at a time.

9

Search

Displays a list of available command options.

System Commands

Enter the command option 1 from the main menu to reboot, shutdown, or reset the system to factory settings.

Enter option [ 0 - 9 ]: 1 1. Reboot 2. Shutdown 3. Factory Reset ==================================== b. back m. main menu 0. exit Enter option [ 0 - 3 ]:

Reboot

Enter the command option 1 from the System menu to reboot the system.

Enter option [ 0 - 3 ]: 1 Are you sure you want to reboot the node (Y/N):

Shutdown

Enter the command option 2 from the System menu to shutdown the system.

Enter option [ 0 - 3 ]: 2 Executing shutdown... Shutdown scheduled. Node will shutdown after 1 minute. Press [Enter] key to continue...

Factory Reset

Enter the command option 3 from the System menu to reset the system to its factory settings. Currently, it is a complete data reset.

Enter option [ 0 - 3 ]: 3 Error: Please run the reset command from physical or remote console (ILO) Press [Enter] key to continue...

File Operations Commands

Enter the command option 2 from the main menu to upload a file to the host.

Enter option [ 0 - 9 ]: 2 1. Upload via (SCP) 2. Upload via (SFTP) 3. Upload via (HTTP/HTTPS) 4. Download File from COP 5. Delete file ==================================== b. back m. main menu 0. exit Enter option [ 0 - 5 ]:

Upload via (SCP)

Enter the command option 1 from the File Operations menu to upload a file to the host over SCP.

Enter option [ 0 - 4 ]: 1 This will scp a file from the remote server to COP server Enter remote hostname and path (username@hostname:<filepath>): auto@10.22.158.92:/home/auto/packages.txt Copying auto@10.22.158.92:/home/auto/packages.txt to COP server FIPS mode initialized auto@10.22.158.92's password: packages.txt 100% 3555 4.4MB/s 00:00 Press [Enter] key to continue...

Upload via (SFTP)

Enter the command option 2 from the File Operations menu to upload a file to the host over SFTP.

Enter option [ 0 - 4 ]: 2 This will scp a file from the remote server to COP server Enter remote hostname and path (username@hostname:<filepath>): auto@10.22.158.92:/home/auto/inst_packages.txt Copying auto@10.22.158.92:/home/auto/inst_packages.txt to COP server FIPS mode initialized auto@10.22.158.92's password: Connected to 10.22.158.92. Fetching /home/auto/inst_packages.txt to /var/airwave/appliance/localdisk/inst_packages.txt /home/auto/inst_packages.txt 100% 1583 127.9KB/s 00:00 Press [Enter] key to continue...

Upload via (HTTP/HTTPS)

Enter the command option 3 from the File Operations menu to upload a file to the host over HTTP or HTTPS.

Enter option [ 0 - 5 ]: 3 This will copy a file from the url to COP server Enter full url path for file : http://10.22.154.165/a.html a.html 100%[=============================================================================>] 391.90M 106MB/s in 3.7s Upload file successful. Press [Enter] key to continue...

Download File from COP

Enter the command option 3 from the File Operations menu to download a file that is saved on the host.

Enter option [ 0 - 4 ]: 3 ! Files present under the directory ! cop_setup_logs inst_packages.txt packages.txt sftp.txt Enter the file name to copy from COP server to the remote server: packages.txt This will scp packages.txt from localdisk to the remote server Enter remote hostname and path (username@hostname:<filepath>): auto@10.22.158.92:/home/auto Copying localdisk files to auto@10.22.158.92:/home/auto FIPS mode initialized The authenticity of host '10.22.158.92 (10.22.158.92)' can't be established. RSA key fingerprint is SHA256:e9KqvWRV5YQhrPLoJQMiKFKKWVx7ZWz2T34oF31WvpU. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.22.158.92' (RSA) to the list of known hosts. auto@10.22.158.92's password: packages.txt 100% 3555 2.9MB/s 00:00 Press [Enter] key to continue...

Delete File

Enter the command option 4 from the File Operations menu to delete the files that was uploaded by the upload file command.

Enter option [ 0 - 4 ]: 4 ! Files present under the directory ! cop_setup_logs inst_packages.txt packages.txt sftp.txt Enter file/directory to delete: packages.txt Deleting file /var/airwave/appliance/localdisk/packages.txt Are you sure you want to delete this file(Y/N): Y File /var/airwave/appliance/localdisk/packages.txt deleted Press [Enter] key to continue...

Show Commands

Show commands are used to view or display various elements of the Aruba Central (on-premises) deployment like configurations currently performed, user sessions, status, and so on.

Enter the command option 3 from the main menu to view all the show commands supported.

Enter option [ 0 - 9 ]: 3 1. Version (Detail) 2. List Files 3. Backup-Restore Status 4. Configuration 5. System 6. User Sessions 7. Clock 8. App Status 9. Cluster Status ==================================== b. back m. main menu 0. exit Enter option [ 0 - 9 ]:

The following section describes the set of commands that can be executed under the Show commands category.

Version (Detail)

Enter command option 1 from the Show commands menu to display the version (Detail).

Enter option [ 0 - 9 ]: 1 COP Version: 2.5.5.0 Build: 10.0.0-GA01.139 ISO Installed: Ok COP Software Installed: Ok Setup Cluster: Ok Pulling ILO details. Please wait. HPE Smart Array P408i-a SR Gen10: "4.11" iLO 5: "2.18 Jun 22 2020" System ROM: "U32 v2.34 (04/08/2020)" Press [Enter] key to continue...

List Files

Enter command option 2 from the Show commands menu to display the total number of files.

Enter option [ 0 - 9 ]: 2 total 4 drwxr-xr-x 2 root root 4096 Jan 3 16:29 cop_setup_logs Press [Enter] key to continue...

Backup–Restore Status

Enter command option 3 from the Show commands menu to display the backup and restore status.

Enter option [ 0 - 9 ]: 3 ############################ backup/restore status ############################ {"details": [ { "message": "Postgres backup success", "status": "success" }, { "message": "Cassandra backup success", "status": "success" }, { "message": "Elasticsearch backup success", "status": "success" }, { "message": "Minio backup success", "status": "success" }, { "message": "Tar creation success", "status": "success" }, { "message": "Transferring the backup to repository success", "status": "success" } ], "endedOn": "Wed, 26 Jun 2019 12:52:29 GMT", "operation": "Backup", "startedOn": "Wed, 26 Jun 2019 11:59:43 GMT", "status": "Completed" }

Configuration

Enter command option 4 from the Show commands menu to display the updated network settings, AirWave cluster details, and NTP/Timezone information.

Enter option [ 0 - 9 ]: 4 1. Network-config/Cluster-info 2. NTP/Timezone Info Enter option [ 0 - 2 ]:

  • Network-config/Cluster-info—Enter command option 1 from the Configuration menu to view the network configuration and cluster information.

    Enter option [ 0 - 2 ]: 1 Updated Network Settings ------------------------ Hostname : node182-158.arubathena.com IP Address : 10.22.158.182 Subnet Mask : 255.255.255.0 Gateway : 10.22.158.2 DNS : 10.20.50.10 Secondary DNS : 10.20.50.25 Timezone : UTC COP Cluster Details ----------------------- Cluster IP : 10.22.158.27 Cluster FQDN : node3vip.arubathena.com Pod CIDR : 172.16.0.0/16 Service CIDR : 10.3.0.0/23 Router ID : 27 Time Zone : UTC Cluster Node Count : 3 Cluster Node List : NAME STATUS ROLES AGE VERSION 10.22.158.181 Ready master 8h v1.14.5 10.22.158.182 Ready master 8h v1.14.5 10.22.158.77 Ready master 8h v1.14.5

  • NTP/Timezone Info—Enter command option 2 from the Configuration menu to view the NTP/Timezone info.

    Enter option [ 0 - 2 ]: 2 ############################ NTP Info ############################ Default NTP server configured is - ntp.ubuntu.com ############################ TimeZone Info ############################ UTC

System

Enter command option 5 from the Show commands menu to display system information like usage of memory, system information, and so on.

Enter option [ 0 - 9 ]: 5 1. Memory/Hard disk/CPU Usage 3. Uptime ==================================== b. back m. main menu 0. exit Enter option [ 0 - 2 ]:

  • Memory/Hard disk/ CPU Usage—Enter the command option 1 from the System menu to view the usage of memory, hard disk, and CPUCentral Processing Unit. A CPU is an electronic circuitry in a computer for processing instructions. information.

    Enter option [ 0 - 2 ]: 1 ############################ Memory Usage ############################ total used free shared buff/cache available Mem: 251G 113G 111G 990M 26G 137G Swap: 0B 0B 0B ############################ Hardisk Usage ############################ Filesystem Size Used Avail Use% Mounted on udev 126G 0 126G 0% /dev tmpfs 26G 17M 26G 1% /run /dev/sdb4 15G 6.0G 8.3G 42% / tmpfs 126G 0 126G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 126G 0 126G 0% /sys/fs/cgroup /dev/sdb3 465M 109M 328M 25% /boot /dev/sdb2 241M 512 241M 1% /boot/efi /dev/sdb5 15G 41M 15G 1% /secondary /dev/sdb6 1.7T 82G 1.6T 5% /data tmpfs 26G 0 26G 0% /run/user/1003 tmpfs 26G 0 26G 0% /run/user/1001 tmpfs 26G 0 26G 0% /run/user/1004 ############################ CPU Usage ############################ %Cpu(s): 7.0 us, 2.2 sy, 0.0 ni, 90.1 id, 0.4 wa, 0.0 hi, 0.3 si, 0.0 st Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 80 On-line CPU(s) list: 0-79 Thread(s) per core: 2 Core(s) per socket: 20 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6138 CPU @ 2.00GHz Stepping: 4 CPU MHz: 2866.513 CPU max MHz: 3700.0000 CPU min MHz: 1000.0000 BogoMIPS: 4000.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 28160K NUMA node0 CPU(s): 0-19,40-59 NUMA node1 CPU(s): 20-39,60-79 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr

  • Uptime—Enter the command option 2 from the System menu to view the uptime duration of a Aruba Central (on-premises) pod.

    Enter option [ 0 - 2 ]: 2 ############################ uptime ############################ 06:44:21 up 8:49, 7 users, load average: 17.89, 11.79, 10.51

User Sessions

Enter command option 6 from the Show commands menu to display the list of user sessions.

Enter option [ 0 - 9 ]: 6 ############################ List of user sessions ############################ copadmin pts/0 2020-07-27 05:26 01:17 51432 (10.240.125.20) ineedshell pts/1 2020-07-27 05:02 01:42 3261 (10.20.13.62) cop_shell pts/2 2020-07-27 05:30 01:10 54299 (10.240.125.20) copadmin pts/3 2020-07-27 05:54 . 76741 (10.240.126.221) ineedshell pts/4 2020-07-27 06:05 00:39 47373 (10.20.13.113) ineedshell pts/5 2020-07-27 06:11 00:32 36861 (10.20.44.187) ineedshell pts/6 2020-07-27 06:42 00:02 68881 (10.240.130.81 )

Clock

Enter command option 7 from the Show commands menu to display the date, week, month, and time details.

Enter option [ 0 - 9 ]: 7 Thu Aug 8 03:33:50 UTC 2019

App status

Enter command option 8 from the Show commands menu to provide the pod status of any Aruba Central (on-premises) application. Following example shows the status of the Aruba Central (on-premises) application.

Enter option [ 0 - 9 ]: 8 Enter the application name, to list all apps press Enter key:central Enter the application name, to list all apps press Enter key:central acp-system central-grafana-dashboard-7c845956dc-92xgj 1/1 Running 7h42m 172.16.2.94 10.22.158.181 <none> <none> 1 central acp-ae-rapids-api-deployment-b8d794d49-4sxck 1/1 Running 0 7h30m 172.16.0.172 10.22.158.182 <none> <none> central acp-ae-rapids-bootstrap-deployment-789f85cbbd-dtjsb 1/1 Running 0 7h38m 172.16.4.131 10.22.158.77 <none> central acp-ae-rapids-deployment-588b4989b5-kc58v 1/1 Running 0 7h38m 172.16.0.134 10.22.158.182 <none> <none central acp-ae-rapids-deployment-588b4989b5-q7mw8 1/1 Running 0 7h38m 172.16.4.130 10.22.158.77 <none> <non central acp-ae-rapids-deployment-588b4989b5-q7mw8 1/1 Running 0 7h38m 172.16.4.130 10.22.158.77 <none> <none central acp-ae-rapids-deployment-588b4989b5-xx5ks 1/1 Running 0 7h38m 172.16.2.121 10.22.158.181 <none> central acp-device-visibility-deployment-5f97648f6f-nxq28 1/1 Running 0 7h42m 172.16.4.102 10.22.158.77 <none> <none> central acp-device-visibility-deployment-5f97648f6f-nxq28 1/1 Running 0 7h42m 172.16.4.102 10.22.158.77 <none> <none> central admin-api-deployment-7d4f4984f7-9wq5h 1/1 Running 0 7h37m 172.16.2.150 10.22.158.181 <none> <none>

Cluster Status

Enter command option 9 from the Show commands menu to display the cluster details for Aruba Central (on-premises).

Enter option [ 0 - 9 ]: 9 COP Cluster Details ----------------------- Cluster IP : 10.22.158.27 Cluster FQDN : node3vip.arubathena.com Pod CIDR : 172.16.0.0/16 Service CIDR : 10.3.0.0/23 Router ID : 27 Time Zone : UTC Cluster Node Count : 3 Cluster Node List : NAME STATUS ROLES AGE VERSION 10.22.158.181 Ready master 8h v1.14.5 10.22.158.182 Ready master 8h v1.14.5 10.22.158.77 Ready master 8h v1.14.5

System Configuration Commands

The System Configuration commands are used to configure system parameters like network setup, cluster setup, timezone setup and also, upgrade the setup or perform a complete factory reset.

Enter command option 4 from the main menu to view all the system configuration commands supported.

Enter option [ 0 - 9 ]: 4 1. Upgrade 2. Network Setup 3. Proxy Setup 4. Setup Timezone 5. Setup NTP 6. Node Setup ==================================== b. back m. main menu 0. exit Enter option [ 0 - 6 ]:

The following section describes the set of commands that can be executed under the system configuration category.

Upgrade

Enter command option 1 from the System Configuration commands menu to upgrade the system for either an online user or an offline user.

Enter option [ 0 - 6 ]: 1 COP Server Status --------------------------------------------------------- Current Version : 2.5.2.0 Latest Version : 2.5.2.0 Online Customer : true Upgrade Status : UP_TO_DATE Upgrade Available : false File Transfer Completion Percentage : 0 Upgrade Stage Completion Percentage : 0 --------------------------------------------------------- Last File Transfer Status : Last File Transfer Message : Last File Transfer Time : Last Upgrade Status : Last Upgrade Message : Last Upgrade Time : --------------------------------------------------------- ===== COP is in latest version =====

Network Setup

Enter command option 2 from the System Configuration commands menu to setup a network permanently or temporarily.

Enter option [ 0 - 6 ]: 2 1. Permanent (Network settings) 2. Temporary (Network settings) ==================================== b. back m. main menu 0. exit Enter option [ 0 - 2 ]:

  • Permanent (Network settings)—Enter command option 1 from the Network Setup commands menu to setup the permanent network settings.

    Enter option [ 0 - 2 ]: 1 Network Settings Hostname : ccs-1n-cophost.arubathena.com IP Address : 10.22.154.57 Interface : eno1 Enter Subnet mask : 255.255.255.0 Enter Gateway : 10.22.154.2 Enter DNS : 10.20.50.10 Secondary DNS is optional. Press ENTER to proceed Enter Secondary DNS : 10.20.50.25 Network settings exist; will be reset to new value To list timezones, enter 'list' Enter timezone : UTC =========================== Updated Network Settings =========================== Hostname : ccs-1n-cophost.arubathena.com IP Address : 10.22.154.57 Subnet Mask : 255.255.255.0 Gateway : 10.22.154.2 DNS : 10.20.50.10 Secondary DNS : 10.20.50.25 Timezone : UTC ================================================================================ Press [Enter] key to continue...

  • Temporary (Network settings)—Enter command option 2 from the Network Setup commands menu to setup the temporary network settings.

    Enter option [ 0 - 2 ]: 2 Network Settings Hostname : ccs-1n-cophost.arubathena.com IP Address : 10.22.154.57 Interface : eno1 Enter Subnet mask : 255.255.255.0 Enter Gateway : 10.22.154.2 Enter DNS : 10.20.50.10 Secondary DNS is optional. Press ENTER to proceed Enter Secondary DNS : 10.20.50.25 Network settings exist; will be reset to new value To list timezones, enter 'list' Enter timezone : UTC =========================== Updated Network Settings =========================== Hostname : ccs-1n-cophost.arubathena.com IP Address : 10.22.154.57 Subnet Mask : 255.255.255.0 Gateway : 10.22.154.2 DNS : 10.20.50.10 Secondary DNS : 10.20.50.25 Timezone : UTC ================================================================================ Press [Enter] key to continue...

Proxy Setup

Enter command option 3 from the System Configuration menu to add, delete, or get proxy URL.

Enter option [ 0 - 6 ]: 3 1. Add Proxy 2. Delete Proxy 3. Get Proxy Enter option [ 0 - 3 ]:

  • Add Proxy—Enter command option 1 from the Proxy Setup commands menu from the Proxy Setup menu to add a proxy URL.

    Enter option [ 0 - 3 ]: 1 Enter the proxy url: Enter Port: Enter username(optional): Enter password(optional): Enter option [ 0 - 3 ]: 1 Enter the proxy url: www.techpubs.com Enter port: 98 Enter username(optional): Enter password(optional):

  • Delete Proxy—Enter command option 2 from the Proxy Setup commands menu menu to delete a proxy.

    Enter option [ 0 - 3 ]: 2 Proxy deleted Press [Enter] key to continue...

  • Get Proxy—Enter command option 3 from the Proxy Setup menu to get the details of a proxy.

    Enter option [ 0 - 3 ]: 3 "url": "10.22.154.228", "username": "admin", "password": "", "port": "3128"

Setup Timezone

Enter command option 4 from the System Configuration menu to setup a timezone.

Enter option [ 0 - 6 ]: 4 To list timezones, enter 'list' Enter timezone [UTC]: GMT Setting TimeZone for other nodes in this cluster... configmap/airwave-config patched (no change) Press [Enter] key to continue...

Setup NTP

Enter command option 5 from the System Configuration menu to setup an NTP.

Enter option [ 0 - 6 ]: 5 Enter primary NTP server : 10.22.158.230 Enter secondary NTP server (Optional) :10.22.154.165 Enter tertiary NTP server (Optional): Is NTP Authentication required (y/n) : n Configuring NTP for node : 10.22.154.57 FIPS mode initialized 10.22.158.230 NTP configured on node 10.22.154.57 10.22.154.165 NTP configured on node 10.22.154.57 FIPS mode initialized FIPS mode initialized NTP is configured node : 10.22.154.57 Press [Enter] key to continue...

All the nodes in a multi-cluster must synchronize to the same NTP server. Run the command NTP/Timezone info to verify if all the nodes are synchronized with the same NTP server. To run the NTP/Timezone info, enter command option 2 from the show configuration menu.

You also have an option to authenticate the NTP server by using the secure key.

  • If you are using iLO when configuring NTP servers and require the authentication for NTP server, you must either use the WebUI or CLI to copy the NTP server key. The copy and paste operation is not supported on the iLO console. Logon to the CLI with iLO credentials and use the VSP command to get the secure key.
  • If Setup NTP is executed after the cluster is configured, then the modified details of NTP server is updated to the cluster. If cluster is not configured, then the modified NTP server details is updated only to the node.

Node Setup

Enter command option 6 from the System Configuration menu to setup a node.

Enter option [ 0 - 6 ]: 6

Advanced Commands

Enter command option 5 from the main menu to check test connectivity and NsLookup.

Enter option [ 0 - 9 ]: 5 1. Test Connectivity 2. NsLookup 3. Toggle CDN 4. Configure ILO IP ==================================== b. back m. main menu 0. exit

Test Connectivity

Enter command option 1 from the Advanced commands menu to test the connectivity to any URLs.

Enter option [ 0 - 4 ]: 1 1. Ping 2. Dependent Servers Reachability ==================================== b. back m. main menu 0. exit Enter option [ 0 - 2 ]:

  • Ping—Enter command option 1 from the Test Connectivity menu to ping an IP address or hostname.

    Enter option [ 0 - 2 ]: 1 Enter the IP address or hostname to ping:10.22.154.56 PING 10.22.154.56 (10.22.154.56) 56(84) bytes of data. 64 bytes from 10.22.154.56: icmp_seq=1 ttl=63 time=0.473 ms 64 bytes from 10.22.154.56: icmp_seq=2 ttl=63 time=1.61 ms 64 bytes from 10.22.154.56: icmp_seq=3 ttl=63 time=2.63 ms 64 bytes from 10.22.154.56: icmp_seq=4 ttl=63 time=1.58 ms 64 bytes from 10.22.154.56: icmp_seq=5 ttl=63 time=2.99 ms

  • Dependent Servers Reachability—Enter command option 2 from the Test Connectivity menu to check the reachability of the dependent servers.

    Enter option [ 0 - 2 ]: 2 Connection to coreupdate (coreupdate.central.arubanetworks.com) successful. Connecting to coreupdate(coreupdate-prod.central.arubanetworks.com) ... You are going to access FED system . Required policy 1 LINE 1 2 LINE 2 3 LINE 3 4 LINE 4 5 LINE 5 Connection to coreupdate (coreupdate-prod.central.arubanetworks.com) successful. Connecting to quay(quay.io) ... You are going to access FED system . Required policy 1 LINE 1 2 LINE 2 3 LINE 3 4 LINE 4 5 LINE 5 Connection to quay (quay.io) successful. Connecting to nexus(nexus2.airwave.com) ... Connection to nexus(nexus2.airwave.com) successful. ----- All dependent HTTP(S) servers are reachable ----- Press [Enter] key to continue...

NsLookup

Enter option 2 from the Advanced commands menu to get the DNS lookups for any host names.

Enter option [ 0 - 4 ]: 2 Enter the hostname or IP Address for NS Lookup:google.com ../../../lib/dns/hmac_link.c:349: FIPS mode is 1: MD5 is only supported if the value is 0. Please disable either FIPS mode or MD5. Server: 10.20.50.10 Address: 10.20.50.10#53 Non-authoritative answer: Name: google.com Address: 142.250.76.46 Name: google.com Address: 2404:6800:4007:814::200e Press [Enter] key to continue...

Toggle CDN

Enter command option 3 from the Advanced commands menu to enable CDN, disable CDN , or show CDN Status.

Enter option [ 0 - 4 ]: 3 1. Enable CDN 2. Disable CDN 3. Show CDN status ==================================== b. back m. main menu 0. exit Enter option [ 0 - 3 ]:

  • Enable CDN—Enter command option 1 from the Toggle CDN commands menu to enable CDN.

    Enter option [ 0 - 3 ]: 1 CDN enabled Press [Enter] key to continue...

  • Disable CDN—Enter command option 2 from the Toggle CDN commands menu to disable CDN.

    Enter option [ 0 - 3 ]: 2 CDN enabled Press [Enter] key to continue...

  • Show CDN Status—Enter command option 3 from the Toggle CDN commands menu to show the status of CDN.

    Enter option [ 0 - 3 ]: 3 { "monitoring": "//d1c50u1zbkqmph.cloudfront.net", "configuration": "//d1c50u1zbkqmph.cloudfront.net", "base": "//d1c50u1zbkqmph.cloudfront.net", "enabled": false, "guest": "//d1c50u1zbkqmph.cloudfront.net", "msp": "//d1c50u1zbkqmph.cloudfront.net" }

Configure ILO IP

Enter command option 4 from the Advanced commands menu to configure the IP address of the ILO.

Enter option [ 0 - 4 ]: 4

Security Commands

Enter the command option 6 from the main menu to either reset the GUI or CLI password or update the iLO password.

Enter option [ 0 - 11 ]: 6 1. Reset Password GUI 2. Reset Password CLI 3. Reset debug apps password ==================================== b. back m. main menu 0. exit Enter option [ 0 - 3 ]:

Reset Password GUI

Enter the command option 1 from the Security Commands menu to reset the GUI password.

Enter option [ 0 - 3 ]: 1 Do you want to reset GUI admin user password(y/n) :

Reset Password CLI

Enter the command option 2 from the Security commands menu to reset the CLI password.

Enter option [ 0 - 3 ]: 2 Do you want to reset copadmin password(y/n) :

Reset debug apps password

Enter the command option 3 from the Security commands menu to reset the debug apps password.

Enter option [ 0 - 3 ]: 3 Do you want to reset debug apps password(y/n) :

Support Commands

Enter the command option 7 from the main menu to start or stop the support connection, collect logs, and restart a particular application.\

Enter option [ 0 - 9 ]: 7 1. Support Connection 2. Collect All Logs 3. Log Snapshot Operations 4. Download COP Setup Logs 5. Restart Application 6. System Operations Lock Management ==================================== b. back m. main menu 0. exit Enter option [ 0 - 6 ]:

Support Connection

Enter the command option 1 from the Support commands menu to start, stop, restart the support connection from remote TAC access or check the status of the support connection and upload the support connection file.

Enter option [ 0 - 6 ]: 1 1. Start Support Connection 2. Stop Support Connection 3. Restart Support Connection 4. Support Connection Status 5. Upload Support Connection File 6. Add Support User 'copsupport' 7. Delete Support User 'copsupport' 8. Show contents of copsupport.gpg ==================================== b. back m. main menu 0. exit Enter option [ 0 - 8 ]: 1

  • Start Support Connection—Enter command option 1 from the Support Connection commands menu to start a support connection.

    Enter option [ 0 - 8 ]: 1 { "support_connection_status": "stopped", "active_from": "_", "connection": "inactive" } Press [Enter] key to continue...

  • Stop Support Connection—Enter command option 2 from the Support Connection commands menu to stop a support connection.

    Enter option [ 0 - 8 ]: 2 { "support_connection_status": "stopped" } Press [Enter] key to continue...

  • Restart Support Connection—Enter command option 3 from the Support Connection commands menu to restart a support connection.

    Enter option [ 0 - 8 ]: 3 { "support_connection_status": "stopped" } { "support_connection_status": "stopped", "active_from": "_", "connection": "inactive" } Press [Enter] key to continue...

  • Support Connection Status—Enter command option 4 from the Support Connection commands menu to check the status of the support connection.

    Enter option [ 0 - 8 ]: 4 { "support_connection_status": "stopped", "active_from": "_", "connection": "inactive", "node": "_" } Press [Enter] key to continue...

  • Upload Support Connection File—Enter command option 5 from the Support Connection commands menu to upload the support connection file.

    Enter option [ 0 - 8 ]: 5 This will scp a file from the remote server to cop server Enter remote hostname and path (username@hostname:<filepath>): auto@10.22.158.92:/home/auto/support_connection.tar Copying auto@10.22.158.92:/home/auto/support_connection.tar to COP server FIPS mode initialized auto@10.22.158.92's password: Connected to 10.22.158.92. Fetching /home/auto/isupport_connection.tar to /var/airwave/appliance/localdisk/support_connection.tar /home/auto/support_connection.tar 100% 1988 127.9MB/s 00:00 Press [Enter] key to continue...

  • Add Support User 'copsupport'—Enter command option 6 from the Support Connection commands menu to add support connection for user, copsupport.

    Enter option [ 0 - 8 ]: 6 copsupport user account expires on: Mar 10, 2022 8 10:48:17 -----BEGIN PGP MESSAGE----- hQIMA0wNcZIn82zzAQ//bj0kS7h2s2wMJWX0JlYcfX053lFjWUa2XqHJ5xKk1OP7 jzvVRw+yFApKy5R0DP1RbXnifLHFGGxZx+x40H592agTehIqrI3L5put4Ewi/uK2 RZg9znigDmTe8jKTNWIbrN80VBpTz4QXaArD+4yhAJ80JFhFyFij9fWz1dSCwIUj oej3JpKtDzVNmRZqANje8HeF62Y6WYWXFFn8VrzBPaasIPk1KQU5MZEKXtZyB3zD nmi3IyM5rF/+uqFniR7vYlQfYXwySB17ToPKvjbO4tvEt5WWwfXeEg+DczdNkdIz EpxXwgoby958Le0xCgcV8efbRtGCkxrtks37pPMAGJlVc0qtSJ/74DZc/BHD0WrZ r4euZjWD/F1Eaxq56nMUHal0jzyLVj5w7DP5Rhj9mnCYl+jsy6ZTIbxpfDzembUF LwTbVdjrbq79Ib+RFSHMUwFCv9CPGMjMmCJokYpdL82wksdJyOaWwF4AclmA19sU IuyUtwiXb5bZqwCM0N3+mVQhaUqti0Xu4K5K5E8kSje3QOAyUz0ogS9axGkJQUWx FpthJUF8ZKwH/tHU07K/So5LhahMcIa+qnCxycUC1X9G5R9EhvpGzEEQrUwy59lp zCz9w4M0ON/QwNh4IVssnZMTW6WLUv0r9fHEjnJAj/toIsRAVbKSAMgzXKNiwc/S dQEKZuFfFlPufJW4BWIoAn5PeThJQOrNlKxocI+e3H7eUKMZVof38MACsl6DJdy+ RCVrl4Wie3Ek/i2jXawz9QhBQza5c6BhdnjWqhQ+U9swEB0REnUbTqlaVhTXNVnW qMGdxD77nPuKKJuTluTONXJLdsF0KA== =gWUQ -----END PGP MESSAGE----- Press [Enter] key to continue...

  • Delete Support User 'copsupport'—Enter command option 7 from the Support Connection commands menu to delete support connection for the user, copsupport.

    Enter option [ 0 - 8 ]: 7 Are you sure you want to delete support user 'copsupport' (Y/N)y Removing user `copsupport' ... Done. Support user 'copsupport' deleted successfully. Press [Enter] key to continue...

  • Show contents of copsupport.gpg—Enter command option 8 from the Support Connection commands menu to show the contents of copsupport.gpg file.

    Enter option [ 0 - 8 ]: 8 -----BEGIN PGP MESSAGE----- hQIMA0wNcZIn82zzARAAmuLy9Jure2AHc9/oSKXc0OEZ9ZW35O6r+mvWFk98zrMz V1IW4wocFj1KhcpfMnMZ0O/nBY0oZIb1CK6CpLnaxFAM+T6NLv7Kroz6wqKfVSt8 pjsrmSh3eyfmMK9FlIkU3u2LglB9xUxMFGqjgvqTqcieqwzWFG5LmK1ALUWsUMoE 4PsWTTdVO+gRGkx17hsa7c9US0iVFaeOQJBdfCnOgP3rfqJzoVhbnL3JEnJSZrYs R/sBIB47LNyw+E0i5ei8mbZ6S3rlWOCexxqFIdmyw+S52xrDPcACW/oqcnW31ubh u6jD4JqSZqavaf+QZKM80/I0r9N0jAXMExCkOT0TQX3mmg5K5pFgo38j5hnifXTN O+3rAcjRAgWhu1Nq3+1qpdG0esBCYPGdVs5f2mOej+cNBIsfg+RTemejOa71IeVf R4/NWpMJa0STYk3/qSybEXjLiYxwwwsJILiqjfE5TVKOcAJhoUVyTH/8t9l4zn+/ qASXne52ocPaa4lxI3SxKGKz159cYcQxlXsJh+CS6RudZaAh8m/WKtWi2g2SqGhk UsnJXttG5ruFnbFQPk1DdUSPnSzy4SZaBnwC0fvwkbQNUhTuYJmgQEQe8M9on5su swhivSLvWYZTg6EYTlRveMRjh/iMbsDqp/ylsKH21jLQf9QA+tBM8yuPTmgAjPPS dQH6+RPsiSlhdjkWnH6ZItIwX1WB1DpZaBjjx/PTTG+7Wi5XerA+8v1liJJOo6X/ yIdMnqlrGrQALRO/xPAXJUc4pQxXIDgHpWTQd3VWlCX5oSl2tPIiUAeq5iDds3vS 5KgqEvskPIeY9BJyMWa+LX2sx175HQ== =t1Xn -----END PGP MESSAGE----- Press [Enter] key to continue...

Collect All Logs

Enter the command option 2 from the Support commands menu to collect the log files into a tar.gz file.

Enter option [ 0 - 6 ]: 2 cluster_log_collection... Collect COP logs along with diagnostic information (Y/N):Y Collecting all logs from Elasticsearch takes around 1-3 hours. It can be also collected from "Log Snapshot Operations" by selecting all as cate gory. Do you want to collect logs from Elasticsearch(Y/N):Y Collecting COP diagnostic information may take 2-5 minutes COP diagnostic information dumped and will be zipped to logs as well Starting Elasticsearch snapshot for all logs... Logs are being collected from 10.22.156.209 now @Tue Feb 8 11:15:25 UTC 2022 tar: /var/log/snmp: Cannot open: No such file or directory tar: Error is not recoverable: exiting now 0 kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead. mv: cannot stat 'cop-156-209.arubathena.com_log_collection_2022-02-08_11-15-25_UTC.tar.gz': No such file or directory log_compression... The following archive(tar.gz) contains all the log information to help debugging the problem: cop-156-209.arubathena.com_log_collection_2022-02-08_11-14-18_UTC.tar.gz Please share it with COP customer support team. cp: cannot stat '/home/copadmin/log_collection': No such file or directory Press [Enter] key to continue...

Log Snapshot Operations

Enter the command option 3 from the Support commands menu to generate and download snapshots for a category or node, generate logs for various pods, delete snapshots, and download upgrade reports.

Enter option [ 0 - 6 ]: 3 1. Generate Snapshots for a Category 2. Generate System Operation Logs 3. Generate Pod Logs 4. Generate Node Snapshot 5. Download Logs/Snapshots 6. Delete Logs/Snapshots 7. Download Upgrade Reports ==================================== b. back m. main menu 0. exit Enter option [ 0 - 7 ]:

  • Generate Snapshots for a Category—Enter command option 1 from the Log Snapshot Operations commands menu to collect log snapshots of specific categories (kube. nginx, alert, infra, syslog, and system).

    Enter option [ 0 - 7 ]: 1 Enter a category to create the snapshot [kube nginx alert infra syslog system all]... alert Enter the time range for snapshot creation [3h, 1d, 1w, 1M, 3M]... 1w { "status": "Accepted", "snapshotId": "alert-snap-7d-1644406412" } Press [Enter] key to continue...

  • Generate System Operation Logs—Enter command option 2 from the Log Snapshot Operations commands menu to collect system operation logs.

    Enter option [ 0 - 7 ]: 2 Enter a category to create the snapshot [upgrade backuprestore migration]... migration % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 105 100 105 0 0 652 0 --:--:-- --:--:-- --:--:-- 660 { "status": "Accepted", "snapshotId": "migration-plain-1m-1644910302", "category": "migration" } Press [Enter] key to continue...

  • Generate Pod Logs—Enter command option 3 from the Log Snapshot Operations commands menu to collect pod logs.

    Enter option [ 0 - 7 ]: 3 Enter a pod name to generate logs... postgres-cluster-0 { "status": "Accepted", "snapshotId": "postgres-cluster-0-1m-1644410009", "category": "pod" } Press [Enter] key to continue...

  • Generate Node Snapshot—Enter command option 4 from the Log Snapshot Operations commands menu to collect log snapshots for specific nodes.

    Enter option [ 0 - 7 ]: 4 Enter node to generate logs [10.22.154.57]... 10.22.154.57 { "status": "Accepted", "snapshotId": "10.22.154.57-snap-1m-1644410130" } Press [Enter] key to continue...

  • Download Logs/Snapshots—Enter command option 5 from the Log Snapshot Operations commands menu to download the log snapshot file.

    Enter option [ 0 - 7 ]: 5 List of available snapshots and their status ---------------------------------------------------------------- create time snapshot name status ---------------------------------------------------------------- 2022-02-08 11:12:35, "all-snap-7d-1644318755": "in_progress" ---------------------------------------------------------------- Select a name to be downloaded (without quotes)...

  • Delete Logs/Snapshots—Enter command option 6 from the Log Snapshot Operations commands menu to delete log snapshots.

    Enter option [ 0 - 7 ]: 6 List of available snapshots and their status ---------------------------------------------------------------- create time snapshot name status ---------------------------------------------------------------- 2022-02-08 11:12:35, "all-snap-7d-1644318755": "in_progress" ---------------------------------------------------------------- Select a name to be deleted (without quotes)...

  • Download Upgrade Reports—Enter command option 7 from the Log Snapshot Operations commands menu to download upgrade reports.

    Enter option [ 0 - 7 ]: 7 Added `minio` successfully. mc: Configuration written to `/home/copadmin/.mc/config.json`. Please update your access credentials. mc: Successfully created `/home/copadmin/.mc/share`. mc: Initialized share uploads `/home/copadmin/.mc/share/uploads.json` file. mc: Initialized share downloads `/home/copadmin/.mc/share/downloads.json` file. mc: <ERROR> Unable to validate source minio/deployment/ Press [Enter] key to continue...

Download COP Setup Logs

Enter the command option 4 from the Support commands menu to download the Aruba Central (on-premises) setup logs.

Enter option [ 0 - 6 ]: 4 ################################################################################ SCP would be used to copy the logs to a remote host ################################################################################ Enter remote hostname and path (username@hostname:<filepath>):

Restart Application

Enter the command option 5 from the Support commands menu to restart applications.

Enter option [ 0 - 6 ]: 5 Enter an application name to restart:

System Operations Lock Management

Enter the command option 6 from the Support commands menu to manage the system operations lock management.

Enter option [ 0 - 6 ]: 6 1. Lock status 2. Release Lock 3. Update Lock Setting ==================================== b. back m. main menu 0. exit Enter option [ 0 - 3 ]:

  • Lock status—Enter command option 1 from the System Operations Lock Management commands menu to lock the status of the system operation.

    Enter option [ 0 - 3 ]: 1 No system operation is active currently Press [Enter] key to continue...

  • Release Lock—Enter command option 2 from the System Operations Lock Management commands menu to release the lock of the system operation.

    Enter option [ 0 - 3 ]: 2 1. Upgrade 2. Backup 3. Restore 4. Migration 5. Add node 6. Replace node 7. Reboot node ==================================== b. back m. main menu 0. exit Enter option [ 0 - 7 ]:

  • Update Lock Setting—Enter command option 3 from the System Operations Lock Management commands menu to update the lock settings of the system operation.

    1. on 2. off ==================================== b. back m. main menu 0. exit Enter option [ 0 - 2 ]: 1 Do you really want to update system operation lock settings?(y/n):

Temporary Root Shell Commands

Enter command option 8 from the main menu to create a temporary user, cop_shell with a random password and the system encrypts this password. Provide this key to the customer support. The customer support will then be able to access the Aruba Central (on-premises) SSH using the username, cop_shell for 2 days from the date of creation.

Use this option to get access to the Shell for a limited period of time for checking pods, collecting logs, or for executing other CLI commands. This is useful if you want to troubleshoot or debug an issue.

Enter option [ 0 - 9 ]: 8 This will reset the previous COP root shell's pwd. proceed? (y/n): Y No changes made. Press [Enter] key to continue...

After the expiry, you can repeat the same process to extend the temporary root access by another 2 days.

Search Commands

Enter option 8 from the main menu to view a list of available command options.

Enter option [ 0 - 9 ]: 8 Enter the text to get the list of available command options (case insensitive) : cluster 1) Show -> Configuration -> Network-config/Cluster-info 2) Show -> Cluster Status Use number to select a command and execute it, enter (stop) to quit: 1 Updated Network Settings ------------------------ Hostname : cop-156-209.arubathena.com IP Address : 10.22.156.209 Subnet Mask : 255.255.255.0 Gateway : 10.22.156.2 DNS : 10.20.50.10 Secondary DNS : 10.20.50.25 Timezone : UTC COP Cluster Details ----------------------- Cluster IP : 10.22.156.192 Cluster FQDN : copvip-156-192.arubathena.com Pod CIDR : 172.16.0.0/16 Service CIDR : 10.3.0.0/23 Router ID : 192 Time Zone : UTC Cluster Node Count : 1 Cluster Node List : NAME STATUS ROLES AGE VERSION 10.22.156.209 Ready conductor 35d v1.18.6 Press [Enter] key to continue...