DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:cisco_config_archive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
tips:cisco_config_archive [2010-04-06 13:47] – created 110.20.59.188tips:cisco_config_archive [2010-04-06 13:49] 91.64.125.163
Line 2: Line 2:
 A hacked up scripted to use snmpset to get a Cisco device to tftp the config to a server, then imports it into doku. One day I might clean this up. Mainly just a prototype.  A hacked up scripted to use snmpset to get a Cisco device to tftp the config to a server, then imports it into doku. One day I might clean this up. Mainly just a prototype. 
  
-<file>+<file python>
 #!/usr/local/bin/python #!/usr/local/bin/python
 #Hack created by Michael Wheeler [mwheeler.org] No warranty #Hack created by Michael Wheeler [mwheeler.org] No warranty
Line 32: Line 32:
    os.system("/usr/local/www/dokuwiki/bin/dwpage.php -m \"Auto from TFTP\" commit /tmp/"+filename[switch]+" configs:backup:"+filename[switch])      os.system("/usr/local/www/dokuwiki/bin/dwpage.php -m \"Auto from TFTP\" commit /tmp/"+filename[switch]+" configs:backup:"+filename[switch])  
    #path to dwpage, and namespace needs to be edited here.    #path to dwpage, and namespace needs to be edited here.
-</code></file>+</file>
tips/cisco_config_archive.txt · Last modified: 2010-04-07 04:14 by 24.22.140.79

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki