Closed rtripon closed 6 years ago
I will also add functionality for setting a timeout against the device, if that is zero it'll refer back to the device type, and if that is zero, it'll use the system default (which again if zero will use my default of 1 second).
With 1.3.3 manually backups are working fine, but for some reason, automation doesnt work. I can see in log that its trying, but that's it.
2018/03/05 01:00:09 - RCONFIG DEBUG: Executing '/bin/php' with arguments ' -q /var/www/html/cacti/plugins/routerconfigs/router-download.php --retry'
And I see this error in logs also:
2018/03/05 08:39:37 - DBCALL ERROR: SQL Assoc Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 2018/03/05 08:39:37 - DBCALL ERROR: SQL Assoc Failed!, Error:1064, SQL:'SELECT * FROM plugin_routerconfigs_devices ORDER BY hostname ASC LIMIT 0, '
I have N/A in the fields: NEXT BACKUP, NEXT ATTEMPT.
Yes the rows issue is corrected in 1.3.4. N/A is possible in NEXT BACKUP and NEXT ATTEMPT if no attempt has ever been made. That is not an issue as the code looks for any items less than the time when the schedule kicks in so they will be picked up.
Automation still doesnt work:(, any hints in what I could do?.
You mean automated backups? I'm loading a CentOS 6/7 environment and testing routerconfigs against that. If you mean Automation (part of the core) then you need to raise an issue on the cacti repo for that.
I meant automated backups. I'm on centos 7 now with php7, manually works flawless(except one box with timeout).
If you are using git, I would temporary try switching temporarily to my repo. I'm still in the testing phase of the 1.3.4 release, so I haven't created a PR yet.
Got it...One issue I had(prompt isnt appearing for 2 seconds) is solved.
2018/03/05 22:25:27 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: No Prompt received (0: 1 : 3) 2018/03/05 22:25:29 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Buffer: 2018/03/05 22:25:29 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Buffer: 2018/03/05 22:25:30 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Buffer: Username: ▒▒ ▒▒▒▒▒▒'▒▒ 2018/03/05 22:25:30 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Found Prompt (Username) 2018/03/05 22:25:30 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Sending username: rtripon 2018/03/05 22:25:32 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/03/05 22:25:34 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached
Waiting to see if the automated backups are working.
Your running 1.3.4 ? Cool. You may like the updated email format too if you are using that.
Yep, saw that, just to get this automated process going and I'll throw a case of beer for all your work :).
No joy:(. Automated backups arent working. I see it trying every hour, but that's about it. 2018/03/06 02:00:20 - RCONFIG DEBUG: Executing '/bin/php' with arguments ' -q /var/www/html/cacti/plugins/routerconfigs/router-download.php --retry'
I received a mail at 00:00 (configured that):
40 devices backed up successfully. 0 devices failed to backup.
For me it works.
:(.....
@rtripon Can you run the following SQL for me:
select * from settings where name like 'routerconfigs_%';
Everyone else who was having an issue with automated backups seems to have been resolved. So, something must be different with you.
Database changed MariaDB [cacti]> select * from settings where name like 'routerconfigs_%'; +----------------------------+-----------------------------+ | name | value | +----------------------------+-----------------------------+ | routerconfigs_backup_path | /home/cacti | | routerconfigs_debug_buffer | on | | routerconfigs_email | test@gmail.com | | routerconfigs_from | cacti@cacti2.localhost | | routerconfigs_hour | 23 | | routerconfigs_name | Cacti | | routerconfigs_retention | 30 | | routerconfigs_retry | 4 | | routerconfigs_sleep | 125000 | | routerconfigs_tftpserver | 192.168.1.2 | | routerconfigs_timeout | 3 | +----------------------------+-----------------------------+ 11 rows in set (0.00 sec)
So, if you filter you logs by typing in RCONFIG, you will be looking for 23:00 by using the following filter against yesterdays logs:
.* 23:0.*RCONFIG
2018/03/06 12:00:22 - RCONFIG DEBUG: Executing '/bin/php' with arguments ' -q /var/www/html/cacti/plugins/routerconfigs/router-download.php' 2018/03/06 12:00:22 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti/plugins/routerconfigs/router-download.php] 2018/03/06 12:00:22 - SYSTEM THOLD STATS: Time:0.0076 Tholds:0 TotalDevices:19 DownDevices:0 NewDownDevices:0 2018/03/06 12:00:22 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti/plugins/webseer/poller_webseer.php] 2018/03/06 12:00:22 - POLLER: Poller[1] DEBUG: About to Spawn a Remote Process [CMD: /bin/php, ARGS: -q /var/www/html/cacti/plugins/monitor/poller_monitor.php] 2018/03/06 12:00:23 - MAINT Cacti Log Rotation - TIMECHECK Ran: 2018-03-06 00:00:24, Now: 2018-03-06 12:00:23, Next: 2018-03-12 23:59:59 2018/03/06 12:00:23 - RCONFIG NOTICE: Starting automatic backup 2018/03/06 12:00:23 - RCONFIG STATS: Backup now running since 2018-03-06 12:00:23 2018/03/06 12:00:23 - RCONFIG DEBUG: SQL: SELECT * FROM plugin_routerconfigs_devices WHERE enabled = 'on' AND nextbackup <= 1520330423 2018/03/06 12:00:23 - RCONFIG STATS: Time:0.00 Downloaded:0 Failed:0
No errors, no nothing, I've looked in DEBUG log also.
This is 12:00 and not 23:00. You scheduled automated backups to 23:00 in the settings.
Under which user is your webserver running? And please show me the output of
ls -al /home/cacti
If you ran the manual backup via CLI as root, the directory will be created with root permissions and cacti won't be able to work in these directories.
I've change the hours, so I wouldnt wait untill 23 p.m, because logs from last day were rotated already @ 00:00, and I didnt have the logs from 23 anymore.
MariaDB [cacti]> select * from settings where name like 'routerconfigs_%'; +----------------------------+-----------------------------+ | name | value | +----------------------------+-----------------------------+ | routerconfigs_backup_path | /home/cacti | | routerconfigs_debug_buffer | on | | routerconfigs_email | user@gmail.com | | routerconfigs_from | cacti@cacti2.localhost | | routerconfigs_hour | 12 | | routerconfigs_name | Cacti | | routerconfigs_retention | 30 | | routerconfigs_retry | 4 | | routerconfigs_sleep | 125000 | | routerconfigs_tftpserver | 192.168.1.1 | | routerconfigs_timeout | 3 | +----------------------------+-----------------------------+ 11 rows in set (0.00 sec)
On 06.03.2018 12:08 PM, seppeel wrote:
This is 12:00 and not 23:00. You scheduled automated backups to 23:00 in the settings.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Cacti/plugin_routerconfigs/issues/39#issuecomment-370730328, or mute the thread https://github.com/notifications/unsubscribe-auth/AblNWrcd2zbdZON0XS41h7Xe_B84HdWJks5tbmASgaJpZM4ST3zq.
Yes, but i think @netniV wanted to see the output from last night. I updated my last post, please have a look.
Well, I dont have the output from last night, but it should be the same output as the one @ 12 PM, since I change in settings and force RCONFIG to run at 12 PM.
On 06.03.2018 12:13 PM, seppeel wrote:
Yes, but i think @netniV https://github.com/netniv wanted to see the output from last night. I updated my last post, please have a look.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Cacti/plugin_routerconfigs/issues/39#issuecomment-370731788, or mute the thread https://github.com/notifications/unsubscribe-auth/AblNWkYXohF_ZdzcuTomcztiSWHDeC-Pks5tbmEzgaJpZM4ST3zq.
Whats the output of
SELECT id,nextbackup FROM plugin_routerconfigs_devices WHERE enabled = 'on';
?
I dont need all if you have 100 devices or something ^^
MariaDB [cacti]> SELECT id,nextbackup FROM plugin_routerconfigs_devices WHERE enabled = 'on'; +----+------------+ | id | nextbackup | +----+------------+ | 3 | NULL | | 4 | NULL | | 5 | NULL | | 6 | NULL | | 7 | NULL | | 8 | NULL | | 9 | NULL | | 10 | NULL | | 11 | NULL | +----+------------+ 9 rows in set (0.01 sec)
That suggests that they should all be picked up.
If you run this command, what do you get?
SELECT * FROM plugin_routerconfigs_devices WHERE enabled = 'on' AND nextbackup <= 1520330423 LIMIT 10
The interesting thing there btw, is that timestamp is for 10am GMT.
Oh and you can get to yesterday's logs by changing the drop down from cacti.log to cacti.log-
My "nextbackup" value is "0" and not "NULL". He could try to UPDATE plugin_routerconfigs_devices SET nextbackup = '0' WHERE enabled = 'on'; when your query doesnt show all the devices.
For me the timestamp is 11am -> timezone stuff.
Yeah I know it's timezone stuff, just want to me sure that the time was 12pm for him, not 11am (as I assumed you are both an hour ahead, but maybe he's two).
I've added an update to include NULL in the values that are selected, so a git pull
if your on my repo will pull in that change.
I set a value manually to NULL and selected everything <= 1 -> the id with value = NULL was not displayed. So your patch should do it.
This is now patched in my repo for testing 1.3.4
MariaDB [cacti]> SELECT * FROM plugin_routerconfigs_devices WHERE enabled = 'on' AND nextbackup <= 1520330423 LIMIT 10; Empty set (0.00 sec)
MariaDB [cacti]>
Meanwhile on the 1.3.4 latest pull from netniV git I have a situation with one of the boxes. It fails to copy the correct file name(instead of ra1-nou its saving the file with 192.168.1.1 as name).
2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Connected via telnet 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Already enabled, continuing 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: copy run tftp://192.168.1.1/ra1-nou 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Prompt match (1) returned 1 matches 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Sending a return 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: Address or name of remote host [192.168.1.1]? 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: Address or name of remote host [192.168.1.1]? 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Result: (0) 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Prompt match (2) returned 1 matches 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Sending Server: 192.168.1.1 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: Destination filename [ra1-nou]? 192.168.1.1 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: Destination filename [ra1-nou]? 192.168.1.1 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Result: (0) 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Prompt match (3) returned 1 matches 2018/03/06 18:20:37 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Sending Filename (Source): 2018/03/06 18:20:40 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/03/06 18:20:40 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 2018/03/06 18:20:40 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Result: (8) 2018/03/06 18:20:40 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Prompt match (4) returned 1 matches 2018/03/06 18:20:40 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Sending a return 2018/03/06 18:20:42 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/03/06 18:20:43 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 2018/03/06 18:20:43 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Result: (8) 2018/03/06 18:20:43 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Prompt match (5) returned 1 matches 2018/03/06 18:20:43 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Sending a return 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: !! 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 45603 bytes copied in 7.160 secs (6369 bytes/sec) 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: ra1-nou# 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: ra1-nou# 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: !! 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 45603 bytes copied in 7.160 secs (6369 bytes/sec) 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: ra1-nou# 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: ra1-nou# 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Line: 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Result: (0) 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: TFP TRANSFER SUCCESSFUL 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Checking for valid incoming file at /home/cacti/ra1-nou 2018/03/06 18:20:44 - RCONFIG 172.25.232.33 (Telnet) -> ERROR: Failed to find file at /home/cacti/ra1-nou 2018/03/06 18:20:56 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: ra1-nou# 2018/03/06 18:20:56 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:56 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: ra1-nou#exit 2018/03/06 18:20:56 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Buffer: 2018/03/06 18:20:56 - RCONFIG NOTICE: Failed to download for ro-ar01a-ra1-nou 2018/03/06 18:20:56 - RCONFIG WARNING: 0 Devices Backed Up, 1 Devices Failed, 0 Disabled (ignored) in 21 seconds 2018/03/06 18:20:56 - RCONFIG DEBUG: 0 devices backed up successfully. 2018/03/06 18:20:56 - RCONFIG DEBUG: 1 devices failed to backup.
Its the box wich requires an extra "enter" to copy the file and I removed the confirmation from settings. Worked before I made the last git pull(also 1.3.4).
Also I've did what seppeel suggested:
ariaDB [cacti]> UPDATE plugin_routerconfigs_devices SET nextbackup = '0' WHERE enabled = 'on'; Query OK, 9 rows affected (0.00 sec) Rows matched: 9 Changed: 9 Warnings: 0
MariaDB [cacti]> SELECT id,nextbackup FROM plugin_routerconfigs_devices WHERE enabled = 'on'; +----+------------+ | id | nextbackup | +----+------------+ | 3 | 0 | | 4 | 0 | | 5 | 0 | | 6 | 0 | | 7 | 0 | | 8 | 0 | | 9 | 0 | | 10 | 0 | | 11 | 0 | +----+------------+ 9 rows in set (0.00 sec)
MariaDB [cacti]>
Well, there is some progres:). It seems that automated retry is working so far(I have a box who failed on manually, and it retry it after 4 hours as its supposed. Will see if the others, wich were successfull on manual backup are retrying also at midnight. The box failed, but that's another story:).
Ok, so real progres now:), dunno if changing nextbackup field from NULL to 0 like seppeel suggested did the trick, but its working. I got most of the devices automated backups, only 2 wich arent working are because of some missmatch will file name.
Logs from RCONFIG debug:
sw-noc#copy run tftp://192.168.1.1/sw-noc Address or name of remote host [192.168.1.1]? Destination filename [sw-noc]? 192.168.1.1 !!!! 11541 bytes copied in 2.220 secs (5199 bytes/sec)
LOGS from cacti:
2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: copy run tftp://192.168.1.1/sw-noc 2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Prompt match (1) returned 1 matches 2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Sending a return 2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: Address or name of remote host [192.168.1.1]? 2018/03/07 00:00:27 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: Destination filename [sw-noc]? 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: Address or name of remote host [192.168.1.1]? 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: Destination filename [sw-noc]? 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Result: (0) 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Prompt match (2) returned 1 matches 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> NOTICE: Sending Server: 192.168.1.1 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 192.168.1.1 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: 192.168.1.1 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Result: (0) 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Prompt match (3) returned 1 matches 2018/03/07 00:00:28 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Sending a return 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Result: (8) 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Prompt match (4) returned 1 matches 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Sending a return 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: !!!! 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 11541 bytes copied in 2.220 secs (5199 bytes/sec) 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: sw-noc# 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: sw-noc# 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Result: (0) 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Prompt match (5) returned 1 matches 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Sending a return 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: sw-noc# 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: sw-noc# 2018/03/07 00:00:30 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: sw-noc# 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Line: sw-noc# 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Result: (0) 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Checking for valid incoming file at /home/cacti/sw-noc 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> ERROR: Failed to find file at /home/cacti/sw-noc 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: exit 2018/03/07 00:00:31 - RCONFIG 10.57.250.150 (Telnet) -> DEBUG: Buffer: 2018/03/07 00:00:31 - RCONFIG NOTICE: Failed to download for sw-noc
sw-noc#
Hello, I think you've all come a long way with this project. Thank you for your hard work. Everything is working well, except those two hosts. Think you can take a look? Was working one or two pulls ago.
On Mar 6, 2018 14:16, "netniV" notifications@github.com wrote:
This is now patched in my repo for testing 1.3.4
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Cacti/plugin_routerconfigs/issues/39#issuecomment-370762861, or mute the thread https://github.com/notifications/unsubscribe-auth/AblNWiDcuLDGnOsJWSHTzaHMilNarNmPks5tbn4BgaJpZM4ST3zq .
Hi @rtripon, I will probably get to look tomorrow. Busy day today, plus trying to get the CentOS 6 environmnet up and running so I can properly test PHP 5.4 issues.
You guys having fun? You are clogging my email ;) The community appreciates your patience.
Oh sorry, closing now. Marked as solved, and I thank the community for their patience.
Ok, so I've installed new version, and manually backups are working...but only for some devices, its pretty weird. I have 8 devices, 5 are working, 3 arent. Same configs, same user/pass, just different IP.
2018/02/26 22:16:04 - RCONFIG NOTICE: Starting automatic backup 2018/02/26 22:16:05 - RCONFIG STATS: Backup now running since 2018-02-26 22:16:04 2018/02/26 22:16:05 - RCONFIG DEBUG: SQL: SELECT * FROM plugin_routerconfigs_devices WHERE enabled = 'on' 2018/02/26 22:16:05 - RCONFIG DEBUG: Attempting download for c2960-POP-Atrium 2018/02/26 22:16:05 - RCONFIG DEBUG: Base64 decoded: a:3:{i:1421755990;i:10712997;s:8:"password";s:16:"(16: chars)";i:62731792;i:352409267;} 2018/02/26 22:16:05 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:05 - RCONFIG 172.25.232.56 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:05 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.56, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:05 - RCONFIG 172.25.232.56 (Telnet) -> Disconnect() 2018/02/26 22:16:05 - RCONFIG 172.25.232.56 (Telnet) -> Attempting to open socked to 172.25.232.56:23 2018/02/26 22:16:06 - RCONFIG 172.25.232.56 (Telnet) -> Looking for Username: 2018/02/26 22:16:08 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:08 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:16:09 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:16:09 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:16:10 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:10 - RCONFIG 172.25.232.56 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:16:10 - RCONFIG 172.25.232.56 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:16:12 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:12 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> Process is enabled 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/c2960-POP-Atrium 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Attempting to open file at /var/lib/tftpboot/c2960-POP-Atrium 2018/02/26 22:16:13 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Configuration end check successful 2018/02/26 22:16:14 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Configuration Data Length 8202 2018/02/26 22:16:14 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Checking backup directory exists: /var/lib/tftpboot/ 2018/02/26 22:16:14 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Attempting to backup to filename '/var/lib/tftpboot/c2960-POP-Atrium-2018-02-26-2216' 2018/02/26 22:16:14 - RCONFIG 172.25.232.56 (Telnet) -> DEBUG: Backed up 2018/02/26 22:16:14 - RCONFIG NOTICE: Download successful for c2960-POP-Atrium 2018/02/26 22:16:14 - RCONFIG DEBUG: Attempting download for Gi2 2018/02/26 22:16:14 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:16:14 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:14 - RCONFIG 172.25.232.36 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:14 - RCONFIG 172.25.232.36 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.36, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:14 - RCONFIG 172.25.232.36 (Telnet) -> Disconnect() 2018/02/26 22:16:14 - RCONFIG 172.25.232.36 (Telnet) -> Attempting to open socked to 172.25.232.36:23 2018/02/26 22:16:15 - RCONFIG 172.25.232.36 (Telnet) -> Looking for Username: 2018/02/26 22:16:15 - RCONFIG 172.25.232.36 (Telnet) -> ERROR: Failed to find username prompt 2018/02/26 22:16:15 - RCONFIG ERROR: Failed to Connect to Device 'Gi2' using connection type: telnet 2018/02/26 22:16:15 - RCONFIG NOTICE: Failed to download for Gi2 2018/02/26 22:16:15 - RCONFIG DEBUG: Attempting download for ro-ar01a-c2960S-uav 2018/02/26 22:16:15 - RCONFIG DEBUG: Base64 decoded: a:3:{i:1421755990;i:10712997;s:8:"password";s:16:"(16: chars)";i:62731792;i:352409267;} 2018/02/26 22:16:15 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:15 - RCONFIG 172.25.232.55 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:15 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.55, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:15 - RCONFIG 172.25.232.55 (Telnet) -> Disconnect() 2018/02/26 22:16:15 - RCONFIG 172.25.232.55 (Telnet) -> Attempting to open socked to 172.25.232.55:23 2018/02/26 22:16:16 - RCONFIG 172.25.232.55 (Telnet) -> Looking for Username: 2018/02/26 22:16:18 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:18 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:16:19 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:16:19 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:16:20 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:20 - RCONFIG 172.25.232.55 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:16:20 - RCONFIG 172.25.232.55 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:16:22 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:22 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:16:23 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:23 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:16:23 - RCONFIG 172.25.232.55 (Telnet) -> Process is enabled 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/ro-ar01a-c2960S-uav 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Attempting to open file at /var/lib/tftpboot/ro-ar01a-c2960S-uav 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Configuration end check successful 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Configuration Data Length 12895 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Checking backup directory exists: /var/lib/tftpboot/ 2018/02/26 22:16:24 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Attempting to backup to filename '/var/lib/tftpboot/ro-ar01a-c2960S-uav-2018-02-26-2216' 2018/02/26 22:16:25 - RCONFIG 172.25.232.55 (Telnet) -> DEBUG: Backed up 2018/02/26 22:16:25 - RCONFIG NOTICE: Download successful for ro-ar01a-c2960S-uav 2018/02/26 22:16:25 - RCONFIG DEBUG: Attempting download for SW-Pecica 2018/02/26 22:16:25 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:16:25 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:25 - RCONFIG 172.25.232.38 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:25 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.38, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:25 - RCONFIG 172.25.232.38 (Telnet) -> Disconnect() 2018/02/26 22:16:25 - RCONFIG 172.25.232.38 (Telnet) -> Attempting to open socked to 172.25.232.38:23 2018/02/26 22:16:26 - RCONFIG 172.25.232.38 (Telnet) -> Looking for Username: 2018/02/26 22:16:28 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:28 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:16:29 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:16:29 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:16:31 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:31 - RCONFIG 172.25.232.38 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:16:31 - RCONFIG 172.25.232.38 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:16:33 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:33 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> Process is enabled 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/SW-Pecica 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Attempting to open file at /var/lib/tftpboot/SW-Pecica 2018/02/26 22:16:34 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Configuration end check successful 2018/02/26 22:16:36 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:36 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Configuration Data Length 11831 2018/02/26 22:16:36 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Checking backup directory exists: /var/lib/tftpboot/ 2018/02/26 22:16:36 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Attempting to backup to filename '/var/lib/tftpboot/SW-Pecica-2018-02-26-2216' 2018/02/26 22:16:36 - RCONFIG 172.25.232.38 (Telnet) -> DEBUG: Backed up 2018/02/26 22:16:36 - RCONFIG NOTICE: Download successful for SW-Pecica 2018/02/26 22:16:36 - RCONFIG DEBUG: Attempting download for gi11- 2018/02/26 22:16:36 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:16:36 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:36 - RCONFIG 172.25.232.39 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:36 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.39, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:36 - RCONFIG 172.25.232.39 (Telnet) -> Disconnect() 2018/02/26 22:16:36 - RCONFIG 172.25.232.39 (Telnet) -> Attempting to open socked to 172.25.232.39:23 2018/02/26 22:16:37 - RCONFIG 172.25.232.39 (Telnet) -> Looking for Username: 2018/02/26 22:16:39 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:39 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:16:41 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:16:41 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:16:42 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:44 - RCONFIG 172.25.232.39 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:16:45 - RCONFIG 172.25.232.39 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:16:47 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:47 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:16:48 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:48 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:16:48 - RCONFIG 172.25.232.39 (Telnet) -> Process is enabled 2018/02/26 22:16:48 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Prompt match (1) returned 1 matches 2018/02/26 22:16:48 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Sending confirmation: y 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Result: (0), Line: 0$tp://217.156.98.102/gi11- 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Result: (0), Line: !!!! 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Result: (0), Line: 10460 bytes copied in 1.448 secs (7224 bytes/sec) 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Result: (0), Line: gi11-#y 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Result: (0), Line: 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: TFP TRANSFER SUCCESSFUL 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/gi11- 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Attempting to open file at /var/lib/tftpboot/gi11- 2018/02/26 22:16:50 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Configuration end check successful 2018/02/26 22:16:51 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Configuration Data Length 10876 2018/02/26 22:16:51 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Checking backup directory exists: /var/lib/tftpboot/ 2018/02/26 22:16:51 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Attempting to backup to filename '/var/lib/tftpboot/gi11-2018-02-26-2216' 2018/02/26 22:16:51 - RCONFIG 172.25.232.39 (Telnet) -> DEBUG: Backed up 2018/02/26 22:16:51 - RCONFIG NOTICE: Download successful for gi11- 2018/02/26 22:16:51 - RCONFIG DEBUG: Attempting download for GI9 2018/02/26 22:16:51 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:16:51 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:51 - RCONFIG 172.25.232.47 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:51 - RCONFIG 172.25.232.47 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.47, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:51 - RCONFIG 172.25.232.47 (Telnet) -> Disconnect() 2018/02/26 22:16:51 - RCONFIG 172.25.232.47 (Telnet) -> Attempting to open socked to 172.25.232.47:23 2018/02/26 22:16:52 - RCONFIG 172.25.232.47 (Telnet) -> Looking for Username: 2018/02/26 22:16:52 - RCONFIG 172.25.232.47 (Telnet) -> ERROR: Failed to find username prompt 2018/02/26 22:16:52 - RCONFIG ERROR: Failed to Connect to Device 'GI9' using connection type: telnet 2018/02/26 22:16:52 - RCONFIG NOTICE: Failed to download for GI9 2018/02/26 22:16:52 - RCONFIG DEBUG: Attempting download for ro-ar01a-sw13 2018/02/26 22:16:52 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:16:52 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:16:52 - RCONFIG 172.25.232.45 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:16:52 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.45, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:16:52 - RCONFIG 172.25.232.45 (Telnet) -> Disconnect() 2018/02/26 22:16:52 - RCONFIG 172.25.232.45 (Telnet) -> Attempting to open socked to 172.25.232.45:23 2018/02/26 22:16:53 - RCONFIG 172.25.232.45 (Telnet) -> Looking for Username: 2018/02/26 22:16:55 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:16:55 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:16:56 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:16:56 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:16:58 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:16:58 - RCONFIG 172.25.232.45 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:16:58 - RCONFIG 172.25.232.45 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:17:00 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:17:00 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:17:01 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:17:01 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:17:01 - RCONFIG 172.25.232.45 (Telnet) -> Process is enabled 2018/02/26 22:17:01 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Prompt match (1) returned 1 matches 2018/02/26 22:17:01 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Sending confirmation: y 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Result: (0), Line: 0$tp://217.156.98.102/ro-ar01a-sw13 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Result: (0), Line: !! 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Result: (0), Line: 15961 bytes copied in 0.980 secs (16287 bytes/sec) 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Result: (0), Line: ro-ar01a-sw13#y 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Result: (0), Line: 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: TFP TRANSFER SUCCESSFUL 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/ro-ar01a-sw13 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Attempting to open file at /var/lib/tftpboot/ro-ar01a-sw13 2018/02/26 22:17:02 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Configuration end check successful 2018/02/26 22:17:03 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Configuration Data Length 16647 2018/02/26 22:17:03 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Checking backup directory exists: /var/lib/tftpboot/ 2018/02/26 22:17:03 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Attempting to backup to filename '/var/lib/tftpboot/ro-ar01a-sw13-2018-02-26-2217' 2018/02/26 22:17:03 - RCONFIG 172.25.232.45 (Telnet) -> DEBUG: Backed up 2018/02/26 22:17:03 - RCONFIG NOTICE: Download successful for ro-ar01a-sw13 2018/02/26 22:17:03 - RCONFIG DEBUG: Attempting download for ro-ar01a-ra 2018/02/26 22:17:03 - RCONFIG DEBUG: Base64 decoded: a:3:{i:935581429;i:6942385;s:8:"password";s:16:"(16: chars)";i:1423103999;i:907308044;} 2018/02/26 22:17:03 - RCONFIG DEBUG: Base64 decoded: 2018/02/26 22:17:03 - RCONFIG 172.25.232.33 -> DEBUG: Attempting to connect via Telnet 2018/02/26 22:17:03 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: SSH->Connect(Server: 172.25.232.33, User: rtripon, Password: (16 chars), Enablepw: (Not Set), Devicetype: {"id":"1","name":"Cisco IOS","username":"Username:","password":"Password:","copytftp":"copy run tftp:\/\/%SERVER%\/%FILE%","version":"show version","confirm":"y","forceconfirm":"on","checkendinconfig":"on"} 2018/02/26 22:17:03 - RCONFIG 172.25.232.33 (Telnet) -> Disconnect() 2018/02/26 22:17:03 - RCONFIG 172.25.232.33 (Telnet) -> Attempting to open socked to 172.25.232.33:23 2018/02/26 22:17:04 - RCONFIG 172.25.232.33 (Telnet) -> Looking for Username: 2018/02/26 22:17:06 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:17:06 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Sending username: rtripon 2018/02/26 22:17:07 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found Prompt (Password) 2018/02/26 22:17:07 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found prompt 'Password:', Sending password: (16 chars) 2018/02/26 22:17:09 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:17:09 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Connected via telnet 2018/02/26 22:17:09 - RCONFIG 172.25.232.33 (Telnet) -> NOTICE: Ensuring process is enabled 2018/02/26 22:17:11 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached 2018/02/26 22:17:11 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Attempt 0 of 10 to find enabled prompt 2018/02/26 22:17:12 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:17:12 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Attempt 1 of 10 to find enabled prompt 2018/02/26 22:17:12 - RCONFIG 172.25.232.33 (Telnet) -> Process is enabled 2018/02/26 22:17:12 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: CHECKING FOR valid file at /var/lib/tftpboot/ro-ar01a-ra 2018/02/26 22:17:12 - RCONFIG 172.25.232.33 (Telnet) -> ERROR: Failed to find file at /var/lib/tftpboot/ro-ar01a-ra 2018/02/26 22:17:13 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Found Prompt (Enabled) 2018/02/26 22:17:13 - RCONFIG NOTICE: Failed to download for ro-ar01a-ra 2018/02/26 22:17:13 - RCONFIG WARNING: 5 Devices Backed Up and 3 Devices Failed in 68 seconds 2018/02/26 22:17:13 - RCONFIG DEBUG: 5 devices backed up successfully. 2018/02/26 22:17:13 - RCONFIG DEBUG: 3 devices failed to backup. 2018/02/26 22:17:13 - RCONFIG DEBUG: These devices failed to backup 2018/02/26 22:17:13 - RCONFIG DEBUG: ------------------------------ 2018/02/26 22:17:13 - RCONFIG DEBUG: Gi2 - ERROR: Failed to Connect to Device 'Gi2' using connection type: telnet 2018/02/26 22:17:13 - RCONFIG DEBUG: GI9 - ERROR: Failed to Connect to Device 'GI9' using connection type: telnet 2018/02/26 22:17:13 - RCONFIG DEBUG: ro-ar01a-ra - ERROR: TELNET no Config uploaded from Router 2018/02/26 22:17:14 - RCONFIG STATS: Time:69.35 Downloaded:5 Failed:3
For at least 2 hosts(Gi2+Gi9) I think one issue may be the fact that the "Username" prompt appears after few seconds(due to a tacacs server prolly), and its timed out.
Looking for Username: 2018/02/26 22:17:06 - RCONFIG 172.25.232.33 (Telnet) -> DEBUG: Timeout of 1 seconds has been reached
But I dont know why the last host(ro-ar01a-ra) isnt working.