Welcome to webune web hosting
we provide dedicated server for your needs, from game server to web servers.
This tutorial is about accessing your console terminal through a linux box. this is what you will need:
* Cisco Swtich - I will be using a cisco 2950 switch
* Linux Server with COM1 Port - I am using a HP Proliant dl360 Server with Red Hat installed
* 1 CrossOver Cable
* 1 db9 connector - this is the type of adapter with an RJ45 and a db9 connection
now that you have your swich connected to your server, login as superuser in your linux server
send this command:
SHELL COMMAND:
minicom
you will see a message:
Initializing modem
then you should be able to connect to your switch, you will see a message like this:
Welcome to minicom 2.00.0
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jun 15 2004, 20:45:27.
Press CTRL-A Z for help on special keys
if you dont see anything after the message "Press CTRL-A Z for help on special keys" try hitting enter on your keyboard, if you still cant see anything, then its probably because you need to setup your terminal
to setup your terminal, Press CTRL-A Z
NOTE: you press CTRL plus a at the same time, relase both keys and then hit z
you should see a menu..
Select o for cOnfigure Minicom
┌───────────────────────────────────────────────────────────────────â”
│ Minicom Command Summary │
│ │
│ Commands can be called by CTRL-A <key> │
│ │
│ Main Functions Other Functions │
│ │
│ Dialing directory..D run script (Go)....G | Clear Screen.......C │
│ Send files.........S Receive files......R | cOnfigure Minicom..O │
│ comm Parameters....P Add linefeed.......A | Suspend minicom....J │
│ Capture on/off.....L Hangup.............H | eXit and reset.....X │
│ send break.........F initialize Modem...M | Quit with no reset.Q │
│ Terminal settings..T run Kermit.........K | Cursor key mode....I │
│ lineWrap on/off....W local Echo on/off..E | Help screen........Z │
│ | scroll Back........B │
│ │
│ Select function or press Enter for none. │
│ │
│ Written by Miquel van Smoorenburg 1991-1995 │
│ Some additions by Jukka Lahtinen 1997-2000 │
│ i18n by Arnaldo Carvalho de Melo 1998 │
└───────────────────────────────────────────────────────────────────┘
Select Serial port setup [use arrow keys and hit ENTER]
┌─────[configuration]──────â”
│ Filenames and paths │
│ File transfer protocols │
│ Serial port setup │
│ Modem and dialing │
│ Screen and keyboard │
│ Save setup as dfl │
│ Save setup as.. │
│ Exit │
└──────────────────────────┘
Now make sure your setting look like mine: [These are typical sun settings which are 9600 8N1
┌───────────────────────────────────────────────────────────────────────â”
│ A - Serial Device : /dev/ttyS0 │
│ B - Lockfile Location : /var/lock │
│ C - Callin Program : │
│ D - Callout Program : │
│ E - Bps/Par/Bits : 9600 8N1 │
│ F - Hardware Flow Control : Yes │
│ G - Software Flow Control : No │
│ │
│ Change which setting? │
└───────────────────────────────────────────────────────────────────────┘
NOTE: be sure your Serial Device is set to /dev/ttyS0 - by default, mine was set as /dev/ttyS1 so thats why i could not connect to my switch
after you have made the chanaged hit ESC to exit, you should be back to the configuration menu: and select "Modem and dialing"
┌─────[configuration]──────â”
│ Filenames and paths │
│ File transfer protocols │
│ Serial port setup │
│ Modem and dialing │
│ Screen and keyboard │
│ Save setup as dfl │
│ Save setup as.. │
│ Exit │
└──────────────────────────┘
in the Modem and dialing parameter setup all you have to do is change the "Init string" settings. be sure to set the as: ~^M~ like i did - this is how mine looks like:
~^M~
┌────────────────────[Modem and dialing parameter setup]─────────────────────â”
│ │
│ A - Init string ......... ~^M~ │
│ B - Reset string ........ ^M~ATZ^M~ │
│ C - Dialing prefix #1.... ATDT │
│ D - Dialing suffix #1.... ^M │
│ E - Dialing prefix #2.... ATDP │
│ F - Dialing suffix #2.... ^M │
│ G - Dialing prefix #3.... ATX1DT │
│ H - Dialing suffix #3.... ;X4D^M │
│ I - Connect string ...... CONNECT │
│ J - No connect strings .. NO CARRIER BUSY │
│ NO DIALTONE VOICE │
│ K - Hang-up string ...... ~~+++~~ATH^M │
│ L - Dial cancel string .. ^M │
│ │
│ M - Dial time ........... 45 Q - Auto bps detect ..... No │
│ N - Delay before redial . 2 R - Modem has DCD line .. Yes │
│ O - Number of tries ..... 10 S - Status line shows ... DTE speed │
│ P - DTR drop time (0=no). 1 T - Multi-line untag .... No │
│ │
│ Change which setting? (Return or Esc to exit) │
└────────────────────────────────────────────────────────────────────────────┘
Now set these changes as defaults, so select 'Save setup as dfl'
┌─────[configuration]──────â”
│ Filenames and paths │
│ File transfer protocols │
│ Serial port setup │
│ Modem and dialing │
│ Screen and keyboard │
│ Save setup as dfl │
│ Save setup as.. │
│ Exit │
└──────────────────────────┘
next you will see a message that the changes have been saved,
now what you need to do is restart minicom so you can connect, so select 'Exit' from the menu:
┌─────[configuration]──────â”
│ Filenames and paths │
│ File transfer protocols │
│ Serial port setup │
│ Modem and dialing │
│ Screen and keyboard │
│ Save setup as dfl │
│ Save setup as.. │
│ Exit │
└──────────────────────────┘
now you are back to the main menu, hit X to select 'eXit and reset.....X'
┌───────────────────────────────────────────────────────────────────â”
│ Minicom Command Summary │
│ │
│ Commands can be called by CTRL-A <key> │
│ │
│ Main Functions Other Functions │
│ │
│ Dialing directory..D run script (Go)....G | Clear Screen.......C │
│ Send files.........S Receive files......R | cOnfigure Minicom..O │
│ comm Parameters....P Add linefeed.......A | Suspend minicom....J │
│ Capture on/off.....L Hangup.............H | eXit and reset.....X │
│ send break.........F initialize Modem...M | Quit with no reset.Q │
│ Terminal settings..T run Kermit.........K | Cursor key mode....I │
│ lineWrap on/off....W local Echo on/off..E | Help screen........Z │
│ | scroll Back........B │
│ │
│ Select function or press Enter for none. │
│ │
│ Written by Miquel van Smoorenburg 1991-1995 │
│ Some additions by Jukka Lahtinen 1997-2000 │
│ i18n by Arnaldo Carvalho de Melo 1998 │
└───────────────────────────────────────────────────────────────────┘
say yes to the prompt and you should be back to the linux shell, now enter the minicom command again and this time you should be able to access your switch.
i tried this procedure and these steps worked for me, so be sure you are doing it right. if they did or these steps didnt work, please give me your imput, i would like to know the following:
Switch Type:
Server Model/Type
OS
for example, here is mine:
Switch Type: Cisco 2950 Switch
Server Model/Type: HP Proliant DL360 Server
OS: RedHat Enterprise Linux Version 4
thanks