Monitoring, Management & Location Tracking

Commands which could be executed from limited CLI access

MVP
MVP
Q:


What commands can we execute from limited CLI access



A:


We can login as ampadmin user and select option "11" which is for enter commands,

AirWave Management Platform 8.2.6 on localhost.localdomain
  1  Upload File
  2  Download File
  3  Delete File
  4  Backup
  5  Restore
  6  Support
  7  Upgrade
  8  Advanced
  9  Security
 10  Custom Commands
 11  Enter Commands
  q  >> Quit
Your choice: 11

Running Enter Commands

Type 'help' for the list of commands.
$

Once we are in that prompt we can run the command "service". This will list all the services and its status.

Your choice: 11

Running Enter Commands

Type 'help' for the list of commands.
$ service
            auditd: auditd (pid  30145) is running...
         awrrdtool:
             crond: crond (pid  29936) is running...
            docker: docker is stopped
             httpd: httpd______________________________________ (pid 30783 2004 2001 1998 1993 1990 1987 1984 1981 1978 1975 1972 1969 1966 1963 1960 1957 1954 1924 1919 1916 1912 1906 1886 1880 1876 1871 1870 1869 1868 1867 1866 1864 1661) is running...
          iptables: running
           network: Configured devices:
                    lo eth0
                    Currently active devices:
                    lo eth0 docker0
             nginx: nginx (pid  1735) is running...
              ntpd: ntpd (pid  1939) is running...
           postfix: master (pid  30036) is running...
        postgresql: postmaster (pid  31627) is running...
   rabbitmq-server: beam.smp (pid 32522) is running...
           radiusd: radiusd is stopped
             redis: redis-server (pid  1899) is running...
         redis-vrf: redis-server is stopped
         rrdcached: rrdcached (pid 30688) is running...
              sshd: openssh-daemon (pid  1061) is running...
support_connection: support_connection.pl is stopped
          vmtoolsd: vmtoolsd (pid  30570) is running...


From here incase you want to start or stop a service we can use the command "service <name of the service from above output> start/stop/restart"

For example if i want to restart the vmtool service, i will be using the below command

$ service vmtoolsd restart
Stopping vmtoolsd:                                         [  OK  ]
Starting vmtoolsd:                                         [  OK  ]

 

Couple of other commands which we can run are below,

To watch the daemons

# wd

To see the running process and memory/cpu consumed

# top

To see the memory

# free -g

To see IP details

# ifconfig

 

Version history
Revision #:
4 of 4
Last update:
‎09-18-2019 08:05 AM
Updated by:
 
Labels (1)
Contributors
Tags (2)
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: