After a previous BGP scheduled report script had become a bit unwieldy by way of the massive amounts of output, I decided to rewrite it to give a summary of each router and its peer statuses.
The script’s function is to poll each BGP router in a list, grab peer … Continue reading
Another challenge – leverage the basic haveibeenpwned.com web API to see if passwords have been leaked in breaches.
Pretty simple criteria here so it’s not much of a problem. Openssl does what we want and bash script is posted below.
When I was writing this, it didn’t work at first … Continue reading
Bit of a misleading title, that. It’s really not possible and there are issues trying to set vars from the output of background child processes. However, it seems it’s possible to fake it if you’re willing to fudge it a bit with temporary files.
I got annoyed with SNMP polls … Continue reading
I had a requirement to run quite a lot of tasks in parallel with varying parameters. Initial experimentation suggested I might end up with a lot of processes running and potentially cause system issues so I looked into creating a script to run things in parallel, albeit in controlled batches.
… Continue reading
I wanted to quickly grab all part numbers and serial numbers of chassis, cards and modules in some Cisco kit but the standard output wasn’t really nice enough to work with very easily.
To this end I knocked up the following script that will give a nice fixed field … Continue reading