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 4: | Line 4: | ||
1. Do ssh login as user "'''khika'''” or “'''root'''" on KHIKA Aggregator | 1. Do ssh login as user "'''khika'''” or “'''root'''" on KHIKA Aggregator | ||
2. Use following command ( if you login as user khika) | 2. Use following command ( if you login as user khika) | ||
− | + | '''sudo su''' | |
3. Go to directory "/opt/ossec/bin" | 3. Go to directory "/opt/ossec/bin" | ||
− | + | '''cd /opt/ossec/bin''' | |
4. Use the following command to list all agents added on ossec server (see below screenshot) | 4. Use the following command to list all agents added on ossec server (see below screenshot) | ||
− | + | '''./agent_control -l''' <br> | |
[[File:Win116.jpg|600px]] <br> | [[File:Win116.jpg|600px]] <br> | ||
5. To find only connected agents list use following command | 5. To find only connected agents list use following command | ||
./agent_control -lc | ./agent_control -lc |
Revision as of 10:16, 13 August 2019
==How to Find list of ossec agents along with it's status on command line.==
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"
cd /opt/ossec/bin
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