<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Pushkar bhatkoti's blog........... &#187; How to check DHCP lease on CCM6x</title>
	<atom:link href="http://pushkarbhatkoti.wordpress.com/category/ccm-5x-6x-7x-stuffs/how-to-check-dhcp-lease-on-ccm6x/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushkarbhatkoti.wordpress.com</link>
	<description>Just another CCIE voice certified person's blog....</description>
	<lastBuildDate>Mon, 07 Sep 2009 15:06:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='pushkarbhatkoti.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/6d139ceb5b354b59d6e3f1222585db12?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Pushkar bhatkoti's blog........... &#187; How to check DHCP lease on CCM6x</title>
		<link>http://pushkarbhatkoti.wordpress.com</link>
	</image>
			<item>
		<title>How to check Call manager 6x / 5x / 7x DHCP lease</title>
		<link>http://pushkarbhatkoti.wordpress.com/2009/02/16/how-to-check-call-manager-6x-5x-7x-dhcp-lease/</link>
		<comments>http://pushkarbhatkoti.wordpress.com/2009/02/16/how-to-check-call-manager-6x-5x-7x-dhcp-lease/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 09:39:40 +0000</pubDate>
		<dc:creator>pushkarbhatkoti</dc:creator>
				<category><![CDATA[CCM 5x 6x 7x stuffs]]></category>
		<category><![CDATA[How to check DHCP lease on CCM6x]]></category>
		<category><![CDATA[CCM6x DHCP lease]]></category>
		<category><![CDATA[how to check dhcp lease on CCM 5x 6x 7x]]></category>

		<guid isPermaLink="false">http://pushkarbhatkoti.wordpress.com/?p=197</guid>
		<description><![CDATA[How to check DHCP leases status on cisco CCM 6x
Cisco CCM 5/6/7x still have built-in DHCP server.
Cisco call manager : Obviously, this is a big enterprise level IPTELEPHONY product which really &#8220;WORKS&#8221;. No product is perfect as every product has its cavete and room for improvement.
One of the issue I came across was the issue [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushkarbhatkoti.wordpress.com&blog=4335568&post=197&subd=pushkarbhatkoti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2><span style="color:#0000ff;"><span style="text-decoration:underline;">How to check DHCP leases status on cisco CCM 6x</span></span></h2>
<p>Cisco CCM 5/6/7x still have built-in DHCP server.</p>
<p>Cisco call manager : Obviously, this is a big enterprise level IPTELEPHONY product which really &#8220;WORKS&#8221;. No product is perfect as every product has its cavete and room for improvement.</p>
<p>One of the issue I came across was the issue with &#8220;How to check&#8221; what address is allocated to which IP phone.<br />
It was long due in my TODO list but I have been flat out recently at work and didn&#8217;t have time to do blog:</p>
<p>Today I just got home and as usual I  was checking my personal email and found an email message from a guy who came through google and hit my  blog asking for the same thing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks Leonardo for reminding this.</p>
<div class="gmail_quote">On Mon, Feb 16, 2009 at 5:11 AM, Leonardo D&#8217;Urso <span dir="ltr">&lt;l.durso@gmail.com&gt;</span> wrote:</p>
<blockquote class="gmail_quote"><p>hi Pushkar</p>
<p>I am an entusiastic reader of your blog, it&#8217;s great. I work with cisco ipt since 2002.<br />
I have a question for you. Have you ever configured a dhcp service directly on ccm 6.x?</p>
<p>Any idea if it is possible to display via CLI the dhcp leases or scope like in microsoft dhcp server or<br />
like on cisco equipment (for ex. ios: show ip dhcp bindings)?</p>
<p>kind regards<br />
Leonardo<span style="color:#888888;"><br />
&#8211;<br />
Leonardo D&#8217;Urso<br />
</span></p></blockquote>
</div>
<p>After reading above request, I decided to flock through the CCM and cross this off my &#8220;todo list&#8221;</p>
<p>In the past, so far I have done 12-16 call manages 5/6x installation but most of the customer were using their dedicated DHCP and a few of them were using Call manager&#8217;s built-in DHCP server. Back to CCM 4x days, Cisco used to use Microsoft DHCP server (WIN3k or WIN2k) which was full flag and can tell who have what Address at any given time.</p>
<p>In CCM 5/6/7x there is no easy way to check the DHCP lease(es) allocated to IP phones by the DHCP server.</p>
<p>CCM new boxes are Linux based and the DHCP server implementation is also opensources software.</p>
<p>It&#8217;s basically opensource DHCPD daemon (/etc/dhcpd.conf style) which is good and stable but what a shame, this BIG commercial product and it doesn&#8217;t give us a GUI or CLI interface to see what address are leased!<br />
I believe Cisco will give it a go and improve it in the future.</p>
<p>For the time being, here is my workaround to find out the leases (not easy method though as i said above).</p>
<p>There is also some other method to know the status of DHCP leases in cisco CCM DHCP server</p>
<p>Basic information can be collected via SNMP or Syslog server:<br />
- CCM sends DHCP alarm/trap alerts to a SNMP platfarm (HPopenview, Ciscoworks etc)<br />
- CCM also sends same alarms/alerts to a preconfigured Syslog server.</p>
<p>Above information are very basic and that still doesnt&#8217; really tells the status of the leases. Its noticeble and I have observed that the SNMP/SYSLOG alert only triggers  when there is something reallly wrong with DHCPD. For example DHCP pool gets full or there are no IP addresses to allocate to DHCP clients.</p>
<p>Above methods are useless as nobody will wait when there is really problem. Everyone want to see the leases when they want and when they feel. Just think about  stressing alert telling &#8220;Hey bobby the DHCP server has no IP address&#8221;<br />
was sent to you when you were in a night club.</p>
<p>Another way to see the lease alerts could be RTMT tool. but it still doesn&#8217;t do the good job. My method 100% shows DHCP leases. Its a bit hard work but really works.</p>
<p>Here is my method which really works, just need to get the root access to the box. To get access to root shell you have 2 ways:</p>
<p>1. Create a remote account from &#8220;disk recovery&#8221; menu and ask TAC to provide you password.</p>
<p>2. Risky method: the following steps detail the process on how GRUB is reinstalled on the master boot record:</p>
<ul>
<li>Boot the system from an installation boot medium.</li>
<li>Type <tt class="command">linux rescue</tt> at the installation boot prompt to enter the rescue environment.</li>
<li>Type <tt class="command">chroot /mnt/sysimage</tt> to mount the root partition.</li>
<li>Then create username as u create in regular LINUX. &#8216;useradd&#8217; passwd</li>
<li>edit /etc/passwd file and set created users userID and GUID to 0:0</li>
<li>note: 0:0 is for root</li>
<li>after that u can simply ssh it using putty.exe or ssh user@ipaddresofccm</li>
</ul>
<p>Once you got access to CCM root have a look at this file:</p>
<p>cat /etc/dhcp3/dhcp.conf &lt;&#8212;&#8212;&#8212;-this is the main DHCPD config file</p>
<p>Here in that file you will not see anything about where lease file will be pointing to. This is by default pointed to</p>
<p>Now create a file which is visible through the operating system CLI (damn CLI).</p>
<p>type touch /common/download/dhcpleases.hehe</p>
<p>now link default dhcpleases.hehe file to dhcpd.lease file which is in /var/lib/dhcp/dhcpd.leases. /var/lib/dhcp/dhcpd.leases is the default file where DHCPD daemon writes all leaes status.</p>
<p>alternately if you are conforteble with Linux u can just simply do this:</p>
<p>Edit the /etc/dhcpd.conf file and just add this line:</p>
<p>lease-file-name &#8220;/common/download/dhcpd.leases&#8221;</p>
<p>Restart the DHCP daemonn by issueing &#8217;service dhcpd restart or service dhcp3-server restart&#8217;</p>
<p>It will write all status of dhcp leases to /common/download/dhcp.leases file.</p>
<p>Now jump on your CCM friendly (heydid i say friendly?) GUI and download the dhcpdlease.hehe file and u can see who have what leases. So thats all about it.</p>
<p>Those brainless programmers did not think about doing this little job from Administrator point of view. I know there is a RTMT tool but it would be nice to see it somewhere on the GUI.</p>
<p><span style="color:#0000ff;"><strong>Another tip on DHCP server:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</strong></span></p>
<p>How to make sure that whatever is configured via CCM GUI under DHCP server is 100% correct and working?<br />
Yes you can confirm this using SQL query commands:</p>
<h3><span style="color:#ff0000;">STEP#1:</span> Login using ssh to the CCM server</h3>
<h3><span style="color:#ff0000;">STEP#2</span>:<br />
- To check DHCP servers: issue &#8220;run sql select * from dhcpserver&#8221;</h3>
<h3>- To check DHCP scopes: issue &#8220;run sql select * from dhcpsubnet&#8221;</h3>
<p><img src="///tmp/moz-screenshot-1.jpg" alt="" /><img src="///tmp/moz-screenshot-2.jpg" alt="" /><img src="///tmp/moz-screenshot-3.jpg" alt="" /></p>
<p><img src="///tmp/moz-screenshot.jpg" alt="" /><br />
Good luck and happy learning&#8230;</p>
<p>PS: if you found this article useful, don&#8217;t forget to send me a postcard!! hehe..</p>
<p>CCIE voice#21569</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pushkarbhatkoti.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pushkarbhatkoti.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pushkarbhatkoti.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pushkarbhatkoti.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pushkarbhatkoti.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pushkarbhatkoti.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pushkarbhatkoti.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pushkarbhatkoti.wordpress.com/197/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pushkarbhatkoti.wordpress.com/197/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pushkarbhatkoti.wordpress.com/197/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=pushkarbhatkoti.wordpress.com&blog=4335568&post=197&subd=pushkarbhatkoti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://pushkarbhatkoti.wordpress.com/2009/02/16/how-to-check-call-manager-6x-5x-7x-dhcp-lease/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/89c6928aa356ad85cfc4a6752fea7f09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">pushkarbhatkoti</media:title>
		</media:content>

		<media:content url="///tmp/moz-screenshot-1.jpg" medium="image" />

		<media:content url="///tmp/moz-screenshot-2.jpg" medium="image" />

		<media:content url="///tmp/moz-screenshot-3.jpg" medium="image" />

		<media:content url="///tmp/moz-screenshot.jpg" medium="image" />
	</item>
	</channel>
</rss>