[SOLVED] Router configs doesnt download conf.
Moderators: Developers, Moderators
[SOLVED] Router configs doesnt download conf.
Hi.
Problem :
configmanager doesnt download router configuration
Receive error :
�������� User Access Verification Username: �� ������'��Saving Debug
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/plugins/routerconfigs/functions.php:426) in /usr/share/cacti/site/plugins/routerconfigs/router-devices.php on line 278
Server info:
Debian
Cacti Version 0.8.7d
routerconfigs Version 0.1
TFTP work . If I, go to router using same login & pass like @ cacti config & make save config 2 TFTP server bay hand , all work fine.
Any idea ?
p.s. sorce downloaded from http://docs.cacti.net/plugin:routerconfigs#screenshots
Problem :
configmanager doesnt download router configuration
Receive error :
�������� User Access Verification Username: �� ������'��Saving Debug
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/plugins/routerconfigs/functions.php:426) in /usr/share/cacti/site/plugins/routerconfigs/router-devices.php on line 278
Server info:
Debian
Cacti Version 0.8.7d
routerconfigs Version 0.1
TFTP work . If I, go to router using same login & pass like @ cacti config & make save config 2 TFTP server bay hand , all work fine.
Any idea ?
p.s. sorce downloaded from http://docs.cacti.net/plugin:routerconfigs#screenshots
Last edited by parvedejs on Tue Jul 21, 2009 4:44 am, edited 1 time in total.
Solution:
1) Some changes in functions.php
2) Device directory is =! Device description
p.s.
chmod 777 tftpfolder
Some level of security can be gained using atftp libwrap support. Adding proper entry to /etc/hosts.allow and /etc/hosts.deny will restrict access to trusted hosts.
& unable resset Enable Password fom GUI
1) Some changes in functions.php
Code: Select all
# diff functions.php functions.php.old
131c131
< //echo $result;
---
> echo $result;
134c134
< //echo $result;
---
> echo $result;
137c137
< //echo $result;
---
> echo $result;
142c142
< //echo $result;
---
> echo $result;
149c149
< //echo $result;
---
> echo $result;
318c318
< //echo "Saving Debug\n";
---
> echo "Saving Debug\n";
364c364
< var $use_usleep=1; // change to 1 for faster execution
---
> var $use_usleep=0; // change to 1 for faster execution
423c423
< //echo $r;
---
> echo $r;
426c426
< //echo $r;
---
> echo $r;
433,434c433,434
< //$this->GetResponse($r);
< //echo $r;
---
> $this->GetResponse($r);
> echo $r;
452c452
< //echo $r;
---
> echo $r;
474c474
< //echo $r;
---
> echo $r;
489c489
< //echo $r;
---
> echo $r;
506c506
< //echo $r;
---
echo $r;
p.s.
chmod 777 tftpfolder
Some level of security can be gained using atftp libwrap support. Adding proper entry to /etc/hosts.allow and /etc/hosts.deny will restrict access to trusted hosts.
& unable resset Enable Password fom GUI
If I don’t removecigamit wrote:Those changes you made in the patch are completely unnecessary, they are only displayed from the command line (for debugging purposes), it does not effect what is sent to the router. So no changes necessary.
Code: Select all
echo $r; echo $result;
If I don’t remove
Code: Select all
$this->GetResponse($r)
any idea on This
User Access Verification Username: ÿþ ÿúÿðÿþ'ÿýSaving Debug
Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278
PHP Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278
is there a solution Yet
THnak you
User Access Verification Username: ÿþ ÿúÿðÿþ'ÿýSaving Debug
Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278
PHP Warning: Cannot modify header information - headers already sent by (output started at G:\cacti\plugins\routerconfigs\functions.php:426) in G:\cacti\plugins\routerconfigs\router-devices.php on line 278
is there a solution Yet
THnak you
Routerconfig plugins
Hi all,
I'm new user cacti, I have just set up cacti 0.8.7e and Routerconfig latest and do the install as README file. But when I create the backup file there is not any file backup in the folder.
And the Debug pages said:
��������
-----------------------------------------------------------------------
Cisco Router and Security Device Manager (SDM) is installed on this device.
This feature requires the one-time use of the username "cisco"
with the password "cisco". The default username and password have a privilege level of 15.
Please change these publicly known initial credentials using SDM or the IOS CLI.
Here are the Cisco IOS commands.
username <myuser> privilege 15 secret 0 <mypassword>
no username cisco
Replace <myuser> and <mypassword> with the username and password you want to use.
For more information about SDM please follow the instructions in the QUICK START
GUIDE for your router or go to http://www.cisco.com/go/sdm
-----------------------------------------------------------------------
User Access Verification
Username: �� ������'��
Anyone know why?
I think the connection to the router is ok, but some function was not run!
Help me pls,
Best regards!
I'm new user cacti, I have just set up cacti 0.8.7e and Routerconfig latest and do the install as README file. But when I create the backup file there is not any file backup in the folder.
And the Debug pages said:
��������
-----------------------------------------------------------------------
Cisco Router and Security Device Manager (SDM) is installed on this device.
This feature requires the one-time use of the username "cisco"
with the password "cisco". The default username and password have a privilege level of 15.
Please change these publicly known initial credentials using SDM or the IOS CLI.
Here are the Cisco IOS commands.
username <myuser> privilege 15 secret 0 <mypassword>
no username cisco
Replace <myuser> and <mypassword> with the username and password you want to use.
For more information about SDM please follow the instructions in the QUICK START
GUIDE for your router or go to http://www.cisco.com/go/sdm
-----------------------------------------------------------------------
User Access Verification
Username: �� ������'��
Anyone know why?
I think the connection to the router is ok, but some function was not run!
Help me pls,
Best regards!
- kriskirkland
- Posts: 5
- Joined: Mon Apr 19, 2010 1:27 pm
- Location: Texas
- Contact:
Re: [SOLVED] Router configs doesnt download conf.
Im having this same problem with 0.3. I tried commenting out those lines and im still getting the same issue. When I run router-download.php from the cli i get;
It never actually sends the command to tftp the config. It then begins processing the next device in line with the same results.
Code: Select all
Processing <routername>
ÿûÿûÿýÿý
User Access Verification
Username: ÿþ ÿúÿðÿþ'ÿýkris
Password:
<router-name>#
Re: [SOLVED] Router configs doesnt download conf.
Hi Dear,
Pls help , how to used Routerconfig with SSH i am using ssh in router , i have disable the telnet .
pls suggest ...
Thank & regards
lalIT
Pls help , how to used Routerconfig with SSH i am using ssh in router , i have disable the telnet .
pls suggest ...
Thank & regards
lalIT
Re: [SOLVED] Router configs doesnt download conf.
Anyone have this issue with routerconfig/////
CMDPHP: DEVEL: SQL Exec: UPDATE plugin_routerconfigs_devices SET lasterror = ERROR: Bad download of config WHERE id = 1
I just installed the latest version from docs site and added a device...i see inthe log its accessing tftp ok, then get this error?
Thanks
CMDPHP: DEVEL: SQL Exec: UPDATE plugin_routerconfigs_devices SET lasterror = ERROR: Bad download of config WHERE id = 1
I just installed the latest version from docs site and added a device...i see inthe log its accessing tftp ok, then get this error?
Thanks
CCNA
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: [SOLVED] Router configs doesnt download conf.
Looks like a shell exec failed with an error that the loader was in correctly parsing.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 4 guests