I think you are probably looking for Cisco::CopyConfig.

HOWEVER, if you don't want your configurations on the wire in the clear, where a sniffer could snag them, they will need to be encrypted. Although Cisco::CopyConfig can use SNMPv3, which is encrypted if you specify a privacy option, it uses TFTP to transfer the configuration to the backup server. TFTP is never encrypted.

Many people instead take backups of their Ciscos through SSH, using the Rancid package to keep CVS archives. The archives let you see the changes made to your configs, and you can use something like cvsweb to provide a (heavily secured) web site to browse the archives.

The distributed version of rancid does a "show running-config" which doesn't work properly for accounts with limited privileges. This Cisco technical note describes the problem. However, it is trivial to patch Rancid's source code to do an "enable 5" and then a "show startup-config" instead. Then rancid's login only needs enough privilege to do the show startup-config command, which can be set up on the router with "privilege exec level 5 show startup-config".


In reply to Re: Backups Cisco Router with Net::SNMP in PERL by quester
in thread Backups Cisco Router with Net::SNMP in PERL by TELCO

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.