One day I needed to monitor the size of a directory in Zabbix and create a trigger so that Zabbix would notify when the directory size increases.
Continue reading “Monitoring Linux directory size in Zabbix”Category Archives: Scripts
Huawei MA5800 – Configuration Backup Script
I sketched another example of a script for backing up the Huawei MA5800 configuration.
Continue reading “Huawei MA5800 – Configuration Backup Script”Script to bind Intel NIC interrupts to processor cores
I will give the script code from Intel to bind interrupts of Intel network adapters to processor cores, and also show examples of its use:
Continue reading “Script to bind Intel NIC interrupts to processor cores”Juniper MX configuration backup
In this article, I will write an example script that will connect to the Juniper MX204 from Linux and copy the configuration to the TFTP server, and also give an example of commands that activate automatic copying of the configuration to the server via SSH.
Continue reading “Juniper MX configuration backup”Eltex MES2324 backup script
I will give an example of my script for backing up the configuration of the Eltex MES2324B switch and similar models.
Continue reading “Eltex MES2324 backup script”MikroTik backup script
In this article, I will give an example of a script for backing up the configuration of MikroTik devices.
Continue reading “MikroTik backup script”File mirroring script
Once I needed to make several mirrors in different countries for files that were often downloaded by users, so I made two scripts for synchronization.
Continue reading “File mirroring script”Cisco Nexus 3064 Backup Script
I will give an example of a script for backing up the configuration of a Cisco Nexus 3064 and the like.
Continue reading “Cisco Nexus 3064 Backup Script”VLAN Generation Script for Netplan
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”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”