davidrickard.net

Random stuff, randomly updated.

Archive for the ‘Computers’ Category

Don’t touch that dial!

Friday, June 18th, 2010

VideoLan (or VLC as it is otherwise known) is a great piece of software. It’s capable of playing a plethora of video and audio file types. It’s also capable of converting files, streaming files over the network, and viewing live TV via any TV cards you might have.

Because of the way it works, it’s possible to take any input, and spit it out in any way pretty much. Some time ago I’d seen a discussion on a mailing list about using VLC and a digital TV card to broadcast live TV over the network (using multicast). I’d had a quick play, but never got it working. A discussion popped up on the Multiplay forums, so I thought I’d try and get it working again. Last night I was successful, so I thought I’d blog it up in case it’s useful for others. VLC is documented, but the documentation is a bit hit and miss in places – always the problem for many Open Source projects.

Read more after the jump.

Continue Reading…

Bridgedy-doo-dah

Wednesday, May 26th, 2010

At work we often have a requirement to test out things on our network, as if we were an external user. It’s useful to check that firewall settings are right, or to check access rights. We recently had an ADSL connection installed which serves that purpose.

Via some spare fibres and various spare switches, we’ve got access to it in various switch closets. I wanted to be able to access it from my desktop. My preference was to use a virtual machine, which I could set up with all the software I needed and test. This would mean bridging said virtual machine to that network.

I added a second network adapter to my PC, unbound it from all the local protocols (so my PC doesn’t touch that network) and set VMware Player to use bridged mode. With VMware workstation, you can use the virtual network tool to configure which NIC bridges to the virtual machines. However, that tool is missing with VMware player. By default, it was bridging to my first NIC, which was no good, as it was on the uni network.

A little bit of clicking around, and I found that there is a protocol bound to all the network cards called VMware Bridge Protocol. By default, it seems to bind itself to all the NICs. I simply unbound it from my main NIC:

And left it bound to the NIC connected to the ADSL network:

I restarted VMware Player, and my virtual machine nows bridges to the ADSL connection.

Dear Opera, I’m not in Norway!

Thursday, May 6th, 2010

I upgraded Opera (it told me to) a few weeks ago. I don’t use it often – I just keep it around for testing, and as ‘another’ browser. It’s also configured with a lot of things turned off, so it’s useful for browsing to sites I don’t like the look of.

Post update, it decided to redirect me to google.nl all the time. No idea why, as it had been working fine previously. Checking every option I could within Opera, I could find no reason why.

The answer, lies in a config file, which lives here: (I’m on Windows 7, so yours may vary slightly)

C:\Users\<Your Username>\AppData\Roaming\Opera\Opera\operaprefs.ini

Towards the end of the UserPrefs section, is this line:

Google TLD Default=.google.nl

That was the one! I changed it to .co.uk, restarted Opera, et voila, it now goes where it’s meant to. I can only assume it’s something the installer did. My system is set to UK everything (I checked) and I’ve never had anything else go whizzing off to google.nl. Even going to google.com redirected properly.

Very odd!

‘BT’ fail

Wednesday, April 21st, 2010

I was sitting at my desk at work this morning, doing something probably very important when the phone rang. I answered it, and a nice lady began by telling me she was calling from British Telecom, and was updating customer information. She asked if it was OK to do this. I replied that we’d been trying for ages to get all our customer info updated (we have various company names, and errors in invoices and bills – trivial stuff, but it’s messy). She then started asking really basic questions, like company name, and address. I didn’t answer anything, and asked her to prove she was looking at our account. She reeled off some really basic facts you could find off the website (including the URL of the University website). I wasn’t convinced she may have been from BT, so asked her to confirm an account number or something, but she waffled on about asking about line useage, and products we wanted. I told her I wasn’t interested and hung up.

The thing about the call which intrigued me the most was that BT are notoriously bad at acting on changes of information. Indeed, somebody from BT told me that a lot of their billing hangs off company names and addresses, so changing it causes all sorts of headaches for the billing department – hence why they don’t!

I can’t help but feel my friend on the phone was cold calling from some random agency, basically looking to find info about us and what we do and needed, which they’d then cold call us about and try to sell to us. Maybe I was being over-cautious, and she was legit. I don’t know, and don’t care. Frankly BT, there’s much better ways of doing this!

Windows 7 x64 VT camera II drivers – They do exist (ish)

Monday, March 1st, 2010

If like me, you have a 64-bit Windows box, but a Cisco VT II camera, you’ll have found Cisco in their infinite wisdom have decided to not bother writing drivers. However, there is a way around it:

Windows 7 x64 VT camera II drivers – Cisco Support Community

OK, so it’s horribly hacky, but it DOES work. My camera is working quite happily now!

Totally faxed up

Friday, January 29th, 2010

The CallManager system I look after recently developed an odd issue. Faxes had been working quite happily for some time, but suddenly they were failing left, right and centre. Not only that, we had quite a few credit card machines running over VoIP which were failing to take payments. All ran via Cisco ATA 186 analogue gateways.

I ran various tests and found that faxes between ATAs internally were perfectly fine. As soon as they went through the gateways, they failed miserably. I ran through some of Cisco’s help guides but was drawing complete blanks. I’d ran the prserv tool to see what the ATAs were up to whilst making calls. I’d see ‘resync’ go whizzing by with a load of other seemingly random numbers. The word ‘resync’ suggested to me that the ATA was hiccuping on something, and doing something to the audio stream.

Analogue modems expect a constant stream of data. It might get fuzzy, or drop out, but it will always come along in a specific order, at a certain time. It’s predictable. Resyncing something mid-stream isn’t a good idea to a modem. In all cases when I saw the word ‘resync’ the fax would end up corrupted or dropped entirely, depending on when it happened during the call.

I did a little digging on the Cisco TAC case collection, and found what I was looking for. It was something I fiddled with some time ago.

ISDN circuits rely on a clock. Generally speaking, the clock is the telco end. We have four ISDN links on our gateways – two out to the PSTN, and two QSIG links to the old PBX. We had some odd issues with echo, and one thing we tried was forcing clock sync on the E1 controllers.

E1 and T1 controllers can exhibit something known as ‘slipped seconds’. This is basically where the clocks at both ends get slightly out of sync with eachother. In some instances it can cause echo, so we’d nailed up the QSIG links to use the clock at the legacy PBX end. However, it seems with the 2-port WICs, this causes BOTH ports to sync to that clock.

Up to this point it hadn’t been the issue. There was the odd dropped fax, but nothing overly bad. A week or so ago (the week I was off, natch), the faxes all pretty much failed simultaneously. Voice calls remained perfectly fine, which made it all the more perplexing. Luckily I found the info I needed in the TAC collection.

The issue will manifest itself as slipped seconds. On the router, I did the following:

router#sh controller e1 0/0/0
E1 0/0/0 is up.
  Applique type is Channelized E1 - balanced
  No alarms detected.
  alarm-trigger is not set
  Version info Firmware: 20060707, FPGA: 13, spm_count = 0
  Framing is CRC4, Line Code is HDB3, Clock Source is Line.
  CRC Threshold is 320. Reported from firmware  is 320.
  Data in current interval (618 seconds elapsed):
     0 Line Code Violations, 0 Path Code Violations
     181 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
     181 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs
  Data in Interval 1:
     0 Line Code Violations, 0 Path Code Violations
     262 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
     262 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

There we see some ‘slip secs’.

The ‘fix’ is quite simple. I switched to the interface, and then issued the commands:

network-clock-participate wic 0
network-clock-select 1 E1 0/0/0

The first line selects the WIC you wish to use, then the second selects the clock source (interface) you wish to use. Once I’d done that, the faxes magically all worked again.

http://www.cisco.com/cisco/web/support/index.html – TAC case collection requires a CCO login.

Cisco Useful thing: Why isn’t this on by default?!

Wednesday, September 23rd, 2009

If you’ve ever worked on a Cisco IOS device, you’ve probably encountered the joy that is the terminal monitoring of events. IOS will happily dump bits of information onto the screen (very useful) but it’s also horribly disruptive if you’re typing in a command. Everything disappears into this sea of debug output or other info.

In my case, I often do ISDN Q.931 debugs to find out what’s going on on my voice gateways. I’ve gotten used to it now, but typing ‘undebug all’ whilst a ton of information whizzes by is less fun than it sounds.

Today, I found this useful command:

“logging synchronous”

If you enable that on your vtys or con (or aux) ports, it basically causes IOS to dump the debug still, but it’ll do it on all other lines EXCEPT the one you’re typing on, leaving it alone. I imagine it could cause some slowdowns as it has to draw your command in the same place, whilst interleaving other junk, so it could potentially cause problems on a direct console, but if you remotely telnet (I really should enable SSH one day), it’ll be a lot easier to see what’s going on.

Here’s the gist of what you need to do:

  Router(config)#line con 0
  Router(config-line)#logging synchronous
  Router(config-line)#line vty 0 4
  Router(config-line)#logging synchronous

Then wr mem as usual.

Easy!

The trick to dealing with technical support

Sunday, September 20th, 2009

It’s really rather simple:

Act dumb.

Yes really. Allow me to explain.

I browse a lot of forums, and in many cases I’ll see a barrage of people complaining about various technical support departments at ISPs, service providers, and whoever else. They’ll be wailing that they didn’t get the help they wanted, and nothing worked, and how much the support sucks, and so on.

I’ve called support for Virgin Media, Be, Zen, Orange, and various others over the years. I work in IT, and I do a lot of troubleshooting myself. I often have an idea of what the problem is, and sometimes what might need to be done to fix the issue. I could easily phone up the support line, tell them what the issue is, and demand they do what I want to fix it. I might be right – but there’s an equal chance I’m NOT right, and could send them on a wild goose chase trying to deploy the wrong fix. I don’t know their systems or their networks, so who am I to tell them what to do?

And that’s the issue most people have. They may, or may not know what needs to be done, but the service provider know their stuff better than you do, so let THEM decide what to do. Hence why I say ‘act dumb’. I had an issue with my cable modem. I phoned up, and just told them what they asked for. I did exactly what the guy on the other end told me to do. An engineer was dispatched, and the problem was fixed. Simple. Other people with similar issues (it was an attenuation issue) go through countless engineer calls, and visits, and personally I think that’s because they pre-empt things, and try and tell the support person what to do. I never do.

Yes, I could phone up and say ‘I work in IT, therefore I know what the issue is’. They probably get loads of calls like that every day. As I say, some will know what the issue is, others will only think they do.

I had issues with my ADSL flaking out (back when I was on ADSL), and I jumped through all the hoops both Zen and Be had, which included moving the router to the master socket, and running through all the tests they wanted to do. As a consequence of doing that, all the BT engineer visits I had, which led to a No Fault Found, weren’t charged to me. If you read all the paperwork, in theory I should have been charged about £75 for those visits, but I wasn’t as they were raised as per the processes BT set up for the ADSL providers. We jumped through all the right hoops, so I wasn’t liable for the costs. If I’d phoned up, told them I wasn’t going to move the router and demanded an engineer, I would have been stung. I’ve seen people do that, and wonder why they get charged.

Don’t get me wrong – there ARE plenty of ‘bad’ support lines out there, and poorly trained people manning them. They may be working to a script, but think of it this way; if you were in a play, and one person is working from a script, and you turn up and decide you don’t want to use the script, you’re going to very quickly end up in a mess. Same goes for these support lines really. Let them follow their script, and don’t pre-empt them. Let them ask the questions they have to ask (have you turned it off and on again?). If they can’t handle it, they’ll escalate it anyway. I’ve gotten in and out of support lines in no time, and had all my issues solved pretty quickly, without any shouting, swearing, or demanding to speak to their supervisor.

So remember. Just act dumb!

Cisco TSP – Wave goodbye

Tuesday, August 25th, 2009

I’ve been wrestling with the Cisco Telephony Service Provider (TSP) today. We’re doing an install of ARC console, and having set everything else up, it wouldn’t start. I traced back and found that the issue lay in the TSP module itself. ARC tell you to try a utility called TAPI Soft Phone. Every time I ran it I got a vague error about not being able to connect.

I found the TSP was actually dropping logs into C:\Temp. I found these lines:

CiscoTSP001.tsp|   CSelsiusTSPWaveList::GetAvailWave() *ERROR* No wave available|<LVL::Error><MASK::0001>
CiscoTSP001.tsp|   CSelsiusTSPDevice::OpenDevice() [ARC-SrvQueue3] *ERROR* GetAvailWave() returned WAVELIST_NOT_ASSIGNED|<LVL::Error><MASK::0001>

I was aware there was a Wave driver in there, but it supposedly gets installed when the TSP installed.

Right?

Well, it would seem not. Whether it’s meant to or not, I don’t know. I could find plenty of reference to reinstalling it, but not a lot of mention of how to install it in the first place (or reinstall it for that matter). A bit more digging, and I found this Cisco document which tells you how to install.

It mentions Windows 2000, but it’s roughly the same for 2003, which I’m using. I selected Add New Device, Game and Audio controllers, and just pointed it at the driver.

One thing that struck me is that Windows claims the driver is unsigned. I’m wondering if the TSP installer is trying to shoe-horn the unsigned driver in, failing, and just silently giving up. Like I say, that’s assuming it actually does it in the first place.

Anyway it now works. A simple thing, but it took me a while to find the root cause and fix it.

7 into 2133 does go

Friday, August 14th, 2009

I’ve been running Windows 7 on my main PC all this week, and I’ve very quickly found myself getting used to it. Even the new Start Bar is growing on me daily.

I decided today to see if my little HP 2133 netbook could take it. The HP has no optical drive, and I have no external USB drives. I had a IDE-USB converter thingy I’d used with an IDE CD drive in the past, but I’d blown the PSU on it. I needed another solution.

I’ve installed Linux from USB drives in the past, and I knew it was possible to install Windows onto HP Proliant servers using Smartstart and a USB drive. I was vaguely aware any PC could do it, you just needed a method.

A quick google turned up this blog entry:

HOWTO: Install Windows Vista from a high speed USB 2.0 Flash Drive – Windows Live.

I reasoned that Windows 7 is basically Vista so the theory was probably the same. I got my 4GB SanDisk USB drive, downloaded the Windows 7 Home Premium ISO from Technet, and started setting up the disk.

After plugging it into the netbook, I powered up, and selected it from the boot menu. Imagine my surprise when it worked! Not only that, but it booted, and installed perfectly fine. I wondered if it had done something stupid like installed the boot loader on the USB drive (had that happen before) or messed up the drive letters, but no, everything is where it should be.

What impressed me the most was that during the setup, it found my wireless controller, and set up my connection to the AP. Next it activated with Microsoft (although oddly told me it had expired, and must be activated), and I was in. Windows Update was already showing activity so I had a look and found all the other drivers waiting to be installed. Once they had installed and rebooted, I have a fully set up Netbook!

The start bar looks like it could be very useable on the netbook, and it seems pretty nippy. I’d run XP on it before as I decided Vista was a pointless excercise. Don’t get me wrong, I rather like Vista, and had been running it for some time, but it really doesn’t get on well with low-end hardware. This little machine seems to be OK with Windows 7 however, so I’ll have to see how it goes.