You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prompt of my HPE OfficeConnect Switch 1920S reads '(HPE Routing) #' for privilege-15 and '(HPE Routing) >' for other privilege levels. When run on a php prompt with --debug, after the 'NOTICE: Ensuring process is enabled' it gives 10 timeouts and concludes with 'Process is now NOT enabled' and 'ERROR: Failed to download 'myHProuter' to '/usr/share/cacti/site/backups/myHProuter' via 'ssh''.
Add any other context about the problem here.
This would all be no problem if you could change the offending prompt to one without spaces, but you can't seem to do that on this particular switch.
My fix is to add a space to the preg_match in line 355 and line 361 of routerconfigs/classes/PHPConnection.php like so:
becomes
but what works for me may not work for everone, or it may have unforseen side effects. I did not notice any effect for all my other (Cisco) switches.
The text was updated successfully, but these errors were encountered:
Describe the bug
The prompt of my HPE OfficeConnect Switch 1920S reads '(HPE Routing) #' for privilege-15 and '(HPE Routing) >' for other privilege levels. When run on a php prompt with --debug, after the 'NOTICE: Ensuring process is enabled' it gives 10 timeouts and concludes with 'Process is now NOT enabled' and 'ERROR: Failed to download 'myHProuter' to '/usr/share/cacti/site/backups/myHProuter' via 'ssh''.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The backup should not fail.
Screenshots
Additional context
Cacti 1.2.26 running on Ubuntu 24.04.1 LTS
plugin RouterConfigs 1.6
plugin Thold 1.8.1
plugin Weathermap 1.3
Add any other context about the problem here.
This would all be no problem if you could change the offending prompt to one without spaces, but you can't seem to do that on this particular switch.
My fix is to add a space to the preg_match in line 355 and line 361 of routerconfigs/classes/PHPConnection.php like so:
becomes
but what works for me may not work for everone, or it may have unforseen side effects. I did not notice any effect for all my other (Cisco) switches.
The text was updated successfully, but these errors were encountered: