Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
kike
Explorer
Jump to solution

api command for ask to mds about administrators on specific domain

hi experts,

 

i wanted to know if anybody can help me, i wwant to execute a api command in order to know by cli administrator users on specifyc domain.

 

thanks in advanced

 

0 Kudos
1 Solution

Accepted Solutions
PhoneBoy
Admin
Admin

Yeah, you connect to the domain with the API and use show-administrators, you'll get what you're after.
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-administrators~v1.7%20 
A one-shot command that you can execute from the MDS:

mgmt_cli -m cma-ip -r true show administrators limit 50 offset 0 details-level "standard" --domain 'System Data' --format json

 

View solution in original post

2 Replies
PhoneBoy
Admin
Admin

Yeah, you connect to the domain with the API and use show-administrators, you'll get what you're after.
https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-administrators~v1.7%20 
A one-shot command that you can execute from the MDS:

mgmt_cli -m cma-ip -r true show administrators limit 50 offset 0 details-level "standard" --domain 'System Data' --format json

 

kike
Explorer

Thanks!!, idid it. It was api version 1.1 (r80.10) and i made a list :

mgmt_cli login user "aa" password "aaaa" domain "domain"  > id.txt ; mgmt_cli show packages limit 150 offset 0 details-level "standard" -s id.txt | grep name | grep -v domain| awk '{print $2}' 

 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events