How to Clean Niscache Folder on All Active Robots

Document ID:  TEC000005284
Last Modified Date:  06/08/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Unified Infrastructure Management

Releases

  • CA Unified Infrastructure Management:Release:8.0
  • CA Unified Infrastructure Management:Release:8.1
  • CA Unified Infrastructure Management:Release:8.2
  • CA Unified Infrastructure Management:Release:8.31
  • CA Unified Infrastructure Management:Release:8.4
  • CA Unified Infrastructure Management:Release:8.51
  • CA Unified Infrastructure Management:Release:8.5
  • CA Unified Infrastructure Management:Release:8.47
  • CA Unified Infrastructure Management:Release:8.42
  • CA Unified Infrastructure Management:Release:8.41

Components

  • UNIFIED INFRASTRUCTURE MGMT:CAUIM
Introduction:

This article describes a method to quickly and easily clean the niscache folder across all active robots in your domain.

Background:

Occasionally it becomes necessary to purge the niscache folder across all robots in a domain.  This is due to the behavior of probes creating niscache entries but not deleting them once a profile or probe has been removed from a robot.

Environment:
Windows or Linux (for Linux, "bash" command shell must be present.)
Instructions:

Instructions For Windows:

  1. Download the attached CleanNiscache.zip file
  2. Unpack the zip file into the bin folder of your UIM installation folder
    1. In a default installation, this will be C:\Program Files (x86)\Nimsoft\bin
  3. Open the CleanNiscache.bat file in Notepad and change the PASSWORD line to match your UIM administrator password.
  4. Save the file and close it.
  5. Open the RobotList.txt file in Notepad and delete the current contents.  (The initial entry is included to show the syntax required)
  6. RDP into your SQL server
  7. Open SQL Server Management Studio
  8. Run the following query:  (This query will only list robots that have checked in within the last 24 hours)
    1. SELECT address FROM CM_NIMBUS_ROBOT WHERE alive_time > DATEADD(hh, -24, GETDATE()) AND robot_active = 1 ORDER BY is_hub;
  9. Click the header row to select all the rows that are returned
  10. Right click in one of the rows
  11. Click Copy
  12. Paste the results into the RobotList.txt file and save it
  13. Run CleanNiscache.bat to begin the clean up on all robots in RobotList.txt.

 

Instructions For Linux:

 

  1. Download the attached linux_clean_niscache.zip file
  2. Unpack the zip file into the bin folder of your UIM installation folder
    1. In a default installation, this will be /opt/nimsoft/bin
  3. Open the cleanrobots.sh file in Notepad and change the PASSWORD line to match your UIM administrator password.
  4. Save the file and close it.
  5. Open the RobotList.txt file in Notepad and delete the current contents.  (The initial entry is included to show the syntax required)
  6. On your backend database run the following query:  (This query will only list robots that have checked in within the last 24 hours)
    1. SELECT address FROM CM_NIMBUS_ROBOT WHERE alive_time >'2016-06-01' AND robot_active = 1 ORDER BY is_hub;*
  7. Copy the results into the RobotList.txt and save it.
  8. Run the script as follows:    ./cleanrobots.sh RobotList.txt
Additional Information:

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >