 




<?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/"
	>

<channel>
	<title>Network technologies and trends &#187; How to configure the System prompt in a Cisco Router or a Cisco Switch</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/network-technologies/tag/how-to-configure-the-system-prompt-in-a-cisco-router-or-a-cisco-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/network-technologies</link>
	<description></description>
	<lastBuildDate>Wed, 15 May 2013 18:52:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to configure the System prompt in a Cisco Router or a Cisco Switch?</title>
		<link>http://itknowledgeexchange.techtarget.com/network-technologies/how-to-configure-the-system-prompt-in-a-cisco-router-or-a-cisco-switch/</link>
		<comments>http://itknowledgeexchange.techtarget.com/network-technologies/how-to-configure-the-system-prompt-in-a-cisco-router-or-a-cisco-switch/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 11:36:37 +0000</pubDate>
		<dc:creator>Yasir Irfan</dc:creator>
				<category><![CDATA[%h:%n%p]]></category>
		<category><![CDATA[active telnet sessions]]></category>
		<category><![CDATA[Cisco Device]]></category>
		<category><![CDATA[Cisco Hostname]]></category>
		<category><![CDATA[Cisco Router]]></category>
		<category><![CDATA[Cisco Router tips]]></category>
		<category><![CDATA[Cisco Switches]]></category>
		<category><![CDATA[Cisco Tips]]></category>
		<category><![CDATA[config t]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[How to configure the System prompt in a Cisco Router or a Cisco Switch]]></category>
		<category><![CDATA[Network Technologies and Trends]]></category>
		<category><![CDATA[Network Tips]]></category>
		<category><![CDATA[no prompt]]></category>
		<category><![CDATA[System prompt]]></category>
		<category><![CDATA[Telnet]]></category>
		<category><![CDATA[TTY]]></category>
		<category><![CDATA[VTY]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/network-technologies/?p=639</guid>
		<description><![CDATA[  There is a cool handy way to know TTY sessions established in any Cisco Router or a Cisco Switch. By using this feature you can know the number of active telnet sessions from the prompt itself. Normally whenever you log to any Cisco Router or Switch you will find this menu ITKE-AS01#   By using [...]]]></description>
				<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 10pt"> </p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">There is a cool handy way to know TTY sessions established in any Cisco Router or a Cisco Switch. By using this feature you can know the number of active telnet sessions from the prompt itself.</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">Normally whenever you log to any Cisco Router or Switch you will find this menu</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01# </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="font-family: Calibri"><span style="font-size: small"><span style="color: black">By using the </span><span style="color: #632423">“prompt”</span><span style="color: black"> command you can see the difference</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">You might be wondering how come this is possible, ok now let me show you how to enable this feature in a Cisco Router or a Cisco Switch,</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">Log in to your Cisco Device and use the following command <span style="color: #632423">&#8220;prompt %h:%n%p&#8221;</span></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: black"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01#config t</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01 (config)# prompt %h:%n%p<br />
ITKE-AS01 (config)# exit</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="color: black"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="color: black"><span style="font-family: Calibri"><span style="font-size: small">In the example I have used three escape sequences to set the prompt name to the hostname (%h), followed by the command number (%n) and then followed by the appropriate prompt character for the current command mode (%p). </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span style="font-family: Calibri"><span style="font-size: small"><span style="color: black">You can see the difference in the hostname after applying the </span><span style="color: #632423">“prompt %h:%n%p” </span><span style="color: black">command.</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:1#sho users </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>    </span>Line<span>       </span>User<span>       </span>Host(s)<span>           </span><span>   </span>Idle<span>       </span>Location</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">*<span>  </span>1 vty 0<span>     </span>yasir<span>      </span>idle<span>                 </span>00:00:00 10.0.0.5</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>  </span>Interface<span>      </span>User<span>        </span>Mode<span>                     </span>Idle<span>     </span>Peer Address</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:1#</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span><span style="font-family: Calibri"><span style="font-size: small"><span> </span></span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span><span style="font-family: Calibri"><span style="font-size: small">As the number of TTY session increases you can see the incremental change in the hostname with the sequence number as displayed below.</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span><span style="font-family: Calibri"><span style="font-size: small">Example with two TTY sessions </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:2#sho users </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>    </span>Line<span>       </span>User<span>       </span>Host(s)<span>              </span>Idle<span>       </span>Location</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>1 vty 0<span>     </span>yasir<span>      </span>idle<span>                 </span>00:00:23 10.0.0.5</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">*<span>  </span>2 vty 1<span>     </span>itkeuser<span>      </span>idle<span>                 </span>00:00:00 10.0.0.5</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>  </span>Interface<span>      </span>User<span>        </span>Mode<span>        </span><span>             </span>Idle<span>     </span>Peer Address</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:2#</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span><span style="font-family: Calibri"><span style="font-size: small">Example with three TTY sessions </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:3#sho users </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>    </span>Line<span>       </span>User<span>       </span>Host(s)<span>              </span>Idle<span>       </span>Location</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>1 vty 0<span>     </span>yasir<span>      </span>idle<span>                 </span>00:01:14 10.0.0.5</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>2 vty 1<span>     </span>itkeuser<span>      </span>idle<span>     </span><span>      </span>00:00:50 10.0.0.6</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">*<span>  </span>3 vty 2<span>     </span>itkeadmin<span>   </span>idle<span>         </span>00:00:00 10.0.0.7</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>  </span>Interface<span>      </span>User<span>        </span>Mode<span>                     </span>Idle<span>     </span>Peer Address</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:3#</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt"><span><span style="font-family: Calibri"><span style="font-size: small">Example with four TTY sessions </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:4#sho users </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>    </span>Line<span>       </span>User<span>       </span>Host(s)<span>              </span>Idle<span>       </span>Location</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>1 vty 0<span>     </span>yasir<span>      </span>idle<span>                 </span>00:01:43 10.0.0.5</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>2 vty 1<span>     </span>itkeuser<span>      </span>idle<span>  </span><span>          </span>00:01:20 10.0.0.6</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>   </span>3 vty 2<span>     </span>itkeadmin <span> </span><span> </span>idle<span>           </span><span> </span>00:00:29 10.0.0.7</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">*<span>  </span>4 vty 3<span>     </span>yasir<span>      </span>idle<span>                 </span>00:00:00 10.0.0.5</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small"><span>  </span>Interface<span>      </span>User<span>        </span>Mode<span>                     </span>Idle<span>     </span>Peer Address</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri"><span style="font-size: small">ITKE-AS01:4#</span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span style="font-size: small"><strong><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;color;font-weight: normal">I you want to disable the TTY display enter the </span></strong><strong><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;color;font-weight: normal">“no prompt”</span></strong><strong><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;color;font-weight: normal"> command as shown below.</span></strong></span><strong><span style="color: #444444"><br />
</span></strong><span style="color: #632423"><span style="font-size: small"><span style="font-family: Calibri">ITKE-AS01:4#<span class="apple-style-span">config t</span><br />
ITKE-AS01:4<span class="apple-style-span"> (config)# no prompt</span></span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span class="apple-style-span"><span style="color: #632423"><span style="font-family: Calibri;font-size: small"> </span></span></span></p>
<p class="MsoNoSpacing" style="margin: 0in 0in 0pt"><span><span style="font-size: small"><span style="font-family: Calibri">Following are the prompt Variables available for the “prompt” command.</span></span></span></p>
<p><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/58/files/2009/11/system-prompt1.png"><img class="alignnone size-medium wp-image-638" src="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/58/files/2009/11/system-prompt1.png" alt="" width="445" height="179" /></a><a href="http://cdn.ttgtmedia.com/ITKE/uploads/blogs.dir/58/files/2009/11/system-prompt.png"></a></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/network-technologies/how-to-configure-the-system-prompt-in-a-cisco-router-or-a-cisco-switch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
