Main Page

From Initech Technical Wiki
Jump to: navigation, search


Welcome to the Initech Technical Wiki. Here you'll find bits and pieces of useful stuff related to anything that I find interesting or IP that i've developed. Everything you find here is free to use for whatever nefarious purposes you may have in mind but needless to say that i'm not responsible for anything that goes wrong. If you need help with anything or just want to contact me then its best to email me at

Juniper Networks Stuff

Linux Scripts


The purpose of this script is to take a juniper config and convert it to set commands. This makes it easier to parse with scripts and paste snippets into other routers.

Linux Stuff


LVM Management


custom fetchers and patches

This is a library of custom config fetchers and patches to existing files


Want a script which syncs your cacti hosts into rancid and your /etc/hosts file? This sync-cacti script may be for you (use it with caution).


For those of us who manage hundreds of devices via rancid its tricky to remember what they're called and which particular login binary to use to access them. I made my "con" script to automate this.


Juniper related scripts


This script assumes that you want to set your RSVP interface IGP metrics to the same as your bearer latency. It automagically assesses the latency of each link and then recommends configuration changes if necessary.



This custom nagios plugin checks to make sure that all Juniper virtual chassis members are present and running the same version. You need to provide the hostname, SNMP community and number of expected virtual chassis members.


This custom nagios plugin checks to make sure that the the expected number of power supply units are installed and operating in the chassis. There have been times when installed power supplies (in MX chassis) lose AC power but it doesn't alarm. In unattended locations this could be disastrous.

This script takes three arguments: Hostname, SNMP Community and expected PSU count. It will warn if more PSUs than expected are installed and critical alarm if less than expected are found. This script will also work for Juniper EX-series virtual chassis and the sum-total of installed PSUs in the whole virtual chassis is what you should use as the argument.

The script checks for PSUs installed and in state '2' according to the list below of valid states:

  1. Unknown
  2. Up and running
  3. Ready to run, not running yet
  4. Held in reset, not ready yet
  5. Running at Full Speed (valid for fans only)
  6. Down or off (for power supply)
  7. Running as a standby (Backup)


This script i wrote to check the processing queue lengths of FortiSandbox appliances. Sometimes a FortiSandbox will stop processing jobs for no adequately explainable reason so i created this script to keep an eye on the job queues.

The script takes 6 arguments: Hostname, SNMP Community, queue warning level, queue critical level, total jobs warning level and total jobs critical level.

For each queue below it will check to make sure that each one has less items than the 'queue warning level'. At the end it totals all files in all queues and checks the total against the 'total jobs warning level'

Job Queues Checked

  1. . = Executables/DLL/VBS/BAT/PS1/JAR/MSI queue size
  2. . = PDF files queue size
  3. . = Office files queue size
  4. . = Flash files queue size
  5. . = Web files queue size
  6. . = Android files queue size
  7. . = Android files queue size
  8. . = URL job queue size
  9. . = User defined files queue size
  10. . = Non sandbox queue size
  11. . = Job Queue Assignment Pending


This script checks all the mail queues in a FortiMail system and for each one prints the name and the message count and warns or alarms depending on warning and critical levels specified.

The script takes the following arguments: Hostname, SNMP Community, Queue warning level, Queue critical level



Logstash for IPFIX

Kibana dashboard modifications


Zenoss transforms


This is where i'll be recording all sorts of archery information, some of it specific to me and my setup


You can find the webpage of my personal weather station here.