When connecting new subscribers, operators needed to check the optical level of the new ONU. ONUs didn’t appear immediately in the billing system. So, I first enabled a web interface on the OLT with limited access via ACL and a separate account with read permissions. However, the web interface page often opened with significant delays. So, I wrote a PHP script that displays the optical levels of all ONUs in a couple of seconds.
Continue reading “Script for polling ONU RX Power from BDCOM OLT”Category Archives: Scripts
File integrity check script (SHA-256 hashes)
I’ll give an example of a Python script that calculates the SHA-256 hashes of all files in a specified directory and sends an email with a list of files that have changed, been created, or been deleted, and also writes to the log file.
Continue reading “File integrity check script (SHA-256 hashes)”Monitoring Linux directory size in Zabbix
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”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”