Monitoring, Management & Location Tracking

Accessing Airwave CLI via Web Browser

Aruba Employee
Q:

How could you access the CLI of Airwave server via Web Browser on any Mobile Devices?



A:

Airwave server 8.2.x is introduced with a service called as "shellinaboxd" via which we could now access the Airwave Command Line using Web Browser. 

Shell In A Box implements a web server that can export arbitrary command line tools to a web based terminal emulator. This emulator is accessible to any JavaScript and CSS enabled web browser and does not require any additional browser plugins.

You could start the service using the command below:

[root@localhost mercury]# service shellinaboxd start
Starting shellinaboxd:                                     [  OK  ]

Now open the Airwave on the browser with port 4200. 

https://<airwave ip>:4200

Note: Only user login is allowed, you could use 'sudo' or change the user to root using 'su' post user login. 

To create a user for Airwave command line access you could follow the procedure below:

Login to Airwave CLI and add the CLI user and password as shown below-

# useradd  <username>

create password to the same user.

# passwd <username>

 

If needed you could also add this users in the sudoers file, by doing the following:

# visudo

add the user name in the below lines of the file, by going into insert mode, (you could key in "i" on the keyboard]:

## Allows people in group wheel to run all commands
<username>  ALL=(ALL)   ALL

## Same thing without a password
<username>  ALL=(ALL)   NOPASSWD: ALL

 

Then do save and apply by hitting the "esc" key on the keyboard and wq!

you should be able to login now on the GUI:

login: username

Password:

If you would like to sudo in, you could do:

[username@<airwave Ip ~]$ sudo su -

[root@<ampname> mercury]#

 

Version history
Revision #:
4 of 4
Last update:
‎03-29-2017 05:54 AM
Updated by:
 
Labels (1)
Contributors
Comments

Do you have to do anything to allow users to use this? I tried using my login and says incorrect, but login worked fine logging into the WebUI.

Hello JCameron,

 

Yes, you will need to add a new CLI user to be able to login to this CLI on the GUI. you will not be able to login with the Airwave WebUI credentials.

 

below is what you need to do:

 

Login to Airwave CLI and add the CLI user and password as shown below:

 

# useradd  <username>

create password to the same user.

# passwd <username>

 

If needed you could also add this users in the sudoers file, by doing the following:

# visudo

add the user name in the below lines of the file, by going into insert mode, (you could key in "i" on the keyboard]:

## Allows people in group wheel to run all commands
<username>  ALL=(ALL)   ALL

## Same thing without a password
<username>  ALL=(ALL)   NOPASSWD: ALL

 

Then do save and apply by hitting the "esc" key on the keyboard and wq!

you should be able to login now on the GUI:

login: username

Password:

If you would like to sudo in, you could do:

[username@<airwave Ip ~]$ sudo su -

[root@<ampname> mercury]#

 

done.

 

 

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.