while I am still fighting to list the content of a specific Access Role (AR) within an other post of mine using this:
To get the doamin ID in an MDM environment:
psql_client cpm postgres -c"select objid,name from domainbase_data where dlesession=0 and not deleted;"
To log in an create a session:
mgmt_cli login user "<myRADIUSuser>" password "<myRADIUSpin+CURRENTtokenCODE>" > sid.txt.$$
To resuse the session and execute commands related to a specific domain (ID from above):
mgmt_cli -s sid.txt.$$ -d <domain_ID> show access-role name "<Access_Role_name>"
...I also need to list alle AD-Groups used in any AR in general (not the ARs them self).
Does someone have an idea and could give me a hint? There was a command in R77.30 to do exactly that: list alle AD-Groups used. Unfortunately I have to do it again but now in R80.30. Listing all ARs would not help as such.
I'm not a pro in scripting. A oneliner that could be used with mgmt_cli would be great.
I am just about able to utilize a filter as well" | $CPDIR/jq/jq '<filter_terms>' "
For some reason, when trying to list at least the ARs I get this:
mgmt_cli -s sid.txt.$$ -d <domain_ID> show access-roles
I do need this to replace Active Directory Groups with new ones as we are migrating into another Active Domain. The result of the above query would feed into a Firewall Change Request to replace each Group with the new one accordingly. This way we won't miss anything.
I'm lost 🙄
Thanks in advance for your thoughts