Hi to all;
Recently used this routerconfigsv0.5 plugins and it is very helpful, the only problem I've encountered is that it only support single tftp server IP. My cacti server have several subinterfaces monitoring different networks, having only one tftp server IP can only download config into one side of the network since you cannot statically assign static tftp server IP to each host. Resolving this limitation by adding the following:
in functions.php
132c132,135
<
---
> //test code for alt tftp server
> if (!empty($info['alttftp'])){
> $tftpserver = $info['alttftp'];
> }
in router-accounts.php
87,95d86
< "alttftp" => array(
< "method" => "textbox",
< "friendly_name" => "Alternate TFTP Server",
< "description" => "Alternate tftp server ip, if cacti have multiple interfaces, leave this blank if using the default settings.",
< "value" => "|arg1:alttftp|",
< "default" => '',
< "max_length" => "32",
< "size" => "30"
< ),
233c224
< $save['alttftp'] = sql_sanitize($_POST['alttftp']);
---
>
and in plugin_routerconfigs_accounts table by adding this field:
altftp varchar(128) default NULL
with this changes you can optionally set alternate tftp IP address under your Authentication tab if you're not using the default tftp server IP settings.
Hope this helps others with similar cacti server setup.
Thnx,
Mike
Routerconfigs tftp server IPs
Moderators: Developers, Moderators
Routerconfigs tftp server IPs
- Attachments
-
- router-accounts.tar
- (20 KiB) Downloaded 253 times
-
- functions.tar
- (30 KiB) Downloaded 140 times
Re: Routerconfigs tftp server IPs
Thanks, great!
Who is online
Users browsing this forum: No registered users and 3 guests