Changes between Initial Version and Version 1 of Resources/Notes/Serial Console


Ignore:
Timestamp:
Mar 6, 2020, 6:34:34 PM (5 years ago)
Author:
jkol
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Resources/Notes/Serial Console

    v1 v1  
     1= Node Serial Console =
     2
     3Some devices, like the USRP N310 and USRP 2974, have a serial console redirect that allows "out of band" access to their onboard system in case of network misconfiguration. The serial console is relatively slow and is not meant for normal experiment use. However, in cases where a device is no longer accessible via SSH, its serial console may be used to perform the repairs necessary to restore normal SSH access.
     4
     5The serial console of a node is accessible from the console machine of the node's testbed. First turn the node on using OMF on the console machine. Then use telnet to connect to the correct port exposed by the node's CM (chassis manager).
     6
     7{{{
     8username@console:~$ telnet <cm-address> <port>
     9}}}
     10
     11To figure out which CM to use, follow these exmaples:
     12 ||= Node Name =||= CM Address =||
     13 || '''sdr1'''-s3-lg1.bed.cosmos-lab.org || '''cm'''-s3-lg1.bed.cosmos-lab.org ||
     14 || '''sdr2'''-md1.bed.cosmos-lab.org || '''cm'''-md1.bed.cosmos-lab.org ||
     15
     16The port number is determined as follows:
     17 ||= Node Name =||= Port =||
     18 || sdr1-... || 10001 ||
     19 || sdr2-... || 10002 ||
     20
     21A single CM may be responsible for 2 or more nodes, hence the use of port numbers to differentiate between the nodes themselves.
     22
     23== Example ==
     24
     25To connect to the serial console of {{{sdr2-md1.bed.cosmos-lab.org}}}:
     26
     27First turn on the node:
     28{{{
     29username@console:~$ omf tell -a on -t sdr2-md1.bed.cosmos-lab.org
     30}}}
     31
     32Then connect to the serial console of {{{sdr2-md1.bed.cosmos-lab.org}}}, which is served by {{{cm-md1.bed.cosmos-lab.org}}} on port {{{10002}}}:
     33
     34{{{
     35username@console:~$ telnet cm-md1.bed.cosmos-lab.org 10002
     36}}}
     37
     38This will be followed by some messages and finally a 'Connected' greeting indicating the connection was successful.
     39
     40{{{
     41Trying 10.109.11.1...
     42Connected to cm-md1.bed.cosmos-lab.org.
     43Escape character is '^]'.
     44Connected to USRP 2974 Serial Console
     45}}}
     46
     47At this point, you should be able to login using the username and password you would use when SSH-ing to a node (usually 'root' and no password) and perform the necessary tasks to make the node accessible via SSH again.
     48
     49== Exit the Serial Console ==
     50
     51To disconnect from the node's serial console, use {{{ctrl + ]}}} to bring up the telnet prompt:
     52{{{
     53telnet>
     54}}}
     55
     56Then type {{{q}}} and press {{{Enter}}} to exit.
     57{{{
     58telnet> q
     59Connection closed.
     60username@console:~$
     61}}}
     62
     63
     64