Answer the question
In order to leave comments, you need to log in
How to write a script to edit a config file?
There are many (1000) managed dlink switches, it is possible to manually shovel the config of each, but there is no desire, you need to write a script that changes vlans, ip, etc. in the file - and upload the config. Tell me, is there a manual or a useful article on Habré on this issue?
Powershell? Bash? PHP?
Answer the question
In order to leave comments, you need to log in
Once upon a time, expect was used in corbin for the initial setup. The bundle is simple telnet + expect, you can attach it anywhere :)
Bash + sed to edit configs, expect or any scripting language to upload them. Itself just shoveled 700 configs for different switches.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question