How do I create and schedule a script to flush the cache file? (NETIQKB46506)

  • 7746506
  • 02-Feb-2007
  • 29-Nov-2007


How do I use Vulnerability Manager to automate the command Clear Agent File Cache File that I can run manually through Unix Manager?

How do I automatically clean out the cache file on the Unix agent?


To create and schedule a script to flush the cache file:

  1. Create the flush cache script in the Unix environment with the following contents:

    cd ../../bin
    ./wcConfig clear-fcache

  2. Name the script, for example flush_cache, then place it on the Unix agent in the ./vsaunix/{OS}/vsau/bin directory.
  3. Change the permission to 500 by entering the following command:

    chmod 500 flush_cache

  4. Copy the script to the ./vsaunix/{OS}/vsau/bin directory on each agent where you want to run the script. 
  5. In Vulnerability Manager, expand Security Knowledge > Security Checks.
  6. Right-click Custom Tasks > New Custom Task.
  7. Select Show Reports.
  8. Click UNIX.
  9. Expand System and select VSAU General Report.
  10. Click Next.
  11. Name the report, for example Flush Agent Cache Files.
  12. Enter a description for the report.
  13. In the VSAUCOMMAND area, enter the name you gave the script, for example flush_cache.
  14. Click Finish.
  15. Expand IT Assets > Manage Groups.
  16. Right-click a host or group.
  17. Click Run Tasks  >  Unix.
  18. Select Custom Task.
  19. Expand System.
  20. Select the report previously created, for example Flush Agent Cache Files.
  21. Click Schedule.
  22. Set the times you want the task to run.

Additional Information

Formerly known as NETIQKB46506