Devices not being imported after using the "seedfile.json" file.

Document ID : KB000046888
Last Modified Date : 10/08/2018
Show Technical Document Details
Introduction:

Issue: 

 

When following the instructions on how to import devices by using the "seedfile.json" from the above link, devices won't be imported:
 
 

 

Environment: 

 

 

- snmpcollector 3.2x.

 

Cause:

 

The reason being is a mistake when the comma is placed after defining the last element from a profile.
 
For example:
 
[ { "ip" : "10.241.248.125", "version" : "snmpv1", "community" : "public", }, {"ip" : "10.241.248.137", "version" : "snmpv2c", "community" : "public", } ]
 
 

 

Resolution

 
The above is not going to work and must be replaced by this:
 
[ { "ip" : "10.241.248.125", "version" : "snmpv1", "community" : "public" }, {"ip" : "10.241.248.137", "version" : "snmpv2c", "community" : "public" } ]
 
Note how I removed the comma right between "public" and "}" in both profiles.
 
If you leave the comma, apart from not getting your devices imported, the following can be seen in the snmpcollector.log (level 3):
 
Sep 27 15:35:15:892 [Timer-0, snmpcollector] Unable to process seedfile.json com.fasterxml.jackson.databind.JsonMappingException: Unexpected character ('}' (code 125)): was expecting double-quote to start field name at [Source: seedfile.json; line: 1, column: 77] (through reference chain: Object[][0])
 

 

 

 

 

Instructions:
Please Update This Required Field