in

CCIE - Internetwork Expert's Online Community

Latest post 12-01-2008 9:51 AM by fred_b. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-28-2008 3:36 AM

    • Jeriel
    • Top 50 Contributor
    • Joined on 07-12-2008
    • Angola
    • Posts 35
    • Points 625

    Automate Conf w/ snmp

     

       Hi everybody

       I hope u  are all good. I'd like to automate some daily tasks on our cisco access router with snmp, specifically:

    - Create an interface

    - Change ip-addresses

    - Swap Admin Status

    - add a static route...

    - ,,, day-to-day tasks...

     

    ...any body have an idea where I can start to reasearch for the right snmp oids for snmp-set??!?

     

     

    • Post Points: 20
  • 12-01-2008 9:51 AM In reply to

    • fred_b
    • Top 75 Contributor
    • Joined on 07-14-2008
    • Posts 22
    • Points 380

    Re: Automate Conf w/ snmp

    Jeriel,

    Probably the easiest way to do this is to create a "configlet" or partial config file that contains the config statements you would like to change and copy that to the device using snmp. You could use this with a system that has some cron-like scheduling capability or even do it within the IOS. The CISCO-CONFIG-COPY-MIB and the older OLD-CISCO-SYSTEM-MIB should have everything you need to do this. Basically you would create the config file on the TFTP server (with correct permissions, etc.) and then issue some snmpset's to have the device copy the config back and execute. You could also copy the config back via snmp pre/post operation to compare results...(recommended). I think the newer MIB has support for specifying the protocol to use for the copy such as FTP or SCP, but not sure how well this is supported on version/platform.

    Cisco has a decent article about this here: http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml 

    CCIE #21901 (R&S), CCDP

    • Post Points: 5
Page 1 of 1 (2 items)