Reset Search
 

 

Article

How to master the shell game in working with SLX?

« Go Back

Information

 
TitleHow to master the shell game in working with SLX?
Question
  • How do you navigate around the many different shells within an SLX device?
Environment
  • All SLX devices
Answer
How to switch between VMs
Key combo @ consoleVM
CTRL+Y 1HOST OS 3.14.17
CTRL+Y 2SLX VM (SLX 2.6.34 Linux)
CTRL+Y 3TPVM (SLX 3.14.17 Linux)

Different key combination are used for each of the environment for entry, exit and/or switch to other VMs.
What you can do in these environment is not covered here, those will be subject(s) of other KB articles.
SLX-OS CLI this article focus more on how to navigate in SLX VM (i.e MM VM and LC VM) more than Host VM and TPVM at this time.
Be familiar with these terms as it is often referred to as where you need to go to get the proper info and data.
  • MM CLI (MMVM)
    • The main CLI also called SLX-OS CLI
  • MM Linux shell
    • Same shell when logged in as either root or admin
  • MM CMSH
    • Runtime Debugging Command Shell
  • LC CLI
    • Main LineCard CLI Shell
  • LC CMSH
    • Runtime Debugging Command Shell
  • LC BRCM diag mode
    • Broadcom Chip Diagnostics and Debugging
  • TPVM
    • Third Party VM (not installed by default)
  • HOST VM
    • Host VM for SLX-OS
 Prompt EntryEXIT
SLX-OS CLI SLX-OS (SLX)
SLX login:
SLX login: admin
Password: (password)

SLX#
SLX# exit

SLX-OS (SLX)
SLX login:
Login as rootSLX login:SLX login: root
Password: (fibranne)

[root@SLX]#
[root@SLX]# logout

SLX-OS (SLX)
SLX login:

Or

[root@SLX]# exit

SLX-OS (SLX)
SLX login:
Go to Linux shell from MMVM (SLX CLI)SLX#SLX# start-shell

[admin@SLX]#
[admin@SLX]#exit

SLX#

(LOGOUT is not supported, use EXIT)
Go to MM cmsh[admin@SLX]#


Note: must be from Linux shell
[admin@SLX]# cmsh
MP Edition CMSH
SLX#

Note: The prompt here is the same as SLX-OS CLI but you are in MM cmsh
Use the ? to check the available commands
Most normal CLI commands will return "% Error..."

SLX#sh chassis
^
% Error: Invalid input detected at '^' marker.

 
SLX#exit
[admin@SLX]#
Go to linecards
From SLX-OS
(use show linecard to check for valid linecard # for rconsole [#]
SLX#SLX# rconsole
Usage: rconsole.sh [-f] <slot_num>
-f: force a new remote console
slot_num: LC slot number (1,2.3...)
SLX# rconsole 1
Connecting to Linecard L1

Press Ctrl-\ q to exit
(then hit [ENTER] to get to LC VM)



LCVM1 login:
LCVM1 login: (ctrl \ q)
SLX#
Access LCVM with Admin accessLCVM1 login:LCVM1 login: admin
Password: (password)
LCVM1:L1/0: >
LCVM1:L1/0: >exit
logout

Ubuntu 14.04 LTS LCVM1 ttyS0

LCVM1 login:

Or

LCVM1:L1/0: >logout

Ubuntu 14.04 LTS LCVM1 ttyS0

LCVM1 login:
Access LC cmsh in Admin modeLCVM1:L1/0: >LCVM1:L1/0: >cmsh
LP Edition CMSH
LCVM1#

Note: prompt is LCVM1#
LCVM1#exit
LCVM1:L1/0: >

Or

LCVM1#logout
LCVM1:L1/0: >
Access LCVM with root accessLCVM1 login:LCVM1 login: root
Password: (fibranne)
LCVM1:L1/0: >
LCVM1:L1/0: >exit
logout

Ubuntu 14.04 LTS LCVM1 ttyS0

LCVM1 login:

Or

LCVM1:L1/0: >logout

Ubuntu 14.04 LTS LCVM1 ttyS0

LCVM1 login:
Access LC cmsh in root modeLCVM1:L1/0: >LCVM1:L1/0: >cmsh
LP Edition CMSH
LCVM1#

Note: prompt is LCVM1#
LCVM1#exit
LCVM1:L1/0: >

Or

LCVM1#logout
LCVM1:L1/0: >
Exit from LC VM to MM VM

(see access to LC VM above for reference)
At
LCVM1 login:

Or

LCVM1:L1/0: >
 LCVM1:L1/0: > (ctrl \ q)
SLX#

or

LCVM1 login: (ctrl \ q)
SLX#
HOST VMSLX-OS (SLX)
SLX login:
CTRL+Y 1
HOST login:

OR

[root@SLX]# telnet 127.2.0.1
Trying 127.2.0.1...
Connected to 127.2.0.1.
Escape character is '^]'.

HOST login:

 
Ctrl y 2 --- > SLX login:

OR

root@HOST:~# exit
logout
Connection closed by foreign host.
[root@SLX]# 
Login as rootHOST login:HOST login: root
Password: (fibranne)

root@HOST:~#
root@HOST:~# exit
logout

Ubuntu 14.04 LTS HOST ttyS0

HOST login:


Or

root@HOST:~# logout

Ubuntu 14.04 LTS HOST ttyS0

HOST
login:
TPVMTPVM login:
Password: 

 
Use the keystroke from SLX-OS CLI:

CTRL+Y 3

TPVM login: root
Password: 

root@TPVM:~# 
 
Additional notes
SLX supported the following VM environments, as in SLX-OS 16r.1.00a, 16r.1.01a, 17r.1.00, and 17r.1.01
SLX VM SWBD4000
Linux 2.6.34 for SLX-OS VM (32-bit Kernel)
OSS package file system for SLX VM
Memory allocation configuration 2:2 split

KVM Host SWBD2500
Linux 3.14.17 for KVM Host (64-bit Kernel)
Ubuntu file system

TPVM SWBD2900
Linux 3.19
Ubuntu file system

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255