- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Mgmt_cli show group name "<group_name>" command is...
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×
Sign in with your Check Point UserCenter/PartnerMap account to access more great content and get a chance to win some Apple AirPods! If you don't have an account, create one now for free!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mgmt_cli show group name "<group_name>" command is not running in mds
When I tried to run "mgmt_cli show group name "<group_name>" it ask for username and password after giving my username
and password it show "Couldn't connect to server" ,if you need to use a proxy server add the '--proxy' parameters .
I just want to see the members (approx. 350 members) in the group and want to export in excel or copy it in notepad .
Please suggest on priority .
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your mgmt_cli command is not specifying a domain to connect to (needed for use on an MDS).
Also, if you don't want to enter credentials, you can instead use -r true in the CLI command.
The API also naturally limits the number of items returned in a call, mostly for performance reasons.
So you may have to make iterative calls over the API to get all results.
Which means it might be easier to use something like: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/CLI-API-Example-for-exporting-gro...
Also, if you don't want to enter credentials, you can instead use -r true in the CLI command.
The API also naturally limits the number of items returned in a call, mostly for performance reasons.
So you may have to make iterative calls over the API to get all results.
Which means it might be easier to use something like: https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/CLI-API-Example-for-exporting-gro...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As phoneboy says you need to specify the domain to do so you need to add '-d <domainname>' to the command. Do keep in mind this is the name of the Domain, not of the domain management server!
Regards, Maarten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Phoneboy/Marten,
MDS version is R80.20 and if I have a domain name "A" and want to export all 350 members of address group " AB" . Please suggest some short of commands or scripts to do so …. Thanks for your quick earlier reply ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Phoneboy/Marten,
Now I have used the command MDS # mgmt_cli show group name -d <domainname > "group name" ...Asked for username and password . Still showing couldnot connect to server ,if you need to use proxy server add the '--proxy' parameter ...Will I need to use admin userid and password ?
Now I have used the command MDS # mgmt_cli show group name -d <domainname > "group name" ...Asked for username and password . Still showing couldnot connect to server ,if you need to use proxy server add the '--proxy' parameter ...Will I need to use admin userid and password ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using your samples above this would be the command # mgmt_cli -r true -d A show group name AB
Regards, Maarten
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Maarten,
I have tried that but getting below msg :
[Expert@mds:0]# mgmt_cli -r true -d A show group name "AB "
Error: Failed to login to the management server
I have tried that but getting below msg :
[Expert@mds:0]# mgmt_cli -r true -d A show group name "AB "
Error: Failed to login to the management server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Again: Do keep in mind this is the name of the Domain, not of the domain management server! The latter is the name that you see in mdsstat, the first is what you see in Smartconsole in the MDS overview in the left column.
Regards, Maarten
