Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Configmanager plugin,
(you need the pugin architecture)
current version configmanager: 0.826 current version sharednetworkclass: 0.42
changes in configmanager 0.826 (see Manual.txt):correction bug when no days or months + unix scripts in unix format changes in configmanager 0.825 (see Manual.txt):
adapt to PA 2.x Plugin Architecture.
any SYSLOG DB for trap events
correction bug for scheduling traps event
correct bug scheduling jobs (only in v0.822, v0.823)
in main menu first the action "reset in 5 minutes", second "delete".
Sort-function in the views
ignore the disabled devices.
allow the possiblity to authorize any remote hosts to access to this plugin.
add some information in the views + avaibility to sort in the list.
compare module amelioration (+ new parameter in settings).
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 "script".
- "TFTP" is based of "pancho" http://www.pancho.org.
- "TFTP" with option "pure PHP". no need of pancho installation (you need to copy the "sharednetwork class"-module).
- "script" can use any scripts or SCP, FTP, SFTP or what you want. Some scripts for windows and linux are provided
[/list]
The any syslog/Traps DB could be used to active the scripts or TFTP-method 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.
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 )
1/ the temp folder for configmanager will be a setting parameter default(.../configmanager/temp)
2/ the scripts folder for configmanager will be a setting parameter default(.../configmanager/scripts)
easier for upgrade, security, ...
3/ simplify the way to create scripts (will need only to copy the scripts and a help-file in order to be able to use it in the drop-down list of configmanager and get a example or help)
4/ rewrite some parts to simplify the code and reuse more libraries of cacti
5/ use cacti log
6/ add other scripts
I will put in this post always the latest release.[/b]
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
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.
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.
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.
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!
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.