<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Terminal Server - Tag - Fryguy's Blog</title><link>https://hugo.fryguy.net/tags/terminal-server/</link><description>Terminal Server - Tag - Fryguy's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 06 Jul 2010 20:41:46 +0000</lastBuildDate><atom:link href="https://hugo.fryguy.net/tags/terminal-server/" rel="self" type="application/rss+xml"/><item><title>Console Server Configuration using Menu's</title><link>https://hugo.fryguy.net/2010/07/06/console-server-configuration/</link><pubDate>Tue, 06 Jul 2010 20:41:46 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2010/07/06/console-server-configuration/</guid><description><![CDATA[<p>I know that there are quite a few how-to’s for configuring your Cisco Console server, but I figured I would throw my hat in the ring and add a twist.  You see, when I connect to my console server I am presented with a MENU, and from there I can select the device that I want to connect to.  Now normally you would not use this, but when you want to share your rack with others – a menu makes it easier for them to connect to the devices without knowing what is where and what it is called.<br>
Here is the menu that I am presented with when I connect to the console server:<br>
<strong>_*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>***<br>
**     Cisco :: Terminal Server for Access to CCIE SP Lab      **<br>
*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong><em>**<br>
**</em>[1]        Connect to R1                                                             [10] Connect to FR<br>
[2]        Connect to R2                                                            [11] Connect to ATM<br>
[3]        Connect to R3                                                            [12] Connect to BB1<br>
[4]        Connect to R4                                                            [13] Connect to BB2<br>
[5]        Connect to R5                                                            [14] Connect to BB3<br>
[6]        Connect to R6<br>
[7]        Connect to R7<br>
[8]        Connect to R8<br>
[9]        Connect to R9                                                            [99] Exit to CLI<br>
_**<br>
<strong><em>Selection:</em></strong><br>
In order to configure this, here is what you have to do!<br>
1.  Create a loopback address with an arbitrary IP address – Here I am using 1.1.1.1/32<br>
<em>interface Loopback0<br>
ip address 1.1.1.1 255.255.255.255</em><br>
2. Create host entries for each device that is connected to your console server.<br>
To break down the first-line, <em>2033</em> is the port on the console server and _1.1.1.1 i_s the loopback IP address of the console server<br>
_<em><em>ip host R1 2033 1.1.1.1<br>
ip host R2 2034 1.1.1.1<br>
ip host R3 2035 1.1.1.1<br>
ip host R4 2036 1.1.1.1<br>
ip host R5 2037 1.1.1.1<br>
ip host R6 2038 1.1.1.1<br>
ip host R7 2039 1.1.1.1<br>
ip host R8 2040 1.1.1.1<br>
ip host R9 2041 1.1.1.1<br>
ip host BB1 2042 1.1.1.1<br>
ip host BB2 2043 1.1.1.1<br>
ip host BB3 2044 1.1.1.1<br>
ip host FR 2062 1.1.1.1<br>
ip host ATM 2063 1.1.1.1</em><br>
3.  Create the menu commands – here the menu is called <strong>CONSOLE<br>
**<br>
<em>menu CONSOLE command 1 resume R1 /connect telnet R1<br>
menu CONSOLE command 2 resume R2 /connect telnet R2<br>
menu CONSOLE command 3 resume R3 /connect telnet R3<br>
menu CONSOLE command 4 resume R4 /connect telnet R4<br>
menu CONSOLE command 5 resume R5 /connect telnet R5<br>
menu CONSOLE command 6 resume R6 /connect telnet R6<br>
menu CONSOLE command 7 resume R7 /connect telnet R7<br>
menu CONSOLE command 8 resume R8 /connect telnet R8<br>
menu CONSOLE command 9 resume R9 /connect telnet R9<br>
menu CONSOLE command 10 resume FR /connect telnet FR<br>
menu CONSOLE command 11 resume ATM /connect telnet ATM<br>
menu CONSOLE command 12 resume BB1 /connect telnet BB1<br>
menu CONSOLE command 13 resume BB2 /connect telnet BB2<br>
menu CONSOLE command 14 resume BB3 /connect telnet BB3<br>
menu CONSOLE command 99 menu-exit</em><br>
4.  Create the menu title and text:<br>
_menu CONSOLE title %<br>
*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>***</em><br>
_**          Cisco :: Terminal Server for Access to CCIE SP Lab             **<br>
*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong>*<strong>*</strong><br>
%<br>
menu CONSOLE text [1] Connect to R1                [10] Connect to FR<br>
menu CONSOLE text [2] Connect to R2                [11] Connect to ATM<br>
menu CONSOLE text [3] Connect to R3                [12] Connect to BB1<br>
menu CONSOLE text [4] Connect to R4                [13] Connect to BB2<br>
menu CONSOLE text [5] Connect to R5                [14] Connect to BB3<br>
menu CONSOLE text [6] Connect to R6<br>
menu CONSOLE text [7] Connect to R7<br>
menu CONSOLE text [8] Connect to R8<br>
menu CONSOLE text [9] Connect to R9                [99] Exit to CLI<br>
menu CONSOLE clear-screen<br>
_<br>
5.  Under your VTY 0 4 interface use the autocommand interface to run the <em>menu console</em> command when a user connects.<br>
<em>line vty 0 4<br>
autocommand menu CONSOLE</em><br>
That is it!<br>
<em>Note: You could easily make 99 a hidden option and just enter 99 to enter the CLI.</em></p>]]></description></item><item><title>CCIE Rack vbs script for SecureCRT</title><link>https://hugo.fryguy.net/2010/06/23/ccie-rack-vbs-script-for-securecrt/</link><pubDate>Wed, 23 Jun 2010 12:27:21 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2010/06/23/ccie-rack-vbs-script-for-securecrt/</guid><description><![CDATA[<p>Well I finally got around to writing a script in order log into all my lab routers.  Why?  I got tired of typing R1, then password, breaking out and going to the next.  When you connect to 8 routers for every lab, it takes time.<br>
So, below is the script I use for my SecureCRT session.    Pretty simple, just did a record of the first two and then edited the rest of them in.<br>
It can also be found here for easier reading: <a href="http://pastebin.com/NUdBENdc" target="_blank" rel="noopener noreffer "><br>
http://pastebin.com/NUdBENdc</a><br>
—————————————————————–<br>
#$language = “VBScript”<br>
#$interface = “1.0”<br>
crt.Screen.Synchronous = True<br>
Sub Main<br>
 crt.Screen.Send “r1” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R1#”<br>
 crt.Screen.Send chr(30) &amp; “x2” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r2” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R2#”<br>
 crt.Screen.Send chr(30) &amp; “x3” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r3” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R3#”<br>
 crt.Screen.Send chr(30) &amp; “x4” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r4” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R4#”<br>
 crt.Screen.Send chr(30) &amp; “x5” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r5” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R5#”<br>
 crt.Screen.Send chr(30) &amp; “x6” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r6” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R6#”<br>
 crt.Screen.Send chr(30) &amp; “x7” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r7” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R7#”<br>
 crt.Screen.Send chr(30) &amp; “x8” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “r8” &amp; chr(13)<br>
 crt.Screen.WaitForString “Password: ”<br>
 crt.Screen.Send “PassWord” &amp; chr(13)<br>
 crt.Screen.Send chr(13)<br>
 crt.Screen.WaitForString “Rack1R8#”<br>
 crt.Screen.Send chr(30) &amp; “x9” &amp; chr(13)<br>
 crt.Screen.WaitForString “TS1#”<br>
 <br>
 crt.Screen.Send “1” &amp; chr(13)<br>
End Sub</p>]]></description></item></channel></rss>