Retrieving the number of monitored entities

Use the monitoredEntities.py Python script to retrieve the number of monitored entities.

The result returned by the script is the total number of currently monitored network entities in a particular domain. An entity is counted only once even if it is monitored by different pollers or has multiple poll policies configured for it.

To run the script, complete the following steps:

  1. Ensure that the name of each poller contains the string poller. The script uses this string to identify poller processes.
  2. Ensure that poller services are running.
  3. Ensure that the relevant poll policies are active. You must use both chassis and interface polling in order to retrieve complete data.
  4. Locate the script. The default location is $NCHOME/precision/scripts/.
  5. Run the script by using a command similar to the following:
    ./monitoredEntities.py domain_name

    Where domain_name is the name of the domain in which to count entities.

    The output contains the number of monitored entities, entityID, entityName, mainNodeID of the entities, and the number of policies under which these entities are being monitored.