Hello guys,
I have R77.30 MDS with around 5 CMAs and 2 Global Policies. One CMA is without any Global Policy.
I would like to know if there is some way how to find out if specific CMA has any Global Policy assigned, and in case yes, the name of this Global Policy. Eventually, the best would be to print all global objects for specific CMA.
I already did some research and I was able to find command:
mdsquerydb GlobalNetworkObjects
which will print me ONLY network objects (no services for example).
Another option would be to use cpmiquerybin command and print the names of global objects, based on the provided table name:
mdsenv
cpmiquerybin attr "" <table_name> "" -a __name__
But still, it doesn't tell me if global objects are assigned to specific CMA or not.
On CMA where I don't have assigned Global Policy, exactly the same name of objects are created like for the global ones, so compare just the name isn't the option in this case.
So the logic would be:
1. Search all CMAs configured (or explicitly defined CMA name)
2. Check if CMA has assigned Global Policy
3. (optional)If yes, check the name of Global Policy
4. Print all Global Objects for this CMA
Or is there any other way how to do it via CLI? There is no way to check if an object within specific CMA has been created locally, or is a global object?
Thank you for any hint.
Kind regards,
Jozko Mrkvicka