Archive for the ‘Technology’ Category.

4500G Clustering

Recently we’ve obtained a bunch of 3Com 4500G 48 port switches, and we’d like to be able to manage them slightly more effectively instead of leaving them as dumb switches. However, rather than giving each switch an IP address, 3Com allows you to use HGMPv2 to cluster them all under one IP address.

Now, this may seem fairly trivial to those with separate management networks, but sadly we’re not in that position (yet) to have a separate management network. Even if we were to set up a new VLAN for management purposes, it wouldn’t be accessible to the rest of the network staff external to our office. So, as it stands, the cluster management switch still has to use VLAN 1 for the admin and management stuff. It can still use (and has to use) a different RFC1918 address for the internal clustering network, but that’s all transparent to us.

Below is a short detail of what needs done in order to build a cluster of 4500G switches…

Enabling the electrical (Cat5) Dual combo port

As the dual combo SFP port is shared with ports 23, 24, 47 and 48 (49, 50, 51, and 52 respectively), the relevant port must be brought up (or ‘undo shutdown’ on its counterpart), in order to enable it.

[WMSWC1_0.WMSW001]system-view
System View: return to User View with Ctrl+Z.
[WMSWC1_0.WMSW001]interface GigabitEthernet 1/0/51
[WMSWC1_0.WMSW001-GigabitEthernet1/0/51]undo shutdown
[WMSWC1_0.WMSW001-GigabitEthernet1/0/51]interface GigabitEthernet 1/0/52
[WMSWC1_0.WMSW001-GigabitEthernet1/0/52]undo shutdown
[WMSWC1_0.WMSW001-GigabitEthernet1/0/52]quit
[WMSWC1_0.WMSW001]

This will enable combo ports 51 and 52, and leave 47 and 48 shut down.

Initial setup

This is done on the switch that you want to be the management switch.

Globally enable Neighbour Discovery Protocol. This allows the switches to discover information about connected neighbours, such as firmware versions, mac addresses, link states, etc.
ndp enable
Globall enable Neighbour Topology Discovery Protocol. This allows the switches to collect information regarding the topology of the network, connected devices, etc
ntdp enable
All NDP packets have a holdtime variable set. This is how long the recieving device will store the information for. The next setting defines how long that should be.
ndp timer aging 200
Next, set how often the ndp packets should be transmitted.
ndp timer hello 70
The number of hops in which to collect topology information. I’ve set this to 10, as we had 9 switches that were daisy chained for a while. Far from optimal, and now in a more star like topology anyway.
ntdp hop 10
Set the delays for each device, and port, respectively
ntdp timer hop-delay 150
ntdp timer port-delay 15

Define the period, in minutes, between topology information collections.
ntdp timer 3
Enable cluster mode.
cluster enable
…and switch into cluster view
cluster
The cluster requires an independant RFC1918 address range to work with. This is for internal management purposes and never seen by the outside world. Apparently.
ip-pool 172.16.0.1 255.255.255.0
Tell the system to build the cluster
build WMSWC1
Configure the length of time to hold member information for, before deciding that the member is gone, and define how long between handshake packets
holdtime 100
timer 10

Adding a cluster member

Just enable the following options on member devices

ndp enable
ntdp enable
cluster enable

On management device
Switch into cluster view again, and add the remote device.
cluster
add-member 3 mac-address 0022-5726-d080

Repeat the above add-member command for each member number (the first parameter) with the MAC address of each switch. After you’re done, all the switches except for the cluster commander should display ‘S’ for ‘Slave’ on their LCD display. The Cluster Commander displays a ‘C’ instead.

Once everything is up and running, you can then use topology accept all and topology save-to local-flash to accept and save the current topology layout.

It should also be noted that there is a cluster autobuild feature, but it’s always best to at least have a rough idea of how it works :-)

Lost your APC UPS?

I was in a sticky situation this weekend. I had casually set up one of our APC UPS RT 5000 units to use DHCP to get a statically assigned address. However, I hadn’t implemented Option 43 on the DHCP server and the APC management card had fallen off the network.

