Difference between revisions of "How to Start OSSEC Server using command line."

From khika
Jump to navigation Jump to search
(Created page with "==How to Start OSSEC Server using command line.== 1. To Start the linux OSSEC Server which is pre configured on your KHIKA Aggregator you will have to go to the following dir...")
 
(How to Start OSSEC Server using command line.)
Line 3: Line 3:
 
1. To Start the linux OSSEC Server which is pre configured on your KHIKA Aggregator you will have to go to the following directory:
 
1. To Start the linux OSSEC Server which is pre configured on your KHIKA Aggregator you will have to go to the following directory:
 
     '''/opt/ossec/bin''' 
 
     '''/opt/ossec/bin''' 
2. Log in to KHIKA Aggregator and become root user using the command "'''sudo su'''"
+
2. Log in to KHIKA Aggregator and become root user using the command "'''sudo su'''" <br>
3. Go the the above mentioned directory using "'''cd /opt/ossec/bin'''" command.
+
3. Go the the above mentioned directory using "'''cd /opt/ossec/bin'''" command.<br>
4. type " '''ls -ltrh''' " to list the files and directories present in the directory.
+
4. type " '''ls -ltrh''' " to list the files and directories present in the directory.<br>
5. type following command to restart the ossec agent.
+
5. type following command to restart the ossec agent.<br>
     ./ossec-control start
+
     '''./ossec-control start''' <br>
 
6. Refer to the screenshot given below:
 
6. Refer to the screenshot given below:

Revision as of 11:01, 13 August 2019

How to Start OSSEC Server using command line.

1. To Start the linux OSSEC Server which is pre configured on your KHIKA Aggregator you will have to go to the following directory:

   /opt/ossec/bin 

2. Log in to KHIKA Aggregator and become root user using the command "sudo su"
3. Go the the above mentioned directory using "cd /opt/ossec/bin" command.
4. type " ls -ltrh " to list the files and directories present in the directory.
5. type following command to restart the ossec agent.

   ./ossec-control start 

6. Refer to the screenshot given below: