Welcome, Guest. Please login or register.

Author Topic: Config write  (Read 2205 times)

sjobergh

  • Newbie
  • *
  • Posts: 26
    • View Profile
Config write
« on: May 26, 2013, 12:35:57 AM »
to be compliant with regulatory demands we are periodically forced to do  updates regarding to

- Local usernames & passwords (usernames and passwords used if tacacs server not reachable)
- VTY/Console passwords
- SNMP Communitys

I treid to use Nedi for an "mass-update" of SNMP communitys, around 90-100 switches,   since this an old installation they have old configs and sometimes have 2,3,4 different snmp-communitys.

I took all known communitys and did a "write-config:

no snmp-server community "com1"
no snmp-server community "com2"
no snmp-server community "com3"
no snmp-server community "com4"

I run into problem here,   if snmp community "com1" wasnt configured in the specific switch than the "write-config" stopped and didnt continue with "com2", "com3 and so on.

Is there anything i can change in your code so I dont have do unique changes for specific switches ?

/swepart

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: Config write
« Reply #1 on: May 28, 2013, 03:54:10 PM »
To be on the safe side the script terminates upon an error string (line starting with %). You could comment this in inc/Devsend.pl to let it run through...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo