How to list the model components of the swarm ?

Categories:
Solution Number:
S35557
Last Modified:
2022-05-06
Issue
Listing the number of components for a particular metric can be helpful in determining cause of hprofs or service restarts.
Here's how its done.
Solution
  • On manager run
    bash
    cd common

     
  • Check the count
    docker ps -q -f 'name=default_rdbms.1.*' | xargs -I{} docker exec {} psql postgres postgres -c "select mc.mc_type_id, mct.name,count(*) from model_component mc, mc_type mct where mc.mc_type_id=mct.id group by mc.mc_type_id, mct.name order by count"
     
  • This is an example output.

Any components in the range of half a million and above is a high number and should be investigated. 
Environment
SteelCentral NetIM 2.x
Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case