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
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
Environment
Answer
How to switch between VMs
Key combo @ consoleVM
CTRL Y 1TPVM (SLX 3.14.17 Linux)
CTRL Y 2SLX VM (SLX 2.6.34 Linux)
CTRL Y 3HOST OS 3.14.17


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.
TSE need to know what mode it is on and how to navigate it during data collection and troubleshooting
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; as info is available for Host VM and TPVM, it will be added.
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 (MM VM)
MM linux shell
LC CLI

MM cmsh
LC cmsh
LC BRCM diag mode
TPVM
HOST VM
 Prompt EntryEXIT
SLX-OS CLI SLX-OS (SLX)
SLX login:
SLX login: admin


Password: (password)

2017/02/10-16:43:33, [SEC-1206], 5554, M1 | Active, INFO, SLX, Login information: User [admin via console] Last Successful Login
Time : Thu Feb 9 23:39:00 2017.

SECURITY WARNING: The default password for at least one default account (root, admin and user) have not been changed.

Welcome to the Brocade SLX-OS Software
admin connected from 127.0.0.1 using console on SLX
SLX#
SLX# exit
2017/02/10-16:46:10, [SEC-3022], 5555, M1 | Active, INFO, SLX, Event: logout, Status: success, Info: Successful logout by user [admin].



SLX-OS (SLX)
SLX login:
Login as rootSLX login:SLX login: root
Password: (fibranne)
2017/02/10-16:59:54, [SEC-1205], 5557, M1 | Active, INFO, SLX, Login information: User [root via console] Last Successful Login Time : Wed Feb 8 16:20:48 2017 and Fail count : 1.
Disclaimer for root account Usage!

This SLX router is equipped with root account that is intended for diagnostics and debugging purposes solely by the equipment vendor's trained engineers. Improper use of the functionality made available through the root account could cause significant harm and disruption to the network operation.

Your use of the functionality made available through the root
account is at your sole risk and you assume all liability resulting from such use. The equipment vendor shall have no liability for any losses
or damages arising from or relating to the use of the root
account (and the functionality enabled thereby) by anyone other than
the equipment vendor's authorized engineers.

Proceeding with the usage of this router as the root user
explicitly indicates your agreement to the terms of this disclaimer.

Please change passwords for router default accounts now.
Use Control-C to exit or press 'Enter' key to proceed.

Password was not changed. Will prompt again at next login
until password is changed.
[root@SLX]#
[root@SLX]# logout
2017/02/10-17:00:50, [SEC-3022], 5558, M1 | Active, INFO, SLX, Event: logout, Status: success, Info: Successful logout by user [root].



SLX-OS (SLX)
SLX login:



Or


[root@SLX]# exit
logout
2017/02/10-17:01:23, [SEC-3022], 5560, M1 | Active, INFO, SLX, Event: logout, Status: success, Info: Successful logout by user [root].



SLX-OS (SLX)
SLX login:
Go to Linux shell from MMVM (SLX CLI)SLX#SLX# start-shell
2017/02/10-17:04:45, [SH-1001], 5562, M1 | Active, INFO, SLX, MMVM Linux shell login information: User [admin]. Login Time : Fri Feb 10 17:04:45 2017


Entering Linux shell for the user: admin

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[admin@SLX]#
[admin@SLX]#exit
2017/02/10-17:05:49, [SH-1002], 5563, M1 | Active, INFO, SLX, Event: exit, Status: success, Info: User [admin] successfully exited from MMVM Linux shell. Exit Time: Fri Fe eb 10 17:05:49 2017


exit

Exited from Linux shell

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: prompt is SLX#, same as SLX-OS CLI but you are in MM cmsh, do ? to check the available commands, the first one is Negate and also if issue show chassis it returns with % Error

SLX#sh chassis
^
% Error: Invalid input detected at '^' marker.
SLX#?
Exec commands:
Negate Show no router ospf vrf WORD
capture Capture
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)

Ubuntu 14.04 LTS LCVM1 ttyS0

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 '^]'.
Ubuntu 14.04 LTS
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)
Last login: Tue Feb 7 20:15:54 GMT 2017 on pts/3
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.14.17 x86_64)

* Documentation: https://help.ubuntu.com/

System information as of Tue Feb 7 20:15:54 GMT 2017

System load: 0.9 Processes: 165
Usage of /: 14.6% of 9.72GB Users logged in: 0
Memory usage: 54% IP address for eth1: 127.2.0.1
Swap usage: 0% IP address for virbr0: 192.168.122.1

Graph this data and manage this system at:
https://landscape.canonical.com/

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:
TPVM(TPVM package not loaded, will append as info available)

CTRL Y 3
Currently does not switch and it remains in either SLX VM and/or HOST VM depends where you invoke the key combo
  
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

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

Characters Remaining: 255