Friday, December 9, 2011

MGCP VGW Configuration in CUCM

Thanks to http://blog.bradpeczka.com/ for this nice post

! Let's ensure the proper host and domain names are set
Router(config)#hostname VoiceGateway
VoiceGateway(config)#ip domain-name mydomain.com
! Enable MGCP
VoiceGateway(config)#mgcp
! Specify the IP Address of our Primary Subscriber
VoiceGateway(config)#mgcp call-agent 10.10.10.10
VoiceGateway(config)#ccm-manager mgcp
! Specify the IP Addresses of our backup CUCM Servers (Secondary Subscriber, Publisher)
VoiceGateway(config)#ccm-manager redundant-host 10.10.20.10 10.10.10.11
! Specify the TFTP Servers (used by CUCM to deploy XML Config files - most important!)
VoiceGateway(config)#ccm-manager config server 10.10.10.10 10.10.20.10 10.10.10.11
! Enable the XML Config Service
VoiceGateway(config)#ccm-manager config
! That's it!
VoiceGateway(config)#end
So now your Gateway is configured and will be polling the TFTP Servers for an XML configuration file. This file is generated once the Gateway is added in CUCM, is refreshed each time a change is made, and is pushed to the Gateway via TFTP whenever the config is applied or the Gateway is reset. To check the status of the config download, run the 'sh ccm-manager' command from the Gateway:
VoiceGateway>sh ccm-manager
MGCP Domain Name: VoiceGateway.mydomain.com
Priority        Status                   Host
============================================================
Primary         Registered               10.10.10.10
First Backup    Backup Ready             10.10.20.10
Second Backup   Backup Ready             10.10.10.11

Current active Call Manager:    10.10.10.10
Backhaul/Redundant link port:   2428
Failover Interval:              30 seconds
Keepalive Interval:             15 seconds
Last keepalive sent:            05:48:52 UTC Sep 20 2010 (elapsed time: 00:00:13)
Last MGCP traffic time:         05:48:52 UTC Sep 20 2010 (elapsed time: 00:00:13)
Last failover time:             11:50:58 UTC Sep 2 2010 from (10.10.10.10)
Last switchback time:           12:13:50 UTC Sep 2 2010 from (10.10.20.10)
Switchback mode:                Graceful
MGCP Fallback mode:             Enabled/OFF
Last MGCP Fallback start time:  10:10:28 UTC Sep 2 2010
Last MGCP Fallback end time:    11:51:15 UTC Sep 2 2010
MGCP Download Tones:            Disabled
TFTP retry count to shut Ports: 2

Backhaul Link info:
    Link Protocol:      TCP
    Remote Port Number: 2428
    Remote IP Address:  10.10.10.10
    Current Link State: OPEN
    Statistics:
        Packets recvd:   7382
        Recv failures:   0
        Packets xmitted: 6512
        Xmit failures:   0
    PRI Ports being backhauled:
        Slot 0, VIC 1, port 0
Configuration Auto-Download Information
=======================================
Current version-id: 1284616589-a3cd44fe-86bb-486f-a62e-a78bf2a71840
Last config-downloaded:00:00:00
Current state: Waiting for commands
Configuration Download statistics:
        Download Attempted             : 11
          Download Successful          : 11
          Download Failed              : 0
          TFTP Download Failed         : 0
        Configuration Attempted        : 6
          Configuration Successful     : 1
          Configuration Failed(Parsing): 0
          Configuration Failed(config) : 5
Last config download command: New Registration
FAX mode: cisco
Configuration Error History:
ccm-manager music-on-hold
end
Take note of the error count shown above. This Gateway had been configured beforehand, and started generating errors when attempting to download the XML Config. It turned out that the router already had the 'ccm-manager music-on-hold' statement applied, and so running a 'no ccm-manager music-on-hold' command was all it needed to complete a successful download.
Finally, another tip most people forget is that the MGCP Domain Name must match the Gateway Domain Name as configured in CUCM - if it's not the same, the Gateway won't register. Just a little thing to keep in the back of your mind as you're configuring your Gateways... good luck! :-)

Read the rest of this entry...

Bookmark and Share My Zimbio http://www.wikio.com

Thursday, November 26, 2009

Solaris Jumpstart Howto

Here's a procedure in makig a Solaris jumpstart server.

# mkdir /jumpstart/image
# mkdir /jumpstart/config
# mkdir /jumpstart/share

# lofiadm -a /var/tmp/Solaris10_u5_1108.iso
/dev/lofi/1
# lofiadm /dev/lofi/1
/var/tmp/Solaris10_u5_1108.iso

# svcadm disable volfs
# mkdir -p /cdrom/cdrom0

# mount -F hsfs -o ro /dev/lofi/1 /cdrom/cdrom0

# cd /cdrom/cdrom0/Solaris_10/Tools
# ./setup_install_server /jumpstart/image
Verifying target directory...
Calculating the required disk space for the Solaris_11 product
... output skipped ...

# cd /
# umount /cdrom/cdrom0
# lofiadm -d /dev/lofi/1
# lofiadm
Block Device File

# cd /jumpstart/image/Solaris_10/Misc/jumpstart_sample
# cp ./check /jumpstart/config

# cp /etc/dfs/dfstab /etc/dfs/dfstab.org

# vi /etc/dfs/dfstab
+-------------------
| share -F nfs -o ro,anon=0 /jumpstart/config
| share -F nfs -o ro,anon=0 /jumpstart/image
| share -F nfs -o ro,anon=0 /jumpstart/share

# vi /etc/dfs/dfstab
+-------------------
| share -F nfs -o ro,anon=0 /jumpstart

# svcadm enable nfs/server
# shareall

# vi /jumpstart/config/sysidcfg
+------------------------------
| system_locale=en_US
| timezone=MET
| name_service=NONE
| terminal=dtterm
| timeserver=localhost
| root_password="WybF.D5GwZnz2"
| network_interface=primary { netmask=255.0.0.0 protocol_ipv6=no
default_route=127.0.0.1}
| security_policy=NONE
| nfs4_domain=dynamic

# vi /jumpstart/config/sun4u_profile
+-----------------------------------
| install_type initial_install
| system_type standalone
| partitioning explicit
| filesys any 1024 /
| filesys any 1024 /usr
| filesys any 1024 /var
| filesys any 1024 /opt
| filesys any 1024 /export/home
| filesys any 256 swap
| cluster SUNWCreq
| package SUNWman
| package SUNWbash
| package SUNWless

# cd /jumpstart/config
# vi ./rules
+-----------
| karch sun4u - sun4u_profile -

# ./check

# vi /etc/hosts
+--------------
| 10.0.0.2 pino

# cd /jumpstart/image/Solaris_10/Tools
# ./add_install_client \
> -e 8:0:20:0:0:02 \
> -i 10.0.0.2 \
> -s tommie:/jumpstart/image \
> -c tommie:/jumpstart/config \
> -p tommie:/jumpstart/config \
> pino \
> sun4u

# svcadm enable rarp

# inetconv

# init 0
ok boot net - install

Create a finish script

# vi /jumpstart/config/sun4u_after
+---------------------------------
| {
| mkdir /a/server
| mount -F nfs -o ro 10.0.0.1:/jumpstart/share /a/server
|
| cp /a/server/crontab.root /a/var/spool/cron/crontabs/root
| cp /a/server/hosts.header /a/hosts
|
| HOSTNAME=`cat /etc/nodename`
| regel=`grep $HOSTNAME /a/server/hosts.org`
| echo "$regel loghost ." >> /a/hosts
| grep -v $HOSTNAME /a/server/hosts.org >> /a/hosts
|
| mv /a/hosts /a/etc/hosts
| | umount /a/server
| rmdir /a/server
|
| touch /a/noautoshutdown
| touch /a/etc/.NFS4inst_state.domain
| } > /a/server.log 2> /a/server.errlog

# vi /jumpstart/share/hosts.header
+---------------------------------
| #
| # Internet host table
| #

# vi /jumpstart/share/hosts.org
+------------------------------
| 10.0.0.1 tommie
| 10.0.0.2 pino # crontab -l > /jumpstart/share/crontab.root

Update the rules file

# vi rules
+-----------
| karch sun4u - sun4u_profile sun4u_after

# ./check

Read the rest of this entry...

Bookmark and Share My Zimbio http://www.wikio.com