Monday 6 December 2010

Useful Cisco Links

Useful Cisco links...

Easy place to keep them so I don't forget and maybe helpful for others...


http://www.cisco.com/en/US/docs/ios/12_3t/12_3t14/feature/guide/gtpsscer.html#wp1027265

Generate self sign cert for http secure-server trustpoint.

Monday 15 November 2010

Linux keyboard madness

This happens to me every so often so it I put it here I'll know where it is...

Something changes on the box and I can't type ', ", ` etc. I type ' twice and get
´ and other accents on characters.

Just seems to be /etc/X11/xorg.conf having

Option "XkbVariant" "intl"

Under the keyboard input device. Remove that and it works as normal...



Saturday 2 October 2010

Epiphany opening pages twice on crash recovery

I have this happen all the time and it really annoys me but found an easy fix this morning.

Typically I log in and every time I log in I get a dialog Ephiphany crashed do you want to recover or cancel. You click recover and every window that was open is now duplicated.

Just by chance this morning I closed the dialog. Not cancelled but 'X'ed it and I got one copy of all my windows from last time.

Give it a whirl.

Saturday 11 September 2010

Bring back the nice English lady on the UC500..

I use a UC500 for our phone system and recently upgraded to the 8.04 software pack with Cisco Unity Express (CUE) 8.0.2 voicemail. It looks a lot nicer and has some cool new features but I couldn't get my favourite prompts back. The nice English lady has a wonderful voice :-)

So I sat down this morning and kept at it until I got her back. Not that hard really... Here we go:

Ingredients:

Take one UC520-8.0.4.zip file
one language file. I used cue-vm-en_GB-langpack.uc500.8.0.2.prt1 but any language to your liking.
one ftp server
and a UC520.

Separate the UC520-8.0.4.zip file: Unzip it and there should be file named SCUE-UC500-8.0.2.zip. Unzip that one and look for a file named cue-vm-langpack.uc500.8.0.2.pkg. Take this file and the language file and put them on an ftp server (anonymous or not.) I'm Mac based so that's just there but everyone has a FTP server they can use on their OS.

I'm assuming defaults here so you may need to vary things.

Telnet to 10.1.10.1 port 2002 which makes a session to the CUE module. Login to that with your normal login or cisco/cisco if that doesn't work.

telnet 10.1.10.1 2002

Now we're into the good stuff...

software install add url ftp://ftpserver/cue-vm-langpack.uc500.8.0.2.pkg (optionally add username nick password password if your server requires it.)

It will come back with

WARNING:: This command will install the necessary software to
WARNING:: complete an add-on install. It is recommended that a backup be done
WARNING:: before installing software.

Would you like to continue?[confirm]

Say y to this. It will download the package and verify it. This can take a while.

It should show you this menu...

Running Script Processor for ui_install

Language add-ons found on the system (1):

Installed SKU Name (version)
------------------------------------------------------------------
* ENU CUE Voicemail US English (8.0.2)

Maximum 2 language add-ons allowed for this platform.
You may install 1 more language(s) from the following list:
Please select language(s) to install from the following list:

Language Installation Menu:

# Selected SKU Language Name (version)
----------------------------------------------------------------------
1 ITA CUE Voicemail Italian (8.0.2)
2 ESP CUE Voicemail European Spanish (8.0.2)
3 FRA CUE Voicemail European French (8.0.2)
4 ESO CUE Voicemail Latin American Spanish (8.0.2)
5 ESM CUE Voicemail Mexican Spanish (8.0.2)
6 ARA CUE Voicemail Arabic (8.0.2)
7 NLD CUE Voicemail Dutch (8.0.2)
8 SVE CUE Voicemail Swedish (8.0.2)
9 NOR CUE Voicemail Norwegian (8.0.2)
10 FRC CUE Voicemail Canadian French (8.0.2)
11 PTG CUE Voicemail Portuguese (8.0.2)
12 TUR CUE Voicemail Turkish (8.0.2)
13 HUN CUE Voicemail Hungarian (8.0.2)
14 ENG CUE Voicemail UK English (8.0.2)
15 DAN CUE Voicemail Danish (8.0.2)
16 PTB CUE Voicemail Brazilian Portuguese (8.0.2)
17 DEU CUE Voicemail German (8.0.2)
18 KOR CUE Voicemail Korean (8.0.2)
19 CHS CUE Voicemail Mandarin Chinese (8.0.2)
20 JPN CUE Voicemail Japanese (8.0.2)
21 RUS CUE Voicemail Russian (8.0.2)
----------------------------------------------------------------------

Available commands are:
# - enter the number for the language to select one
r # - remove the language for given #
i # - more information about the language for given #
x - Done with language selection

Enter Command:

type 14 (or whichever you want) and an asterisk should appear next to it.

14 * ENG CUE Voicemail UK English (8.0.2)

Then enter x to continue.

It will download the prompts file, install it and reload. This takes a while and a few times looks like it has failed but just wait. It's quite interesting to watch the module restart. It's basically a 2.4 kernel linux box.

Once it comes up with the host name or ip followed by hash you should be back up and running. One last command to switch the preferred language to UK. You can do this in the web interface but this is faster:

SYSTEM ONLINE
10.1.10.1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
10.1.10.1(config)# system language preferred "en_GB"


Dial your voicemail or autoattendant and your should have that nice lady back.




Monday 2 August 2010

Site to site VPN Cisco and Fortinet

This may save someone some time...

I was setting up a Cisco <-> Fortinet VPN using interface mode on the Fortinet, IPSEC protected GRE tunnel in Cisco's world.

I could not get it to fully come up. Phase 1 was fine but no luck with phase 2. The Cisco debug showed proposal did not match but they did! I promise :-)

Turns out my mistake was using AES and SHA. Well in fact after more trial, anything but 3DES and MD5 will fail. Even DES and MD5! So, there seems to be something screwy in the phase two exchange. I think this may be on the Cisco side as it does complain about proposals not matching even though the profile clearly does.

OK so I was using v3 mr7 of the Fortinet software and 12.3 of the Cisco IOS so it wasn't the newest but that is just crazy talk

Later: got it. The tunnel command protection profile doesn't seem to choose the transformation set like you'd expect. So it was falling back to the transform set in the last ipsec policy which was the VPN client users and this was 3DES/MD5.

Monday 19 April 2010

Migrate VMWare to VirtualBox

I tried VirtualBox a while back and it just worked. Stuff installed, networking worked, sound worked. I had been using VMPlayer and VMWare server but had problems with kernel module version, audio only working periodically and the final straw was when server crashed every time you started a VM, having said that VMPlayer 3 looks like a whole lot more fun.

However you can pick up your VMWare .vdk files and use them in VirtualBox. Easy..

Fire up VirtualBox. Go into the Virtual Media Manager and choose add and find your .vdk file.

Create a new machine and go through the wizard and choose the VMWare disk on the way. Here's the key bit, if you have a windows guest make sure you turn on Enable IO APIC in the System tab of the settings or your windows guest won't start. "Real" OSes seem to be OK ie my CentOS VM just worked.. The other sticky one is sometimes you need to go into the Storage tab and change the IDE controller type to PIIX3 for older windows guests. It's also worth giving the guests 32MB video memory or so and turning on 2D and 3D acceleration (through only for windows guests)

Otherwise your VMWare guest should just work.


Monday 12 April 2010

trackerd using almost 100% CPU

Got a problem with trackerd using lots of CPU?

I had tracker-store using almost 100% CPU and it never stopped. Everything was indexed and it should have stopped but it just kept using as much as it could get of one CPU.

Weird fix: adjust the disk space up. Maybe it was running out of space but once I bumped it up and all of a sudden the CPU dropped.

Gentoo grub-probe not working

 I have a bunch of history commands I run when I d a new kernel etc and one stopped working. grub-mkconfig would fail with grub-probe for /....