Updating system
Updating via CLI
Updating via CLI to latest stable version
cd /var/www/html
sudo -u www-data wget -O grusher_installer.php https://gviabcua.in.ua/updater?type=installer
sudo -u www-data php grusher_installer.php silent_update
With out silent_update will run classic installator/updater
Updating via CLI to development version
cd /var/www/html
sudo -u www-data wget -O grusher_installer.php https://gviabcua.in.ua/updater?type=installer
sudo -u www-data php grusher_installer.php silent_update_dev
With out silent_update_dev will run classic installator/updater
Updating via WEB (from version 2.6.0)
Press key on main Grusher setting page
Restarting services
We recomend to restart services after update
sudo kill -9 $(pgrep -f ws_server_load.php)
sudo kill -9 $(pgrep -f websockets:run)
sudo kill -9 $(pgrep -f notify_service.php)
Auto update
This is example only! Cron must start from user www-data
You can update system in automode using CRON. Just add next (every day at 00:00)
0 0 * * * /usr/bin/wget -O /var/www/html/grusher_installer.php https://gviabcua.in.ua/updater?type=installer
1 0 * * * php /var/www/html/grusher_installer.php silent_update >> /dev/null 2>&1
Or to dev version (replace last line)
1 0 * * * php /var/www/html/grusher_installer.php silent_update_dev >> /dev/null 2>&1
All available param
Via CLI:
- silent_update - update system to latest version
- silent_update_dev - update system to latest DEV version
Via installer
- install - install system
- update - update system to latest version
- update_dev - update system to latest DEV version
- update_test - update system to latest TEST version (NOT RECOMENDED TO USE! Only if the author personally confirm that it is safe. Test versions can break your system)
Updating device base / translation
Press key on main Grusher setting page
from build less then 314
Updating Netmiko CLI
Netmiko is multi-vendor library to simplify Paramiko SSH or TELNET connections to network devices (gviabcua fork)
Recomended update this if Grusher not support your device via CLI. Also, ask the author if CLI is supported on your device
Python 3.11
cd /opt/python3.11/env/bin/
source /opt/python3.11/env/bin/activate
./python3 -m pip install --upgrade pip
./python3 -m pip install --upgrade git+https://github.com/gviabcua/netmiko.git
deactivate
Python 3.12
cd /opt/python3.12/env/bin/
source /opt/python3.12/env/bin/activate
./python3 -m pip install --upgrade pip
./python3 -m pip install --upgrade git+https://github.com/gviabcua/netmiko.git
deactivate
Updating from version to version
Updating from version 2.5.5 and below
- The ONU type determination logic has been changed. After the update, statistics on PON ports will be collected. The statistics will be updated by itself according to the scheduler. To quickly update the information, you need to go to /system/collectors and run the "Getting ONU list on OLT" (get_onus) process. If you have disabled the scheduler, you need to update the ONU lists manually (Device Card / ONU List).
- Added/changed some access rights: need to update the rights in each account
- Changed variable name in message templates from %DEVICE_NOT_AVAILABLE% to %DEVICE_NOT_AVAILABLE_COUNT%. It is necessary to adjust (template_main_report)
- Added new options for synchronization with billings. Check the SAMPLE files in the custom/billing folder
Updating from version 2.5.4 and below
sudo nano /var/www/html/config/grusher_modules.php
Add this line
"web_socket_port_for_web" => "8080",





No comments to display
No comments to display