Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Juan_
Contributor

Administrators bulk add via mgmt_cli

Jump to solution

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
  • 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]"
Our CSV looks like this:

name,password,email,authentication-method,permissions-profile
username,password,username@xyz.com,'check point password','Super User'
 
Have tried on R80.40 and 20.
 
 
Any suggestion?


Cheers
0 Kudos
2 Solutions

Accepted Solutions
PhoneBoy
Admin
Admin

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.

View solution in original post

Juan_
Contributor

Thanks! That helped my memory.

dos2unix fixed it.

View solution in original post

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

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.

View solution in original post

Juan_
Contributor

Thanks! That helped my memory.

dos2unix fixed it.

View solution in original post

0 Kudos
Tal_Paz-Fridman
Employee
Employee

Hi

 

I created your file with quotations marks instead of apostrophes in the following way and it worked:

name,password,email,authentication-method,permissions-profile
username,password,username@xyz.com,"check point password","Super User"
 
Also worked without the quotation marks:
name,password,email,authentication-method,permissions-profile
username,password,username@xyz.com,check point password,Super User

 

Juan_
Contributor

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!)

0 Kudos