volker.michels@hpe.com

Cleanup ConApp for Backup

Blog Post created by volker.michels@hpe.com on Aug 11, 2014

Friends of ArcSight,

 

I have so many appliances in the field that my disk space for backup got low however I checked the appliances and yes there is a way to clean up the apliance without impact, follow this ;-)

 

1. Upgrade ALL SmartConnectors (incl. empty connectors) to latest version

 

2. Copy and execute the block below to your console (Linux) and you save a lot!

 

rm -rf /opt/arcsight/conapp/tmp/*.zip

rm -rf /opt/arcsight/conapp/tmp/config/*

rm -rf /opt/arcsight/conapp/tmp/snapshots/*

rm -rf /opt/arcsight/userdata/logs/conapp/*.gz /opt/arcsight/userdata/logs/conapp/java*

rm -rf /opt/arcsight/connector_1/5* /opt/arcsight/connector_1/6* /opt/arcsight/connector_1/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_2/5* /opt/arcsight/connector_2/6* /opt/arcsight/connector_2/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_3/5* /opt/arcsight/connector_3/6* /opt/arcsight/connector_3/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_4/5* /opt/arcsight/connector_4/6* /opt/arcsight/connector_4/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_5/5* /opt/arcsight/connector_5/6* /opt/arcsight/connector_5/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_6/5* /opt/arcsight/connector_6/6* /opt/arcsight/connector_6/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_7/5* /opt/arcsight/connector_7/6* /opt/arcsight/connector_7/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_8/5* /opt/arcsight/connector_8/6* /opt/arcsight/connector_8/7* /opt/arcsight/connector_1/4*

rm -rf /opt/arcsight/connector_1/current/user/agent/*.zip /opt/arcsight/connector_1/current/user/agent/*.log /opt/arcsight/connector_1/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_2/current/user/agent/*.zip /opt/arcsight/connector_2/current/user/agent/*.log /opt/arcsight/connector_2/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_3/current/user/agent/*.zip /opt/arcsight/connector_3/current/user/agent/*.log /opt/arcsight/connector_3/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_4/current/user/agent/*.zip /opt/arcsight/connector_4/current/user/agent/*.log /opt/arcsight/connector_4/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_5/current/user/agent/*.zip /opt/arcsight/connector_5/current/user/agent/*.log /opt/arcsight/connector_5/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_6/current/user/agent/*.zip /opt/arcsight/connector_6/current/user/agent/*.log /opt/arcsight/connector_6/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_7/current/user/agent/*.zip /opt/arcsight/connector_7/current/user/agent/*.log /opt/arcsight/connector_7/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_8/current/user/agent/*.zip /opt/arcsight/connector_8/current/user/agent/*.log /opt/arcsight/connector_8/current/user/agent/*.bak

rm -rf /opt/arcsight/connector_1/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_2/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_3/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_4/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_5/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_6/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_7/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_8/current/user/agent/agentdata/*

rm -rf /opt/arcsight/connector_1/current/logs/Th*

rm -rf /opt/arcsight/connector_2/current/logs/Th*

rm -rf /opt/arcsight/connector_3/current/logs/Th*

rm -rf /opt/arcsight/connector_4/current/logs/Th*

rm -rf /opt/arcsight/connector_5/current/logs/Th*

rm -rf /opt/arcsight/connector_6/current/logs/Th*

rm -rf /opt/arcsight/connector_7/current/logs/Th*

rm -rf /opt/arcsight/connector_8/current/logs/Th*

rm -rf /opt/arcsight/connector_1/current/logs/H*

rm -rf /opt/arcsight/connector_2/current/logs/H*

rm -rf /opt/arcsight/connector_3/current/logs/H*

rm -rf /opt/arcsight/connector_4/current/logs/H*

rm -rf /opt/arcsight/connector_5/current/logs/H*

rm -rf /opt/arcsight/connector_6/current/logs/H*

rm -rf /opt/arcsight/connector_7/current/logs/H*

rm -rf /opt/arcsight/connector_8/current/logs/H*

rm -rf /opt/arcsight/userdata/conapp/repository/upgrade/agents/*

 

Cheers Volker

Outcomes