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
# 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?
Solved! Go to Solution.
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.
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
UCS /sol *# commit
UCS# connect host
CISCO Serial Over LAN:
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 email@example.com firstname.lastname@example.org'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 email@example.com firstname.lastname@example.org's password:
Connecting to host
CISCO Serial Over LAN:
Press Ctrl+x to Exit the session
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)?
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?