Difference between revisions of "Cisco console port"

From Ever changing code
Jump to navigation Jump to search
(Created page with "=== Linux consol port serial connection === Install minicon apt-get install minicom Discover your serial com port, here it will be <tt>ttyS0</tt> logger@syslog0050:~$ dmesg ...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Linux consol port serial connection ===
= Linux console port serial connection =
Install minicon
Install minicon
  apt-get install minicom
  apt-get install minicom
Discover your serial com port, here it will be <tt>ttyS0</tt>
Discover your serial com port, here it will be <tt>ttyS0</tt>
  logger@syslog0050:~$ dmesg | grep tty
  ubuntu@d600:~$ dmesg | grep tty
  [    0.000000] console [tty0] enabled
  [    0.000000] console [tty0] enabled
  [    1.030584] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
  [    0.408944] serial8250: <span style="color: red">ttyS0</span> at I/O 0x3f8 (irq = 4) is a 16550A
[    0.513157] 00:0b: <span style="color: red">ttyS0</span> at I/O 0x3f8 (irq = 4) is a 16550A
 
setup minicon with -s switch
setup minicon with -s switch
  # minicom -s
  # minicom -s
Line 12: Line 14:
             | Filenames and paths      |
             | Filenames and paths      |
             | File transfer protocols  |
             | File transfer protocols  |
             | Serial port setup        |
             | <span style="color: red">Serial port setup</span>       |
             | Modem and dialing        |
             | Modem and dialing        |
             | Screen and keyboard      |
             | Screen and keyboard      |
Line 21: Line 23:
             +--------------------------+
             +--------------------------+


Choose Serial port setup and specify Cisco Defaults for Serial Connection like below:
Choose ''Serial port setup'' and specify Cisco Defaults for Serial Connection like below:


     +-----------------------------------------------------------------------+
     +-----------------------------------------------------------------------+
     | A -    Serial Device      : /dev/ttyS0                                |
     | A -    Serial Device      : /dev/<span style="color: red">ttyS0</span>                               |
     | B - Lockfile Location    : /var/lock                                |
     | B - Lockfile Location    : /var/lock                                |
     | C -  Callin Program      :                                          |
     | C -  Callin Program      :                                          |
Line 40: Line 42:
             | Filen+-----------------------------------------+
             | Filen+-----------------------------------------+
             | File |Give name to save this configuration?    |
             | File |Give name to save this configuration?    |
             | Seria|> cisco                                  |
             | Seria|> <span style="color: red">cisco</span>                                 |
             | Modem+-----------------------------------------+
             | Modem+-----------------------------------------+
             | Screen and keyboard      |
             | Screen and keyboard      |
Line 57: Line 59:
  OPTIONS: I18n
  OPTIONS: I18n
  Compiled on Sep  5 2010, 08:31:32.
  Compiled on Sep  5 2010, 08:31:32.
  Port /dev/ttyUSB2
  Port /dev/<span style="color: red">ttyS0</span>
    
    
  Press CTRL-A Z for help on special keys
  Press CTRL-A Z for help on special keys
Line 66: Line 68:
  R1#
  R1#


To Exit from minicom, Click Ctrl, A, Z then X.
Make sure that you see your <tt>Port /dev/tty##</tt> is pointing to correct device. To Exit from minicom, Click Ctrl, A, Z then X.
 
= Tetra Term VT =
 
The motion receiving BEL character
 
Tera Term will sound the beep when the BEL character(ASCII $07) receives.
 
You can disable the beep sound for the BEL character by editing the Beep line in the [Tera Term] section of the setup file like the following:
Beep=off
Also, the terminal screen will flush instead of making the beep in the following configuration.
Beep=visual
Default:
Beep=on
 
Windows path: <tt>C:\Program Files (x86)\teraterm\TERATERM.INI</tt>
 
[[Category:cisco]][[Category:linux]]

Latest revision as of 23:35, 24 February 2014

Linux console port serial connection

Install minicon

apt-get install minicom

Discover your serial com port, here it will be ttyS0

ubuntu@d600:~$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.408944] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.513157] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

setup minicon with -s switch

# minicom -s

           +-----[configuration]------+
           | Filenames and paths      |
           | File transfer protocols  |
           | Serial port setup        |
           | Modem and dialing        |
           | Screen and keyboard      |
           | Save setup as dfl        |
           | Save setup as..          |
           | Exit                     |
           | Exit from Minicom        |
           +--------------------------+

Choose Serial port setup and specify Cisco Defaults for Serial Connection like below:

   +-----------------------------------------------------------------------+
   | 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?                                              |
   +-----------------------------------------------------------------------+

come out of Serial port setup by pressing Esc then save configuration file:

           +-----[configuration]------+
           | Filen+-----------------------------------------+
           | File |Give name to save this configuration?    |
           | Seria|> cisco                                  |
           | Modem+-----------------------------------------+
           | Screen and keyboard      |
           | Save setup as dfl        |
           | Save setup as..          |
           | Exit                     |
           | Exit from Minicom        |
           +--------------------------+

Once saved, it will store the configuration in /etc/minicom/. To connect to your device, run minicom with config file name:

#minicom cisco

Welcome to minicom 2.4
 
OPTIONS: I18n
Compiled on Sep  5 2010, 08:31:32.
Port /dev/ttyS0
 
Press CTRL-A Z for help on special keys
 
 
R1>
R1>en
R1#

Make sure that you see your Port /dev/tty## is pointing to correct device. To Exit from minicom, Click Ctrl, A, Z then X.

Tetra Term VT

The motion receiving BEL character

Tera Term will sound the beep when the BEL character(ASCII $07) receives.

You can disable the beep sound for the BEL character by editing the Beep line in the [Tera Term] section of the setup file like the following:

Beep=off

Also, the terminal screen will flush instead of making the beep in the following configuration.

Beep=visual

Default:

Beep=on

Windows path: C:\Program Files (x86)\teraterm\TERATERM.INI