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

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



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





- snmpcollector 3.2x.




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



The above is not going to work and must be replaced by this:
[ { "ip" : "", "version" : "snmpv1", "community" : "public" }, {"ip" : "", "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])





Please Update This Required Field