Once it was necessary to add several hundred VLANs without IP addresses to the Netplan configuration and in order to simplify the process, I came up with the following script:
Continue reading “VLAN Generation Script for Netplan”Category Archives: Scripts
Accel-ppp session termination script
I will give an example of a script to end the sessions taken on the official telegram channel Accel-ppp. Using accel-cmd and grep, we select the necessary sessions, for example, by the speed of the shaper, or part of the IP address, for example 10.10.10. and then for example send these sessions terminate if ipoeX soft or hard via accel-cmd.
Continue reading “Accel-ppp session termination script”TrinityCore Launch Script for Linux
Here is an example of a primitive TrinityCore restart script for Linux:
Continue reading “TrinityCore Launch Script for Linux”TrinityCore Auto Restarter for Windows
Example of a simple TrinityCore restart script for Windows:
Continue reading “TrinityCore Auto Restarter for Windows”BDCOM GP3600 backup script
I will give an example of a script for backing up the GPON OLT BDCOM GP3600 configuration.
Continue reading “BDCOM GP3600 backup script”Last month file archiving script
It was once necessary to write a script that was supposed to archive only files with the date of the last month from one folder, put the archive in a separate directory and delete the files that were archived.
Continue reading “Last month file archiving script”Accel-ppp and ABillS session synchronization script
A simple session synchronization script between Accel-ppp and ABillS.
Continue reading “Accel-ppp and ABillS session synchronization script”PHP script “TOP debtors of the Nika billing system”
Let me give you an example of a PHP script displaying a list of debtors from the Nika ASRM database:
Continue reading “PHP script “TOP debtors of the Nika billing system””File Integrity Check Script
Once on one server it was necessary to monitor the integrity of the file in which the changes were made, and if someone performed a system update, then this file could change and corrections had to be made again.
Usually I use a Zabbix agent and a Zabbix server for such purposes, but this server was single and it makes no sense to install a Zabbix server on it, so I wrote a simple script:
Backup to Yandex disk
I will give an example of a script for creating backup copies to Yandex drive.
Continue reading “Backup to Yandex disk”