For those Cloud PBX or Remote PBX deployments the Terminal Window feature could be especially valuable and a lifesaver. Protecting our installations against hackers means we need to close or restrict ports like the one used for SSH, however this can play against us when we need to remotely manage our PBX.
With the Terminal Window feature, we can do basic OS maintenance without SSH, saving us time and keeping us away from possible unsafe or complicated configurations to have terminal access.
We can access to the Terminal Window from the Management Console and clicking on the Terminal button, which will open a new tab as shown below:
Once there we can only run a few commands and not regular expressions. This is for security reasons. So none user with access to the Management Console could take total control of the machine.
For users not familiarized with Unix based systems, GNU/Linux and/or Debian or just to refresh their knowledge, here’s a list of the available commands along with its function:
- clear – Standard command to clear a terminal session
- ip – Followed by addr, displays the IP address in use along with the network devices (similar to the old ifconfig)
- ping – Command utilized to know if a host is up or that the network interface can be reached (ex. ping 184.108.40.206)
- traceroute – Command to trace the route an IP packet would follow from one network to another (ex. traceroute 220.127.116.11)
- get – Downloads a file from a remote directory in the local directory /dev/null (ex. get http://www.google.com)
- df – Stands for disk filesystem, shows file system information like disk space usage and mount points
- date – Very simple command to know the precise date and time of the machine
- routel – Displays the routing table
- ps – Displays information of all processes running at that moment
- nslookup – This command is specially useful when troubleshooting DNS server problems, displays the DNS name along with its IP address (ex. nslookup google.com)
- free – Shows unused and used RAM memory and Swap space
- netstat – Stands for network statistics and displays Ethernet and protocol information
- dpkg-query – Tool to show information about packages listed on the dpkg database
- reboot – Command to reboot the machine
- virt-what – Displays information about virtualization technology in use
Check out the video we’ve made for you to demonstrate how it is to run these commands: