Tuesday, 1 May 2012

Unified Communications Applications & VMware

Isn't it nice now that all the Cisco Unified Communications applications officially support virtualised installation on ESXi running on a Cisco UCS series server? However there's a couple of tweaks that need to be done to get the best performance out of these virtualised installs, fortunately Cisco provide instructions for both:

  1. Disable Large Receive Offload (LRO)
  2. Ensure the latest VMware tools are running
Without tweak 1 you can get poor network throughput on the virtual install, which can be a right pain for backups!

UPDATE: With the migration to Red Hed Enterprise Linux 5.0 in CUCM 8.6, disabling LRO is no longer required.

Friday, 20 April 2012

CCA Console

Ever wondered what CCA is upto? Especially as sometimes it takes ages to carry out a task!
Simply press F2 to open the console & you can see the activities it carries out behind the scenes. The screenshot below shows what's happening during installing a software pack:


Thursday, 19 April 2012

Deleting Unity Connection Locales

Unfortunately Unity Connection has suffered a number of bugs relating to locales, including:
  • Certain 8.5 versions of the UK English locale breaking the ability to leave voicemail messages
  • Some versions of 8.5 & 8.6 unable to have upgrades installed if a non-US English locale is installed
The solution to either of these problems is to remove the locale which has to be done via the CLI.
First check which locale is installed use show cuc locales:

admin:show cuc locales

Installed Locale Package    Locale
--------------------------  ------
uc-locale-en_GB-8.6.2.1-12  en-GB


Next stop the Connection Conversation Manager & Connection Mixer services via the Cisco Unity Connection Serviceability GUI. Then delete the locale with delete cuc locale:

admin:delete cuc locale en-GB

en-GB uninstalled

You can then install whatever updated locale, upgrade patch, etc. is required to resolve the locale issue.

Friday, 23 March 2012

Kludging NAT for Communications Manager SIP Trunks

Ideally when using a SIP trunk to an external provider for PSTN connectivity with Communications Manager you'd use a Unified Border Element (UBE) in media flow-through mode to handle SIP to SIP inter-working & present a single IP address for NATing on your Internet router. But what happens when the customer is too cheap to pay for a UBE? Well if the SIP trunk requires registration or the SIP headers formatting in a way the CUCM doesn't like then you're out of luck! Otherwise you can kludge an IOS router into handling the NATing to a single IP address.
The problem stems from the fact that unless you enable "MTP required" Communications Manager handles a SIP trunk like an UBE in media flow-around mode - it handles protocol inter-working but the RTP audio streams pass directly between endpoints. This means that you have to NAT port 5060 to the CUCM server for the SIP traffic, but also NAT the phone's subnet too. Even if you do enable using an MTP, with multiple servers there could be multiple MTPs with different IP addresses.
The configuration below works assuming your IP address for NAT is 1.2.3.4, the CUCM server is 10.1.1.2, the phones reside in the 10.1.1.0/24 network & the SIP trunk is 4.3.2.1:

ip inspect name FIREWALL tcp
ip inspect name FIREWALL udp
ip inspect name FIREWALL sip
!
interface FastEthernet0
 description Outside interface
 ip address 1.2.3.1 255.255.255.248
 ip access-group OUTSIDE_IN in
 ip nat outside
 ip inspect FIREWALL in
 ip inspect FIREWALL out
interface FastEthernet1
 description Inside interface
 ip address 192.168.0.1 255.255.255.0
 ip nat inside
!
ip access-list extended OUTSIDE_IN
 permit tcp host 4.3.2.1 host 1.2.3.4 eq 5060
 permit udp host 4.3.2.1 host 1.2.3.4 eq 5060
 deny   ip any any log
access-list 2 remark Voice subnet
access-list 2 permit 10.1.1.0 0.0.0.255
!
ip nat pool phones 1.2.3.4 1.2.3.4 netmask 255.255.255.252
ip nat inside source list 2 pool phones overload
ip nat inside source static udp 10.1.1.2 5060 1.2.3.4 5060 extendable


This kludge works as we've done a static port NAT to the CUCM server & allowed it in the access-list, this allows call control messages in & out. The SIP inspect punches holes in the access-list to allow the RTP inbound (outbound is allowed anyway). The SIP NAT ALG (application layer gateway) fixes the SIP headers to have the right IP addresses & port numbers. You can confirm this via show ip nat translations which shows the phone's being NATed as well as the CUCM server:

Pro Inside global   Inside local          Outside local   Outside global
udp 1.2.3.4:5060    10.1.1.2:5060         4.3.2.1:5060    4.3.2.1:5060
udp 1.2.3.4:5060    10.1.1.2:5060         ---                   ---
udp 1.2.3.4:32366   10.1.1.21:32366       4.3.2.1:30118   4.3.2.1:30118
udp 1.2.3.4:32367   10.1.1.21:32367       4.3.2.1:30119   4.3.2.1:30119
udp 1.2.3.4:26642   10.1.1.24:26642       4.3.2.1:21068   4.3.2.1:21068
udp 1.2.3.4:26643   10.1.1.24:26643       4.3.2.1:21069   4.3.2.1:21069
udp 1.2.3.4:19462   10.1.1.26:19462       4.3.2.1:31900   4.3.2.1:31900
udp 1.2.3.4:19463   10.1.1.26:19463       4.3.2.1:31901   4.3.2.1:31901
udp 1.2.3.4:29940   10.1.1.26:29940       4.3.2.1:20970   4.3.2.1:20970
udp 1.2.3.4:29941   10.1.1.26:29941       4.3.2.1:20971   4.3.2.1:20971
udp 1.2.3.4:25306   10.1.1.28:25306       4.3.2.1:25398   4.3.2.1:25398
udp 1.2.3.4:25307   10.1.1.28:25307       4.3.2.1:25399   4.3.2.1:25399

Thursday, 16 February 2012

Kludging Power over Ethernet Power Allocation

PoE capable switches keep track of the amount of power they've allocated to devices to prevent oversubscription of the power supply. PoE devices are categorised into classes of power consumption:

ClassPower allocation
015.4W (default)
14.0W
27.0W
315.4W

A PoE capable device can inform the switch via CDP or LLDP of its power class & the switch will deduct the relevant amount from its power allocation budget. You can view the switch's current power allocation via show power inline:

Available:370.0(w)  Used:115.3(w)  Remaining:254.7(w)


Interface Admin  Oper       Power   Device              Class Max
                            (Watts)                          
--------- ------ ---------- ------- ------------------- ----- ----
Gi0/1     auto   on         12.0    IP Phone 7945       3     15.4
Gi0/2     auto   off        0.0     n/a                 n/a   15.4
Gi0/3     auto   off        0.0     n/a                 n/a   15.4
Gi0/4     auto   off        0.0     n/a                 n/a   15.4
Gi0/5     auto   off        0.0     n/a                 n/a   15.4
Gi0/6     auto   off        0.0     n/a                 n/a   15.4
Gi0/7     auto   on         9.0     IP Phone SPA525G2   0     15.4
Gi0/8     auto   off        0.0     n/a                 n/a   15.4
Gi0/9     auto   off        0.0     n/a                 n/a   15.4
Gi0/10    auto   on         15.4    AIR-AP1042N-E-K9    3     15.4
Gi0/11    auto   off        0.0     n/a                 n/a   15.4
Gi0/12    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/13    auto   off        0.0     n/a                 n/a   15.4
Gi0/14    auto   off        0.0     n/a                 n/a   15.4
Gi0/15    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/16    auto   on         6.3     IP Phone 7941       2     15.4
Gi0/17    auto   on         6.3     IP Phone CP-524S    2     15.4
Gi0/18    auto   off        0.0     n/a                 n/a   15.4
Gi0/19    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/20    auto   on         6.3     IP Phone 7961       2     15.4
Gi0/21    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/22    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/23    auto   off        0.0     n/a                 n/a   15.4
Gi0/24    auto   off        0.0     n/a                 n/a   15.4

Now there's two problems, a lot of switches aren't actually able to provide the whole 15.4W to every port & a lot of devices don't actually consume as much power as their class implies they do. This means that you may encounter situations where you need to power an extra PoE device but the switch has reached its power allocation limit. Fortunately Cisco let you override the automatic power allocation value on a per interface basis, allowing you to squeeze a couple more PoE devices out of the power allocation. The command is power inline consumption:

interface GigabitEthernet0/1
 power inline consumption 4000

Now show power inline now lists interface GigabitEthernet 0/1 as using 4W. Note that the phone is still powered & using however much power it draws, changing the power allocation affects only the switch's record keeping...

Available:370.0(w)  Used:107.3(w)  Remaining:262.7(w)

Interface Admin  Oper       Power   Device              Class Max
                            (Watts)                           
--------- ------ ---------- ------- ------------------- ----- ----
Gi0/1     auto   on         4.0     Ieee PD             3     15.4
Gi0/2     auto   off        0.0     n/a                 n/a   15.4
Gi0/3     auto   off        0.0     n/a                 n/a   15.4
Gi0/4     auto   off        0.0     n/a                 n/a   15.4
Gi0/5     auto   off        0.0     n/a                 n/a   15.4
Gi0/6     auto   off        0.0     n/a                 n/a   15.4
Gi0/7     auto   on         9.0     IP Phone SPA525G2   0     15.4
Gi0/8     auto   off        0.0     n/a                 n/a   15.4
Gi0/9     auto   off        0.0     n/a                 n/a   15.4
Gi0/10    auto   on         15.4    AIR-AP1042N-E-K9    3     15.4
Gi0/11    auto   off        0.0     n/a                 n/a   15.4
Gi0/12    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/13    auto   off        0.0     n/a                 n/a   15.4
Gi0/14    auto   off        0.0     n/a                 n/a   15.4
Gi0/15    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/16    auto   on         6.3     IP Phone 7941       2     15.4
Gi0/17    auto   on         6.3     IP Phone CP-524S    2     15.4
Gi0/18    auto   off        0.0     n/a                 n/a   15.4
Gi0/19    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/20    auto   on         6.3     IP Phone 7961       2     15.4
Gi0/21    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/22    auto   on         12.0    IP Phone 7945       3     15.4
Gi0/23    auto   off        0.0     n/a                 n/a   15.4
Gi0/24    auto   off        0.0     n/a                 n/a   15.4


You can disable PoE completey via power inline never or restore automatic classification via power inline auto.

WARNING! You can cause the switch's power supply to become oversubscribed by forcing it power more devices than it can handle. This will result in brown outs where devices randomly don't receive sufficient power to function properly.

Tuesday, 24 January 2012

CME Hunt Group Final Not Being Reached

Given the following configuration, what do you think will happen when 7343 is called and no one in the hunt group answers?

ephone-dn 1 dual-line
 number 7241
 label Kathleen
 name Kathleen
 call-forward busy 5000
 call-forward noan 5000 timeout 20
 huntstop channel
ephone-dn 2 dual-line
 number 7254
 label Eleanor
 name Eleanor
 call-forward busy 5000
 call-forward noan 5000 timeout 20
 huntstop channel
ephone-dn 3 dual-line
 number 7258
 label Natasha
 name Natasha
 call-forward busy 5000
 call-forward noan 5000 timeout 20
 huntstop channel

voice hunt-group 5 parallel
 final 5000
 list 7254,7258,7241
 timeout 30
 pilot 7343


Contrary to expectations, the call doesn't get forwarded to the hunt group final number of 5000. This is becaue CME won't ever use the final number in a hunt group if the time out on the hunt group is greater than the time out defined in the ephone-dns! 

Friday, 6 January 2012

UCS C200 Series Power On After Power Failure

We recently had a power cut in the office and our UCS C210 M2 server didn't automatically power back on. Normally there's a setting in the BIOS along the lines of "After Power Failure: Power On". After trawling through every option in the BIOS I couldn't find anything relevant - it turns out the setting is actually in the CIMC.
To access the CIMC GUI you need to make sure it has been configured, you can reach the configuration settings for the CIMC when the server is powering via these steps:
  1. Press ESC to view POST messages
  2. Press F8 to enter CIMC config
Keep an eye out whilst the server powers on and press the keys at the appropriate times - it'll say on screen. You can then set an IP address, etc.
Once the server's powerd on, go to the CIMC IP address in a web browser, e.g. https://192.168.111.175. If you've not set a username and password the defaults are as follows:

Username: admin
Password: password

Select the Sever tab on the left hand side of the screen, then Power Policies and select the Power Restore Policy you want:

Click Save Changes and you're done.