Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/console/SONiC-Console-Switch-High-Level-Design.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ This document describes the functionality and high level design of the Console s

| Term | Meaning
|---|---|
| SSH | **S**ecure **S**hell |
| SSH | **S**ecure **Sh**ell |
| CLI | **C**ommand **L**ine **I**nterface |
| OS | **O**perating **S**ystem |
| USB | **U**niversal **S**erial **B**us |
| TTY | **T**ele**TY**pewriter, terminal for text input/output environment |
| PID | **P**rocess **ID**entification number |
| PID | **P**process **ID**entification number |
| ETH | **ETH**ernet |
| UTC | **C**oordinated **U**niversal **T**ime |
| MGMT | **M**ana**G**e**M**en**T** |
| TCP | **T**ransmission **C**ontrol **P**rotocol |
| TCP | **T**ransmission **C**control **P**rotocol |

# 1 Feature Overview

Expand Down Expand Up @@ -269,8 +269,8 @@ ssh tom@2001:db8::1
# connect to DeviceB
ssh tom@2001:db8::2

# Assume that domain name DeviceC.co point to 2001:db8::3
ssh tom@DeviceC.co
# Assume that domain name devicec.co point to 2001:db8::3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devicec

devicec -> DeviceC

ssh tom@devicec.co
```

The mechanism behind it is actually very similar to mode A. We will record the target ssh host IP address to a environment variable `$SSH_TARGET_IP`. Since we have stored the relationship between line number and it's management IP, then we can easily start the management session automatically after user login by calling `consutil connect` command in `/etc/bash.bashrc`. If the management IP were not found in config db (consutil connect failed due to target not found), then we will fall back to normal SONiC management bash session.
Expand Down