Difference between revisions of "How to Find list of ossec agents along with it's status on command line."
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
2. Use following command ( if you login as user khika)<br> | 2. Use following command ( if you login as user khika)<br> | ||
'''sudo su'''<br> | '''sudo su'''<br> | ||
− | 3. Go to directory "/opt/ossec/bin"<br> | + | 3. Go to directory "/opt/ossec/bin" <br> |
− | ''' | + | '''sudo su'''<br> |
4. Use the following command to list all agents added on ossec server (see below screenshot)<br> | 4. Use the following command to list all agents added on ossec server (see below screenshot)<br> | ||
'''./agent_control -l''' <br> | '''./agent_control -l''' <br> |
Revision as of 10:40, 13 August 2019
1. Do ssh login as user "khika” or “root" on KHIKA Aggregator
2. Use following command ( if you login as user khika)
sudo su
3. Go to directory "/opt/ossec/bin"
sudo su
4. Use the following command to list all agents added on ossec server (see below screenshot)
./agent_control -l
5. To find only connected agents list use following command
./agent_control -lc