netfishers-onl / Netshot

Network Configuration and Compliance Management
http://www.netfishers.onl/netshot
240 stars 57 forks source link

Cisco NX-OS v0.19.0 - error #272

Closed pfunkylol closed 10 months ago

pfunkylol commented 10 months ago

Hello,

While trying to backup NXOS device, the following error is presented in the logs after the upgrade to v0.19.0

ERROR [NetshotRunnerScheduler_Worker-1] SnapshotCliScript: Error while running snapshot using driver CiscoNXOS. org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (debug) on onl.netfishers.netshot.device.script.CliScript$1 failed due to: Unknown identifier: debug at .debug(Unnamed:440) at .snapshot(Cisco_NX-OS.js:304) at ._connect(Unnamed:701) at org.graalvm.sdk/org.graalvm.polyglot.Value.execute(Value.java:881) at onl.netfishers.netshot.device.script.SnapshotCliScript.run(SnapshotCliScript.java:88) at onl.netfishers.netshot.device.script.CliScript.connectRun(CliScript.java:250) at onl.netfishers.netshot.device.script.CliScript.connectRun(CliScript.java:196) at onl.netfishers.netshot.work.tasks.TakeSnapshotTask.run(TakeSnapshotTask.java:218) at onl.netfishers.netshot.work.TaskJob.execute(TaskJob.java:94) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)

The following commit 6f5a7d6 should be available in the newer version release ?

SCadilhac commented 10 months ago

Yes the commit will be included in next version. For now, you may comment out cli.debug line from the NX-OS driver JS file.