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

IOS-XR access from bash

douglasfir
Level 1
Level 1

Hi,

I am using IOS-XRv in my lab and I am trying to access IOS-XR shell (enable#) from SysAdmin. I am able to connect to RP virtual machine, but then I find myself inside bash and don't know how to reach IOS-XR shell from there.

I know that I could access IOS-XR directly from console or management port, but this is actually part of a test case I want to perform.

 

Thank you in advance!

Dragan

 

5 Replies 5

philclemens1835
Level 1
Level 1

Not saying this site has the answer you're looking for, but are you aware of:

https://xrdocs.io/

 

 

smilstea
Cisco Employee
Cisco Employee

The attached picture should answer your question, its from an NCS5500 but same principles apply.

 

Sam

Hi Sam,

 

thanks for your answer, it is definitely useful for me in order to understand better about how components are related to one another. However, what I am trying is actually oposite direction:

host -> sysadmin -> IOS-XR#

Is this possible somehow? So this would not mean going from IOS-XR to SysAdmin and than getting back using 'exit', but connecting from SysAdmin as a starting point. Actually, it would be great if it is possible to connect from host to SysAdmin too. I think I remember that colleague from TAC was able to SSH to IOS-XR, but I forgot to write it down...

 

Thanks!

Dragan

Are you connected on console?

 

Please try ctrl+o (“o” as in orange) on the console while in sysadmin.

You will be directed to host and then press ctrl+o

 

 

Another way if you are not consoled in:

sysadmin-vm:0_RP0# show sdr
Sun May 26 19:13:28.249 UTC

SDR: default-sdr
Location IP Address Status Boot Count Time Started
-----------------------------------------------------------------------------
0/RP0/VM1 192.0.0.4 RUNNING 3 04/26/2019 00:50:06
0/RP0/VM2 192.0.0.6 RUNNING 3 04/26/2019 00:52:16
sysadmin-vm:0_RP0# run
Sun May 26 19:13:32.391 UTC

[sysadmin-vm:0_RP0:~]$ssh 192.0.0.4
Last login: Sun May 26 19:08:47 2019 from 192.0.0.1

[xr-vm_node0_RP0_CPU0:~]$/pkg/sbin/exec

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Banner
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


User Access Verification

Username: smilstea

Password:


RP/0/RP0/CPU0:NCS-5502-B#exit

Terminated
[xr-vm_node0_RP0_CPU0:~]$exit
logout
[sysadmin-vm:0_RP0:~]$exit
exit
sysadmin-vm:0_RP0#

from88
Level 4
Level 4

thank you, this way worked:

 

sysadmin-vm:0_RP0# show sdr
run ssh 192.0.0.4
/pkg/sbin/exec

 

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: