|
|
| Author |
Message |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Thu Mar 09, 2006 6:58 pm Post subject: plugin for download/upload routers switches configuration |
|
|
Configmanager plugin,
(you need the pugin architecture)
current version configmanager: 0.76
current version sharednetworkclass: 0.40
corrections from configmanager 0.75 to 0.76:
- bug snmp v2
- add new options for snmp v3 (some like priv auth are not supported in pancho, only with snmp pure PHP).
new changes in configmanager 0.7x:
- also compatible with cacti 0.8.7 and above
- TFTP method "pure PHP" without pancho is possible (need to copy "sharednetworkclass")
- traps/syslog detection with activation of the config for the host which received the trap.
Explanation:
With this plugin you can easily schedule the download/upload of the configuration of your routers, switches AND NOW any devices (or change in one click some parameters of hundert of switches ... dangerous but possible now). It should function for all type of router or switches.
There is two method "TFTP" and "multi".
[/list]- "TFTP" is based of "pancho" www.pancho.org.
- "TFTP" with option "pure PHP" no need of pancho installation (you need to copy the "sharednetwork class"-module).
- "multi" can use any scripts or SCP, FTP, SFTP or what you want.
[/list]
The syslog(haloe plugin) and traps could active the download of the pancho config or script for the host which has received a specific event and which the "trap event flag" is active.
read first the manual.txt in the zipped file
(for windows) copy the diff.exe and gzip.exe into /plugins/configmanager
if you don't have one.
I cannot put it in the package because the max upload in this forum is 256
UPGRADE: for upgrading
- take care about your own secure.cfg and securecompare.cfg files and your scripts under 'plugins/configmanager/scripts if you have some
- (NO MORE NEEDED database_upgrade.php )
You see some views (and the full release including gzip.exe and diff.exe) in :
http://cactiusers.org/forums/viewtopic.php?p=1020#1020 or here below
-syslog/traps event activation
I will put in this post always the latest release.
| Description: |
shared network class 0.40. correction for OID output format in linux |
|
 Download |
| Filename: |
sharednetworkclass0.40.zip |
| Filesize: |
141.46 KB |
| Downloaded: |
599 Time(s) |
| Description: |
|
 Download |
| Filename: |
configmanagerPictures.zip |
| Filesize: |
438.74 KB |
| Downloaded: |
505 Time(s) |
| Description: |
| version 0.76 (without diff.exe and gzip.exe) |
|
 Download |
| Filename: |
configmanager0.76.zip |
| Filesize: |
205.28 KB |
| Downloaded: |
1462 Time(s) |
| Description: |
| gzip.exe (for windows users) |
|
 Download |
| Filename: |
gzip.zip |
| Filesize: |
44.38 KB |
| Downloaded: |
349 Time(s) |
| Description: |
| + diff.exe (for windows users) |
|
 Download |
| Filename: |
diff.zip |
| Filesize: |
112.25 KB |
| Downloaded: |
589 Time(s) |
Last edited by pepj on Wed Mar 12, 2008 6:21 pm; edited 44 times in total |
|
| Back to top |
|
 |
mgb Cacti User
Joined: 21 Jun 2004 Posts: 102 Location: North of the Netherlands
|
Posted: Fri Mar 10, 2006 5:29 am Post subject: |
|
|
Great, just what were looking for.
Does this tool also include versioning like rancid?
A feature from rancid that i realy like and it's abbility to compare a new version with the previous version.
Michael
|
|
| Back to top |
|
 |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Fri Mar 10, 2006 8:23 am Post subject: here the views |
|
|
Here some views ...
PS: sorry I dont know if my attached pancho file function under unix (better is a download from www.pancho.org)
Last edited by pepj on Fri Feb 01, 2008 5:54 pm; edited 5 times in total |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Sat Mar 11, 2006 3:46 pm Post subject: |
|
|
I would like to get this working.
I can't even get pancho woking right from the command line.
pancho --download
ERROR (dhsslabsw1): Source Configuration doesnt exist.
I followed your instructions (I think)
Everything shows up in Cacti just fine.
Pancho itself seems broken.
I even edited my:
/usr/local/etc/pancho.conf
as per the instructions on the pancho site.
I have all the right Perl modules working.
Can you give an example of a command line that works for you?
Any idea what this means:
Source Configuration doesnt exist
|
|
| Back to top |
|
 |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Sat Mar 11, 2006 8:18 pm Post subject: |
|
|
Hi
Manually you can try this:
1/ change the "pancho-test-config.cfg" I 've attached for you needs:
- TftpServer=TO CHANGE
- LogFile=TO CHANGE \Pancho\pancho.log
- SnmpCommunity=TO CHANGE
- [nameOfSwitchTO_CHANGE]
- IpAddress=TO CHANGE
2/ on the command line try this:
/perl/bin/perl.exe -I/pancho/lib pancho.pl -download -config pancho-test-config.cfg
or
/perl/bin/perl.exe -download -config pancho-test-config.cfg
|
|
| Back to top |
|
 |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Sat Mar 11, 2006 8:20 pm Post subject: |
|
|
I have done some correction in the plugin:
I have corrected some bugs like :
correction bug with template = any.
correction bug with button switch up/down.
correction bug filter
I have something strange I can add only with the last drop_down button... PS: I am new in PHP .... 4 weeks
Last edited by pepj on Fri Mar 24, 2006 5:02 pm; edited 1 time in total |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Sat Mar 11, 2006 8:55 pm Post subject: |
|
|
I tried this many ways now, but keep gettng some form of:
Can't call method "Sections" on an undefined value at /usr/local/bin/pancho line 139.
or
Can't call method "Sections" on an undefined value at /opt/pancho/modules/blib/lib/pancho.pl line 135.
I will read up on pancho and get the command line working.
|
|
| Back to top |
|
 |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Sun Mar 12, 2006 4:59 pm Post subject: |
|
|
| N3NCY wrote: | I tried this many ways now, but keep gettng some form of:
Can't call method "Sections" on an undefined value at /usr/local/bin/pancho line 139.
or
Can't call method "Sections" on an undefined value at /opt/pancho/modules/blib/lib/pancho.pl line 135.
I will read up on pancho and get the command line working. |
Hi
Do you have install the PERL module config-IniFiles ? I have version 2.38 but in the pancho you could find 2.30
This PERL module is responsable for the read of the section list.
|
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Sun Mar 12, 2006 7:21 pm Post subject: |
|
|
I have installed Config-IniFiles-2.39
I still get:
/usr/local/bin/pancho --download --config /tmp/test.cfg
Can't call method "Sections" on an undefined value at /usr/local/bin/pancho line 139.
|
|
| Back to top |
|
 |
pepj Cacti User
Joined: 29 Sep 2005 Posts: 288 Location: switzerland
|
Posted: Mon Mar 13, 2006 5:18 am Post subject: |
|
|
Hi
I think I have understand your problem:
You need the parameters [global] before the global commands at the top !(not commented with #)
After this parameter you should have the global variables like TftpServer .... (to notice that yhou cannot use 127.0.0.0.1 for tftp because this this the parameter which is use in the router/switche.
|
|
| Back to top |
|
 |
knobdy Cacti User
Joined: 28 Sep 2005 Posts: 495
|
Posted: Mon Mar 13, 2006 10:07 am Post subject: |
|
|
This plugin would almost replace my system, except that it uses tftp servers ( a no-no in the security certification we are now persuing). Are there ways around it?
The system I have now is a series of scripts that run and fetch configs via telnet (which will soon need to be converted to SSH for same security certification, if possible). It then places those configs into a subversion project for versioning and such. I then use viewcvs for viewing and comparing/diffing them. This is done each time the system recieves a SNMP trap that the config has changed, or on a dialy basis via a cron script for those systems too far out on the network to send SNMP traps.
Just some more ideas for a plugin like this I suppose. I would enjoy a way of making mass changes to switches though. Once we have port configurations standardized throughout the network, that ability could be handy!
|
|
| Back to top |
|
 |
mgb Cacti User
Joined: 21 Jun 2004 Posts: 102 Location: North of the Netherlands
|
Posted: Mon Mar 13, 2006 10:27 am Post subject: |
|
|
@knobdy
Are you using rancid? We are currently using rancid for getting the configs but would love to see a plugin for configuration and browsing through the subversion tree.
|
|
| Back to top |
|
 |
knobdy Cacti User
Joined: 28 Sep 2005 Posts: 495
|
|
| Back to top |
|
 |
Exo7 Cacti User
Joined: 13 Jul 2005 Posts: 124
|
Posted: Mon Mar 13, 2006 12:20 pm Post subject: |
|
|
| Quote: | | would love to see a plugin for configuration and browsing through the subversion tree. |
You can always have the "link" plugin setup to link to the viewcvs page.
|
|
| Back to top |
|
 |
knobdy Cacti User
Joined: 28 Sep 2005 Posts: 495
|
Posted: Mon Mar 13, 2006 12:53 pm Post subject: |
|
|
| Where's the "link plugin"? I'm not getting anything back with the forum search. Well, actually, I'm getting too much back. Same difference.
|
|
| Back to top |
|
 |
|