Forum Discussion
Anonymous
5 years agoLM doesn't currently have any way of using the gathered config to push back to the device. So, you'd be manually copying and pasting into the device. The expectation is that you would know not to include that.
Alternatively, you can modify your script to exclude the "show running-config" from the output. (recommended for your benefit)
/* Instead of this println(cli.before()); Do this: */ cli.before().eachLine{ if(!(it=~/show running-config/)){ println(it) } } //Or something close to that. YMMV
Related Content
- 2 years ago
- 4 months ago
- 2 years ago