cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10800
Views
5
Helpful
10
Replies

How-to "CISCO Serial Over LAN" on UCS Manager

brlok
Cisco Employee
Cisco Employee

In CIMC command line, there is a feature "CISCO Serial Over LAN" that one can directly connect KVM console over the terminal. I found very helpful for me when I troubleshoot a server lost connection

for example:

# scope kvm
# connect host
CISCO Serial Over LAN:
Press Ctrl+x to Exit the session

 

Is there a same feature in UCS Manager which one can connect to any service-profile KVM over my terminal?

1 Accepted Solution

Accepted Solutions

Kirk J
Cisco Employee
Cisco Employee

SSH'ing into the KVM IP on standard port 22 should land you directly with no need to issue scope/connect commands.

 

Thanks,

Kirk..

View solution in original post

10 Replies 10

Kirk J
Cisco Employee
Cisco Employee

Greetings.

Yes, UCSM can be configured to do this for both blades and integrated C series.

SOL is one of the config mechanisms for Hyperflex for the way ESXi is configured before a mgmt IP is ever present.

Take a look at https://www.cisco.com/c/en/us/support/docs/servers-unified-computing/ucs-b-series-blade-servers/200105-Utilizing-SoL-logging-for-Serial-Redirec.html for a config example.

 

Thanks,

Kirk...

brlok
Cisco Employee
Cisco Employee
Thank you
I have no problem on configuration , it is already configured
Just want to know what command line to get into the kvm console, like in CIMC:
# scope cimc
# connect host

Kirk J
Cisco Employee
Cisco Employee

SSH'ing into the KVM IP on standard port 22 should land you directly with no need to issue scope/connect commands.

 

Thanks,

Kirk..

brlok
Cisco Employee
Cisco Employee
thank you so much

tjekov
Cisco Employee
Cisco Employee

for C series rack servers you can ssh <cimc_ip>

Once you are in, you need just few lines:

 

UCS# scope sol

UCS /sol # set enabled yes

UCS /sol *# set baud-rate 115200

UCS /sol *# set comport com0


UCS /sol *# show configuration pending
Modify /sol
enabled yes
baud-rate 115200
comport com0
UCS /sol *# commit

UCS# connect host
CISCO Serial Over LAN:

sol.PNG

 

 

But I am facing a problem where after ssh to KVM console, there is no "login shell" that is prompted. So what is the way to configure login shell for KVM console of particular server/server-policy to ssh and issue command?

In one of the documents cisco managing remote presence (page #2, note-2) there is mention "The KVM Console is operated only through the GUI." Does this mean there is no way that we can access the CISCO KVM console via ssh and do operations through the command line?

my_desktop ~ % ssh test_user@host-ilo.localhost.localdomain
test_user@host-ilo.localhost.localdomain's password: 
CISCO Serial Over LAN:
Press Ctrl+x to Exit the session
Connection to host-ilo.localhost.localdomain closed by remote host.
Connection to host-ilo.localhost.localdomain closed.

 

Hyperflex uses Serial-over-LAN (SoL) all the time.

From my lab using SSH from within Windows Power Shell (had to hit enter for the login prompt to show):

PS C:\Users\sttardy> ssh admin@192.0.2.7 admin@192.0.2.7's password:
Connecting to host
CISCO Serial Over LAN:
Press Ctrl+x to Exit the session

hx-01a-esxi-1 login:

This CIMC IP was found via UCSM / Service Profiles / HX-01 / Management IP

Do you have the [Serial over LAN Policy] set under that service profile?

And the first login is your login to UCSM and not to the OS itself.

Is the server booted and is the OS (or BIOS) running?

What do you see on the screen when opening the KVM of the server?

The OS (ESXi in my lab case for HX) requires some configuration to redirect the OS "console" to the Serial port.

But you should see the BIOS/POST via SoL regardless of how the OS is configured properly.

@Steven Tardy, you mentioned "first login has to be UCSM". Does this mean, we cannot log in directly to the KVM console via SSH? I was trying to see if there is an option to directly login to the KVM/ILO console of the server similar to how we have in Dell servers where we can ssh to dell iDRAC/ILO and issue commands.

We may be confusing several remote options.

How is the server managed?

M1: Is the server physically connected to UCS Fabric Interconnects and managed by UCSM (UCS Manager) (aka c-series integrated mode)?

M2: Or is the server standalone and NOT managed UCS and instead managed by CIMC (what Dell calls DRAC and HP calls iLO and IBM calls IMM and generically called BMC)?

 

Access methods:

A1: You can access the HTML/Java KVM GUI via CIMC or UCSM mode through a browser.

A2: You can access the BMC by default via CIMC or UCSM mode through a SSH client.

A3: If Serial-over-LAN (SoL) is enabled, then SSH'ing to the CIMC IP will drop you directly into the KVM TUI (console). The first login prompt for SoL is the CIMC/UCSM credentials.

 

What exactly are you trying to do?

In our case - servers are physically connected to UCS Fabric Interconnects and managed by UCSM. 

But the blades are shared by multiple teams. So I was looking for an option to directly SSH to my blade alone.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: