Skip to content

clforeach.sh

If you want to run the same command on a number of routers (let’s say you want to check whether a particular prefix is visible on a number of different looking glass/route server hosts) then calling RANCID’s clogin from a loop can save a lot of typing.

This probably already exists, but I felt like doing it myself. If this is useful to you, let me know :-)

#!/bin/bash
# Simeon Miteff <simeon@localloop.co.za>
 
clogin=/usr/lib/rancid/bin/clogin
 
if [ $# -le 1 ]; then 
        echo "Usage: $0 [cloginrc file] [command]" 1>&2;
        exit 1;
fi
 
awk '{print $3}' < $1 | sort -u | while read host; do
        $clogin -autoenable -f $1 -c "$2" $host;
done

Now if you’re interested in South African BGP, here is a sample cloginrc file:

add user tpr-route-server.saix.net {saix}
add password tpr-route-server.saix.net {saix}
add user lg1.za.mtnbusiness.net {lg}
add password lg1.za.mtnbusiness.net {l0ok1ng-G145s}
add user lg2.za.mtnbusiness.net {lg}
add password lg2.za.mtnbusiness.net {l0ok1ng-G145s}
add user local-route-server.is.co.za {rviews}
add password local-route-server.is.co.za {rviews}
add password route-server.tenet.ac.za {rviews}
add password route-views.jinx.routeviews.org {}

Tagged , ,

Does Evernote enjoy discarding your changes?

If you remain logged into Evernote’s web interface for long enough, eventually you’ll encounter the situation where attempting to save a note after making some changes will result in a little HTML pop-up dialog telling you that you need to “reload evernote” to access a “new version”.

If you click the only button on this dialog, you’re then prompted with a Javascript browser dialog telling you if you leave the page, your changes will be discarded (this is true), but if you remain on the page you can save your changes (this is a lie – because doing this leads you back to the first dialog).

Most peculiar is that as you click the button on the second dialog to leave the page (and thus discard your changes), there is a little HTML notification on the bottom-right corner of the page that briefly indicates “saving changes”, just before the UI reloads and reveals you how Evernote happily threw away the changes to your note…

Hmmm…

Tagged ,

Ostensibly heterosexual

I find my Samsung phone’s auto-complete behavior peculiar:

For some months now, when I hit ‘h’ instead of ‘g’ when typing ‘get’, it auto-completes ‘het’ as ‘heterosexual’. Then, just a few minutes ago I was typing ‘it’, and got ‘ostensibly’ (no idea how).

These can’t be particularly common n-grams in my writing. In fact, I’m fairly certain I’ve never typed those words into this device. Why does it pick them?…

The mind boggles.

Tagged ,

Route server updates

I’ve made some updates to the route servers page. There were enough changes to warrant a quick blog post, so here goes:

  • MTN collapsed AS2905 into AS16637, so lg1.za.mtnbusiness.net now lives in the latter AS
  • lg1.za.mtnbusiness.net now has more liberal command authorization
  • lg1.za.mtnbusiness.net has a new password: l0ok1ng-G145s (1337 5p34k much?)
  • I added the AS37105 (Neology) web looking glass.
  • I added the Routeviews route server at JINX.

Are there any ISP route servers not on the list?

If you know of any, please drop me an email!

Tagged

Internet map updated

While attending AfPIF 2012, I was motivated to update the original map I did back in 2009.

Click on the image to download the PDF version.

What is this?

This graph shows who provides transit to whom, within South Africa, to the rest of the Internet.

I think it needs a lot more work (including ASNs in the labels, etc), but rather than never publishing a perfect map, I’ve chosen to publish an imperfect map, now, while it’s relevant to you, dear reader. Enjoy!

South African Internet Map v2 (August 2012)

Tagged , ,

ISPA IXP peer addresses

In the good old days, ISPA used to have a table with the IP allocations for JINX peers on their website. Now you can use this script:

#!/bin/bash
# Simeon Miteff, Tue Aug 21 09:46:59 SAST 2012
# simeon@localloop.co.za
 
function getptrv4 {
        for i in {1..255}; do
                PTR=`dnsname $1.$i`;
                [ -n "$PTR" ] && echo "$PTR,$1.$i";
        done
}
 
function getptrv6 {
        for i in {1..255}; do
                i=$(printf "%x" $i)
                PTR=`dnsname $1::$i`;
                [ -n "$PTR" ] && echo "$PTR,$1::$i";
        done
}
 
echo "#== JINX IPv4 =="
getptrv4 "196.223.14"
echo "#== CINX IPv4 =="
getptrv4 "196.223.22"
echo "#== JINX IPv6 =="
getptrv6 "2001:43f8:01f0:0"
echo "#== CINX IPv6 =="
getptrv6 "2001:43f8:01f1:0"

You’ll need bash, and the dnsname utility from dbndns (the debianized and patched version djbdns – I doubt the original has IPv6 support).

Now you can do stuff like this:

simeon@pedro:~$ bash ispa_ix.sh | grep google
google.cinx.net.za,196.223.22.41
google.jinx.net.za,2001:43f8:01f0:0::41
google.cinx.net.za,2001:43f8:01f1:0::41

Enjoy!

Tagged , , ,

New South African ASNs

In preparation for AfPIF 2012 I’ve been giving the autonomous systems list some TLC. The numbers (prefixes announced, equivalent number of /24s) are now up-to date. Below are the 62 new local ASNs that appeared in BGP-sphere in the two or so years I’ve been busy with other stuff.

The as-names are still missing and I won’t have time to write new kids on the block-style commentary, but I hope this is nevertheless interesting for the hardcore internetworkers out there:

AS Number Class C Count Networks Owner Website
37168 6656 20 Cell C Pty Ltd http://www.cellc.co.za
37130 1043 24 State Information Technology Agency http://www.sita.co.za
37179 217 9 Africa Independent Network Exchange (Pty) LTD (AfricaINX) http://www.africainx.net
37253 128 4 Altech Technology Concepts http://www.techconcepts.co.za
37153 120 14 Hetzner Pty Ltd http://www.hetzner.co.za
37277 65 2 Limelight networks http://www.llnw.com
37334 48 7 ARC Communications Pty Ltd http://www.arctelco.co.za
28698 40 2 MTN Business Solutions (Pty) Ltd http://www.mtnbusiness.co.za
37225 40 2 Netwide http://www.netwide.co.za
37053 39 8 RSAWeb http://www.rsaweb.co.za
37271 36 2 Workonline Communications http://www.workonline.co.za
37100 36 2 Seacom Ltd http://www.seacom.mu
37357 32 1 SAINET http://www.sainet.co.za
37315 26 13 Cipherwave http://www.cipherwave.co.za
56696 20 22 Liquid telecom http://www.liquidtelecom.com/
37276 20 2 VOffice Solutions http://www.voffice.co.za
37353 19 6 Macrolan CC http://www.macrolan.co.za
37238 16 11 IWAY Africa Ltd (a.k.a Multichoice Africa) http://www.iwayafrica.net
37235 16 5 Mimecast South Africa http://www.mimecast.co.za
37202 16 1 Ambronex (PTY) LTD http://www.ambronex.co.za
37333 13 5 Comtel Communications http://www.comtel.co.za
37055 10 5 EMID Pty Ltd http://www.emid.co.za
5.13 8 5 ECHO Service Provider/Axxess DSL http://www.adsl.co.za
37266 8 3 Amobia Communications http://www.amobia.com
37317 8 2 WSINET http://www.wsiglobal.co.za
37239 8 1 ICTGlobe Management Pty Ltd http://www.ictglobe.com
37254 8 1 Green Flash Trading http://www.megs.co.za
37172 8 1 Mitsol http://www.mitsol.net
37150 8 1 XNet http://www.xnet.co.za
37188 8 1 Bytes Systems Integration (PTY) Ltd http://www.bytes.co.za
37422 7 4 First Technology http://www.firsttech.net
5.21 5 5 SABINET http://www.sabinet.co.za
37259 5 5 Kawuleza Connect http://www.kawuleza.com
37160 4 5 Grindrod Management Services (Pty) Ltd http://www.grindrod.co.za
37403 4 5 Infogro Pty Ltd http://www.infogro.co.za
37116 4 4 Coega Development Corporation http://www.coega.co.za
37157 4 4 Imagine http://www.imagine.co.za
37417 4 2 Fusion Wireless (PTY) LTD t/a Sonic Wireless Solutions http://www.sonicwireless.co.za
37275 4 1 ETC (Pty) Ltd http://www.kapsch.co.za
37358 4 1 BitCo http://www.bitco.co.za
37368 4 1 Bluedust Wireless http://www.bluedust.co.za
37302 4 1 Dube TradePort http://www.dubetradeport.co.za
37236 4 1 Reflex Solutions http://www.reflex.co.za
37412 4 1 The Packet Hub http://www.thepackethub.co.za
37159 4 1 Alexandre Miller cc t/a Imaginet http://www.imaginet.co.za
37439 4 1 Breedenet http://www.breedenet.co.za
37399 3 3 Switch Telecom http://www.switchtel.co.za
37265 3 2 Neural Telecomunications Africa http://www.neuraltel.com
37312 3 2 Clickatell http://www.clickatell.com
37786 2 2 Ariviakom (Pty) Ltd http://www.arivia.co.za
37438 2 2 Gijima Holdings http://www.gijima.com
37185 2 2 Quick Edge Ltd http://www.quickedge.com
37180 2 2 South African Airways http://www.flysaa.com
37394 2 1 eNetworks cc http://www.enetworks.co.za
37363 2 1 Faircape/Faircom http://www.faircom.co.za
37181 1 1 AfriNIC RFC5855 http://www.afrinic.net
37177 1 1 AfriNIC Anycast Services http://www.afrinic.net
3573 1 1 ACCENTURE http://www.accenture.com
37314 1 1 Syrex Intranets http://www.syrex.co.za
37316 1 1 Direct Transact Pty Ltd http://www.directtransact.co.za
37293 1 1 Stargaze Media http://www.stargazemedia.net
37402 1 1 Telesure Group Services http://www.telesure.co.za

P.S. This list of new ASNs generated from a database, so when the numbers are updated, so will this table (in other words, this post will not remain a snapshot in that respect).

Tagged

Not even Vodacom can contact Vodacom

In the spirit of Vodafail:

simeon@pedro:~$ curl -D - http://www.vodacom.com/contactus.php
HTTP/1.1 200 OK
Date: Fri, 17 Aug 2012 11:28:15 GMT
Server: Apache/2.2.16 (Debian) mod_fcgid/2.3.6 mod_ssl/2.2.16 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.3-7+squeeze14
Vary: Accept-Encoding
Transfer-Encoding: chunked
Content-Type: text/html

Unable to retrieve http://www.vodacombusiness.co.za/contactus.php after 10 attempts.

Tagged

Dear Cell C, you suck

You charged me a R114 connection fee, but it’s been six days since I signed a contract with you, and my cellphone number still has not been ported from Virgin Mobile. I paid, but you didn’t do the work.

This morning the Virgin SIM stopped working, so now my friends and co-workers cannot reach me. Having been stranded between Cell C and Virgin Mobile’s incompetence, I’m now using a pre-paid 8ta SIM, on the phone you sold me with the contract… that is how lame you are.

I wouldn’t have bitched about this on this blog, but I don’t know how else to get the message to you:

  • Your normal support call center number does not work from either my (Telkom) office line, or from my Virgin mobile SIM (before it stopped working completely). If I call the Cell C general reception, they are able to put me through to support, who then put me through to your porting center, who consistently shift the blame to Virgin Mobile, and tell me to wait another day for the port to be completed.
  • The “contact us” form on your web site is broken, but also sadistic in two ways: The CAPCHA images themselves are unusually difficult to decode (as a human), and after about the 10th attempt that you’re fairly convinced you decoded correctly, you realize that it always rejects your inputs, correct or not.

Since Virgin Mobile is an MVNO customer of yours, I won’t buy the excuse that you can’t quickly coordinate with them to make the number porting succeed.

I’m beginning to regret signing up with you. Perhaps I should have taken the MTN deal.

If you want to turn me into a happy customer, fix the problem, today, or if you can’t (eg, you can only fix it tomorrow or later), also refund the connection fee as a show of good faith.

Yours sincerely,
Simeon.

Tagged , ,

Install XFCE and carry on with your life

Evolution of a Linux desktop user:

  1. Get XFree86 to work on your S3 graphics card under Linux, dabble with FVWM and Windowmaker.
  2. Discover KDE in their 1.x days – become a fan of the heavyweight desktop environment.
  3. Keep using KDE, notice how each release gets faster than the previous one, think you’ve found desktop nirvana with KDE 3.5.
  4. KDE 4.0 is released, postpone package updates so that you can stay with 3.5.
  5. Eventually give up and make a painless switch to Gnome2.
  6. When Ubuntu makes Unity the default desktop, keep using Gnome2.
  7. Gnome3 is released, postpone package updates so that you can stay with 2.
  8. Eventually give up and try KDE ~4.5, watch it crash. Upgrade your Ubuntu to 11.08 to get KDE 4.7.
  9. Use KDE 4.7 for three weeks, notice that it is still much worse than KDE 3.5 or Gnome2 was.
  10. Realize that upgrading your Ubuntu nuked Gnome2.
  11. Try Gnome3 for 2 minutes, notice it’s gone 10 years backwards in terms of features.
  12. Try the Cinnamon interface for Gnome3, wonder how you move the workspace switcher to another panel. After discovering on a forum that it requires editing stuff in Dconfig – give up.
  13. In a last act of desperation install MATE (the Gnome2 fork). Log in, watch it crash.
  14. Install XFCE, customize it to behave like Gnome 2. Carry on with your life.

Of course, if XFCE becomes popular enough, hipster coders will remove all the features and make it look like the latest desktop environment from Apple. Then you’re off to install LXDE.

What is the sustainable solution?

Buy a Mac and get the hipster interface, but with more features and less bugs?

Tagged , , , , , , , ,