cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1536
Views
2
Helpful
12
Replies

ncs5501 - stuck in sysadmin mode - how to return to router rp0 user

ncs5501 - stuck in sysadmin mode - how to return to router rp0 user mode

12 Replies 12

smilstea
Cisco Employee
Cisco Employee

If you are in the sysadmin prompt or any shell prompt you should be able to enter 'exit' and return to the prior prompt. Are you on console? Its also possible someone entered 'ctrl' + 'o' (as in orange) to change the console between the 3 modes, simply enter that sequence again to switch to a different prompt.

 

Sam

 

When I ssh into the device - it would already be in sysadmin mode. Exit and end did not work. Seemed like XR mode wasn't there

Does show users say ssh or console?
sysadmin-vm:0_RP1# show users
Mon Jun 10 21:12:46.202 UTC+00:00
Session User Context From Proto Date Mode
*1536 smilstea cli 192.0.112.4 ssh 21:12:44 operational
sysadmin-vm:0_RP1#

This is telling me that I came from the XR default SDR VM
Show vm
Location: 0/RP1
Id Status IP Address HB Sent/Recv
-------------------------------------------------------------
sysadmin running 192.0.112.1 NA/NA
default-sdr running 192.0.112.4 525385/525385

When you swap between VMs (XR and sysadmin) you are really doing an SSH.

There are multiple consoles on the box so you could be connected to the wrong one, or the XR default SDR VM could be down so its throwing you to sysadmin.

Hello Smilstea,

I'm getting the same error, it does not seem to connect to the LXC. 

connecting from 'sysadmin' console. Continue(Y/N)?

y
Connecting to 'sysadmin' console
▒▒▒▒▒▒▒▒
sysadmin-vm:0_RP0#
Disconnecting from 'sysadmin' console. Continue(Y/N)?
Y

Connecting to 'sysadmin' console
▒▒▒▒▒▒▒▒
Disconnecting from 'sysadmin' console. Continue(Y/N)?
Y

Connecting to 'sysadmin' console
▒▒▒▒▒▒▒▒
sysadmin-vm:0_RP0#
Disconnecting from 'sysadmin' console. Continue(Y/N)?
Y

Connecting to 'host' console
host login: Disconnecting from host console. Continue(Y/N)?

Connecting to 'host' console
host login:
host login: cisco
Password:
[host:0_RP0:/misc/disk1]$ Disconnecting from host console. Continue(Y/N)?
Y


#### Waiting for '' lxc to be ready. ####

If you want to connect to available console, press 'Ctrl-o' <'o' as in orange>

after this it does not do anything but takes me back to sysadmin-vm:0_RP0# 

Thank you for your help, any advice or suggestion is appreciated. 

 

pase de ctrl + o, de modo a modo hasta que me funciono correctamente.

Vamos hacer la prueba nuevamente. 

1. Y despues  que entre en este modo  lo tienes que hacer cada vez que reinicie el router ? (apagar y prender)

2. Cuanto tiempo te tomo?   que version? 

Gracias por el feedback.

 

 

Hello 

I recently encountered the same problem. Have you solved it?

Any suggestions would be greatly appreciated.

Hello Tim,  

It did NOT work for me,   but previous comment says to   press  ctrl + o      multiple times to switch from mode to mode. if you are not able then I would suggest to do a recovery install via USB with recovery image.  It could be that the OS files got corrupted.

Thank you Jmartinex20.

 

I am following your suggestion to use the USB recovery system, but I encountered the following, have you encountered this problem when restoring the system? Thank you.

 

error: cannot read variable.
Booting from USB..
Loading Kernel..
Verifying @K?O...

Image verified successfully. Booting..
(loop)/boot/bzImage verified using ciscosec protocol.
Verifying @E?O...

Image verified successfully. Booting..
(loop)/boot/bzImage verified using ciscosec protocol.
Loading initrd..
Verifying ?]?O...

Image verified sucessfully. Booting...
(loop)/boot/initrd.img verified using ciscosec protocol.
error: cannot read variable.

Press any key to continue...

 

what version are you installing?  what is the name of the image?

when you turn on the unit, Press ESC  to enter in BIOS mode and then select your USB with recovery image. 

https://www.cisco.com/c/en/us/td/docs/iosxr/ncs5500/system-setup/71x/b-system-setup-cg-ncs5500-71x/b-system-setup-cg-ncs5500-71x_chapter_01001.html

From RP BIOS boot manager menu - Use this method if Admin LXC is not running:

Note
Use this procedure only on active RP; the standby RP must either be powered OFF or removed from the chassis. After the active RP is installed with images from USB, insert or power ON the standby RP as appropriate.

Insert the USB drive.

Connect to the console.

Power the router.

Press Esc or Del to pause the boot process and get the RP to BIOS menu.

Select the USB from the boot menu on the RP to which the USB is connected to. The RP boot the image from USB and installs the image onto the hard disk. The router boots from the hard disk after installation.

Note
If there is no space in the RP, a prompt to either cancel the installation, or to continue with formatting the disk is displayed.

Hello Jmartinez20,

Thank you for the information.

I just pressed ESC, entered BIOS, and selected USB boot.

But I found a problem, "error: no such device: ((hd0,msdos1)/EFI/BOOT)/EFI/BOOT/grub.cfg." Does this sentence mean that the hard disk of NCS540 is invalid or broken?

 

 

Image Name = \EFI\BOOT\BOOTX64.EFI

Image Size = 890940 Bytes

------------Cisco Secure Boot: Begin ------------

-----------Cisco Secure Boot: Verifying-----------

Image verified successfully. Booting..

------------Cisco Secure Boot: End ------------
Welcome to GRUB!

error: cannot read variable.
error: cannot read variable.
error: no such device: ((hd0,msdos1)/EFI/BOOT)/EFI/BOOT/grub.cfg.
Verifying (hd0,msdos1)/EFI/BOOT/grub.cfg...
Verifying (hd0,msdos1)/EFI/BOOT/grub.cfg...
error: the argument `--speed=auto' requires an integer.
error: terminal `serial' isn't found.

GNU GRUB version 2.04

what image are you using?   you have to use something similar to   ncs5500-usb_boot-7.7.21  and make sure to extract the file from the USB this will make it bootable.