- CheckMates
- :
- Products
- :
- Developers
- :
- API / CLI Discussion
- :
- Administrators bulk add via mgmt_cli
- 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?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Administrators bulk add via mgmt_cli
Hi Buddies,
We are trying to add multiple administrators in one go via mgmt_cli but something is going wrong.
Not sure if its a bug or there is a different reason for the failure.
- We Run:
- mgmt_cli add administrator name "username" password "password" email "username@xyz.com" authentication-method "check point password" permissions-profile "Read Write All" --domain 'System Data'
- This works fine
- mgmt_cli add administrator name "username" password "password" email "username@xyz.com" authentication-method "check point password" permissions-profile "Read Write All" --domain 'System Data'
- If we run:
- mgmt_cli add administrator --batch administrators.csv --domain 'System data'
- Fails with:
- Line 2: code: "generic_err_invalid_parameter_name" message: "Unrecognized parameter [name]"
Cheers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be failing on line 1 if the header row is wrong.
Which suggests you have an extra line feed in your CSV file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! That helped my memory.
dos2unix fixed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be failing on line 1 if the header row is wrong.
Which suggests you have an extra line feed in your CSV file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! That helped my memory.
dos2unix fixed it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I created your file with quotations marks instead of apostrophes in the following way and it worked:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks mate! as explained above the issue was with the format. dos2unix did the trick
I think we transferred the file out of excel directly. (ugh!)