Unable to find a serial cable of the right type, and unable to get the card onto the subnet, I was faced with resetting the firmware. That was until I read the manual!

With the APC9619 card, at least, if you know the MAC address (I did, it was in our DHCP server config), you can prod the card with an ICMP packet to assign the desired address.

Simply do this…

Assign an IP address to the MAC address in your local ARP table
sudo arp -s 10.240.64.32 00:C0:B7:CA:D8:9B

Ping the address with a 113 byte ICMP packet.
ping 10.240.64.32 -s 113

This causes the management card to accept the address as its own, and at that point you can now telnet to the card and enter the administration console (unless you like clicky pointy things, in which case you can use your web browser)

It seems to time out rather quickly, so don’t mess about in the admin console. Jump in, remove the DHCP Vendor cookie requirement (2, 1, 1, 1, 2, 8, 1, 9) and reboot the management card.

All done! No cables, no firmware, no massive reconfiguration.

That’s not a brush…

This a real brush…

Brush

It’s rated at 8500 RPM, but the grinder runs at 10,000RPM. Frighteningly fast, and slightly unwieldy due to the gyroscopic effect present.

On a related note, due to such machinery, the replacement bulkhead is almost clean now. A touch more here and there, and it will be painted with red oxide tomorrow. The spraypaint system will be here in a couple of days, so hopefully we can get the bulkhead painted and refitted before the Land Rover has to go away for the new chassis at the end of February.

Asterisk Jabber Call Notifications

The other evening I busied myself with tweaking Asterisk to do some more geeky things. One such item was where I configured it to send a message to my Jabber account every time there was a call to a particular extension. Great for call logging, integration, and general user friendliness. If I was so inclined, it could message a Yahoo, MSN, ICQ, or AOL account through the Jabber platform to inform me of a new call. How rather flexible.

Track-It Madness

Sadly we’re having to migrate to Track-It at work, and muggins here has been tasked with ensuring the agent can deploy nicely. After some initial crazyness with manual installs, or login script launched installs, I managed to wrap it into an MSI. Details can be found over here.

100Mb/sec to 95.5% of the country?

As Steve points out, Ofcom have recently released their study on the potential future of the UK broadband network using the existing copper telephone network.

There’s two main methods of DSL delivery to end users. One is to have the DSL modems hiding in the local exchange, and the other is to have the modems stashed inside the cabinets on the streets. The latter is similar to the cable network, and hence why Virgin are touting their ‘fibre’ network. It’s really just fibre to the cabinet, and then coax to the home.

Continue reading ‘100Mb/sec to 95.5% of the country?’ »

Vodafone 3G

DSC00021Looks like someone has taken design classes from Apple, and failed. It is, however, still rather dinky and shiny. Now, if only Vodafone would activate them before they send them out to us, like they used to.

Hadoop

A while back I mentioned Hadoop as The Next Big Thing. Looks like demand has been high in the intervening months, and the Yahoo Developer Network has recently announced a new blog all about Hadoop. An open source Mapreduce implementation with a scalable, clustered and highly redundant storage system? Yes please… Now you can keep up to date with your favourite RSS reader.

Zenworks Unattended Windows Upgrade

I’d been looking at how to upgrade our Windows 2000 machines to XP at work recently, without losing all the data on them. We would normally just reimage them, and put up with the lost data, but that seemed awfully heavy handed. Nobody on the web seemed to have detailed how to do it with Zenworks, so I came up with my own method. In the process of writing it up for our wiki, I put on the web for others to use as a resource should they need it.

Deforming a character?

During my evening ramble down the overgrown alleyway of what we call the information superhighway, I stumbled across Elliott Backs commentary on the ridiculousness of some of the suggestions on Ask.com.

Curious, I carefully massaged the keybaord in such a manner that would provide a suggestion similar to the ones encountered prior. The end result was slightly disturbing…

Sue for deformation

Should I want my character deformed then I know where to go. To be honest, I suspect it’s illegal in many civilised parts of the world. In others, most likely just frowned upon. Maybe you can get ointments for such an ailment, but frankly I’d rather not try to find out.