How can I get the number of robots displayed next to a hub in Admin Console to reflect the correct number of robots?

Document ID : KB000034733
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction

Admin Console displays robots from two sources. ?The robot quantity next to each hub corresponds with a lookup from the CM_NIMBUS_ROBOT table where 'origin' = <hubname> ?The actual robots that are displayed in the tree in Admin Console comes from a 'getrobots' callback to the hub when the hub is selected in Admin Console. ?

If there's a discrepancy in the discovery tables compared to the actual robots reporting to the hub, then the number will be incorrect.

Too many robots

In this example, a robot (taylor) had been removed from the system, but the discovery_server has not yet purged it from the discovery tables. ?A snip from CM_NIMBUS_ROBOT:

Taylor has been removed





Procedure

Identify the incorrect system and remove it from CM_COMPUTER_SYSTEM (this will remove the system from all other discovery tables, including CM_NIMBUS_ROBOT. ?In this example, this SQL statement fixes the issue:

DELETE from CM_COMPUTER_SYSTEM where name = 'taylor'

CM_NIMBUS_ROBOT now looks like:

Taylor is now removed.

After Admin Console?has been refreshed, the robot quantity will be correct:

Fixed Admin Console