Articles by Scott Hebert

  1. Pro Tip: Keep Asterisk Configuration Files in Version Control

    An Asterisk server has a very involved configuration system. One instance I manage has over 100 configuration files. As these configurations grow, it can be helpful to have a separate server running for testing and debugging problems. If you are planning a major change, it's often helpful to get ...

  2. Pro Tip: Keep Asterisk Configuration Files in Version Control

    Asterisk logo -rightAn Asterisk server has a very involved configuration system. One instance I manage has over 100 configuration files. As these configurations grow, it can be helpful to have a separate server running for testing and debugging problems. If you are planning a major change, it's often helpful to get it …

  3. TACACS Detected 'Invalid Argument'

    As always, I've changed pertinent details for reasons.

    I was working on an ASR the other day and received the follow error:

    ::: highlight RP/0/RSP0/CPU0:ASR9K(config-tacacs-host)# commit Fri Jul 29 12:55:46.243 PDT

    % Failed to commit one or more configuration items during a pseudo-atomic …
  4. Two Column for Loop in bash

    I had this interesting question the other day. Someone had a file with two columns of data in it. They wanted to assign each column to a different variable and then take action using those two variables. Here's the example I wrote for them:

    IFS=$'\n';
    for LINE in $(cat …
  5. OpenSSH: Using a Bastion Host

    Quick and dirty OpenSSH configlet here. If you have a set of hosts or devices that require you to first jump through a bastion host, the following will allow you to run a single ssh command:

    ::: highlight Host * ProxyCommand ssh -A nc %h %p :::

    Change the Host * line to best …

  6. Socket Timeouts in urllib2

    Python logo -rightOne of my scripts that makes an API call has been failing silently lately. It appears that the connection is timing out, but I am not catching that particular error. So, I fixed that.

    ::: highlight @@ -8,6 +8,7 @@ import os import random import shelve +import socket import sys import …

  7. Cache has broken packages, exiting

    I've been getting the following error from cron.daily in my inbox lately:

    ::: highlight /etc/cron.daily/apt: Cache has broken packages, exiting :::

    That's an annoying email to get everyday. I decided I would apt-get clean and that would probably fix the problem:

    <p>
    
    <script src="https://gist.github.com …

Page 1 / 69 »

My Bookshelf

Reading Now

Other Stuff