This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unused definition

Hi.
I'm quite sure someone already asked it, but I just can't find it.
Has anyone found a way to show all the unused Definitions in "Network Definitions"?
As years goes by, we collect a lot of definitions (I have 340).
For sure quit a few are not in use any more and can be deleted.

Thanks… 
[:$]


This thread was automatically locked due to age.
Parents
  • This might help:

    # for REF in `cc get_objects network | grep \'ref\' | cut -f 4 -d \'` ; do echo $REF ; cc get_affected_nodes $REF ; cc get_affected_objects $REF | grep -v \'$REF\'; done


    Note: Quick and dirty, barely tested and didn't check for corner cases or put very much effort into thinking about partial string matches.
Reply
  • This might help:

    # for REF in `cc get_objects network | grep \'ref\' | cut -f 4 -d \'` ; do echo $REF ; cc get_affected_nodes $REF ; cc get_affected_objects $REF | grep -v \'$REF\'; done


    Note: Quick and dirty, barely tested and didn't check for corner cases or put very much effort into thinking about partial string matches.
Children
No Data