Netshot icon indicating copy to clipboard operation
Netshot copied to clipboard

undefined in writing config in netshot

Open Rikharms1972 opened this issue 3 years ago • 5 comments

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.

Rikharms1972 avatar May 04 '21 12:05 Rikharms1972

I'm a collegue of @Rikharms1972 and for clarification, we are running against this issue in version 0.16.2 and 0.16.1

svdleer avatar May 05 '21 07:05 svdleer

Is it specific to a driver?

SCadilhac avatar May 09 '21 21:05 SCadilhac

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.

Rikharms1972 avatar May 11 '21 17:05 Rikharms1972

  • 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.

SCadilhac avatar May 13 '21 16:05 SCadilhac

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:

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.

Rikharms1972 avatar May 17 '21 07:05 Rikharms1972