Netshot
Netshot copied to clipboard
undefined in writing config in netshot
I have an issue collecting the config of a device.
the config is partly written to the dumps folder and starts with this word:
"undefined"
It then continues with the config.
With a debug snapshot I see that the whole config is retrieved, so it looks like the config is not written to the file.
The strange thing is that sometimes it works...
Any idea what this can be?
Thanks a lot.
I'm a collegue of @Rikharms1972 and for clarification, we are running against this issue in version 0.16.2 and 0.16.1
Is it specific to a driver?
It happens on my Ciena driver. Other drivers work fine. I also tested the Ciena-SAOS driver from netfishers but this one does not write any config at all.
- The "official" driver should work, if it doesn't can you share details of what is failing so we fix it? Cf. https://github.com/netfishers-onl/Netshot/wiki/Snapshot-troubleshooting
- Is the snapshot successful? Can you see the config in the GUI, is it only the dump to file failing?
- For config item to be written to the dump file, it must have the
dump
attribute in its definition in the driver file.
Got a step further. the 'official'driver works good for devices running SAOS6. (5142/5160/39xx) SAOS8 (5170 and 8700) are not detected by the driver. Apart from some minor differences with my own driver, this driver is perfect for SAOS6 devices.
SASOS8 devices need work as they are not detected and if manually added sereval fields are not filled in.
my 'own" driver:
-
Snapshot is succesfull.
-
Attached is the file as shown in the GUI and in de dumps folder. WSM-LC0001-DS511_currentConfig_2021-05-17_03-20.txt
-
Config is fully retrieved with debug debug_2032626.log
-
dump attribute is present in driver.
-
attached also 'my' driver. Ciena.js.txt
So, I`m trying to understand why the config is partly dumped in the dumps folder. Not, it has worked fine on previous versions of netshot.