Difference between revisions of "How to Reinstall OSSEC Agent for Linux"

From khika
Jump to navigation Jump to search
(How to Reinstall OSSEC Agent for Linux)
(How to Reinstall OSSEC Agent for Linux)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=='''How to Reinstall OSSEC Agent for Linux'''==
 
=='''How to Reinstall OSSEC Agent for Linux'''==
  
     1. To reinstall the ossec agent for linux, We must first uninstall the ossec agent which is already present on your linux server.</br>
+
     1. To reinstall the ossec agent for linux, We must first uninstall the ossec agent which is already present on your linux server.
     2. Login to your Ossec Agent.</br>
+
     2. Login to your Ossec Agent.
     3. Fire '''sudo su''' command to enter into root.</br>
+
     3. Fire '''sudo su''' command to enter into '''root'''.
     4. Before proceeding to the uninstallation, make sure you stop the ossec agent.</br>
+
     4. Before proceeding to the uninstallation, make sure you stop the ossec agent.
     5. Go to the following directory:</br>
+
     5. Go to the following directory:
     6. '''/opt/ossec/bin''' </br>
+
     6. '''/opt/ossec/bin'''  
     7. Fire '''./ossec-control stop''' command to stop the agent. </br>
+
     7. Fire '''./ossec-control stop''' command to stop the agent. <br>
     8.
+
     8.[[File:Ossec11.jpg|600px]] <br>
    [[File:Ossec11.jpg|700px]]
+
     9. Go to the directory where ossec agent gets installed, '''(/opt)'''
     9. Go to the directory where ossec agent gets installed, (/opt) </br>
+
     10. Type following command 
     10. Type following command </br>
+
     11. '''cd /opt'''  
     11. '''cd /opt''' </br>
+
     12. Remove the ossec directory using following command.  
     12. Remove the ossec directory using following command. </br>
+
     13. '''rm -rf ossec/''' <br>
     13. '''rm -rf ossec/'''
+
    [[File:Ossec121.jpg|600px]] <br>
 +
    14. Now proceed with installing the ossec agent again.
 +
    15. [[Getting Data into KHIKA#Installing OSSEC Agent for Linux|Install ossec agent for Linux]]

Latest revision as of 10:04, 13 August 2019

How to Reinstall OSSEC Agent for Linux

   1. To reinstall the ossec agent for linux, We must first uninstall the ossec agent which is already present on your linux server.
   2. Login to your Ossec Agent.
   3. Fire sudo su command to enter into root.
   4. Before proceeding to the uninstallation, make sure you stop the ossec agent.
   5. Go to the following directory:
   6. /opt/ossec/bin 
   7. Fire ./ossec-control stop command to stop the agent. 
8.Ossec11.jpg
9. Go to the directory where ossec agent gets installed, (/opt) 10. Type following command  11. cd /opt 12. Remove the ossec directory using following command. 13. rm -rf ossec/
Ossec121.jpg
14. Now proceed with installing the ossec agent again. 15. Install ossec agent for Linux