- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Trying to add network objects from bulk-file /CSV
- 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
Trying to add network objects from bulk-file /CSV
Hi,
Im trying to create Network-objects from CLi in management with this command:
>mgmt_cli add network --batch @storage-host/anders/GenesysCloudNW.csv
get this error message:
" MGMT9000 code: "generic_err_missing_required_parameters"
message: "Missing parameter: [name]"
syntax in csv-file looks like this:
name,ip-adress,subnet-mask
GenesysCloud1,108.128.0.0,255.248.0.0
GenesysCloud3,34.240.0.0,255.248.0.0
GenesysCloud4,34.248.0.0,255.248.0.0
GenesysCloud2,3.248.0.0,255.248.0.0
GenesysCloud5,52.208.0.0,255.248.0.0
GenesysCloud6,52.48.0.0,255.252.0.0
GenesysCloud7,63.32.0.0,255.252.0.0
......
What is missing? The name(s) is right there!?!?!?
Regards,
Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're likely confusing hosts and networks in your syntax. Give a quick look at sk113078.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I´m sorry I do not see it, this is the syntax from the SK:
"#mgmt_cli add network --batch networks.csv"
my syntax: "mgmt_cli add network --batch @storage-host/anders/GenesysCloudNW.csv"
Do I have to copy the file to the MGM-blade for this to work?
/Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try putting quotes around the items in Line 1.
You may have to do it for other lines in the CSV as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure it can get to the file, try to give it the explicit path to the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Message me offline, I can help you with this. I actually had case with TAC on this back in December. I will see if I can find the email on how we did it and email you tomorrow.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Faulty syntax in file I guess. This is how it should look like "name,subnet,subnet-mask" but creating the file in vi instead. Still working on this batch halted with some duplicates and wrong subnet-mask. Still working on it
---------------------------------------------
Time: [08:26:38] 9/3/2021
---------------------------------------------
"Publish operation" in progress (10%)
---------------------------------------------
Time: [08:26:49] 9/3/2021
---------------------------------------------
"Publish operation" in progress (10%)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It finally worked. Thank you all for the input.
---------------------------------------------
Time: [08:41:05] 9/3/2021
---------------------------------------------
"Publish operation" succeeded (100%)
