Batch backup switch router configuration

  As a technology is not powerful network operation and maintenance engineers, need regular backup network equipment configuration, if one of a manually: Open a CRT-ssh remote network devices -disply cur- saved log text, I have calculated that, I like this one a manually save configuration time about 25 units of equipment have half an hour, this complex repetitive operations or to be able to do more with less complete scripting language. I recently also in continuous learning python language, but I have not used the python scripting language to do this experiment automatic backup device configuration, enough about me to be thorough on the python scripting language, I think I can confidently write new the experience of the blog.

  Web-based device management are using SSH login as much, so I wrote VBS script is logged on using SSH, Telnet, many of which are online right now, I'll share my success stories come out, study together progress bar !

  Software needed: SecureCRT

  Script implementation: automatic backup .vbs, list.txt

  Automatic backup .vbs: Share links https://pan.baidu.com/s/1aewzh561bndY-toPiIU-Mg extraction code is: under nggv (vbs and txt two text in the same directory, you need to modify the automatic backup of the contents of .vbs Please rename the .txt extension, and then change the text list.txt path to the script)

  list.txt: format such as left, one device per line, the contents of line is: name of the device device device IP device password login account

 

  After completion of the above two texts, open SecureCRT, then click on the directory "script", then click "Run", and then import the automatic configuration .vbs script, you can batch backup configuration switch routers and other network equipment in the.

Guess you like

Origin www.cnblogs.com/yunsi/p/11372890.html