IOS-XR access from bash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2019 08:00 AM
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
- Labels:
-
XR OS and Platforms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2019 09:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2019 10:00 AM
The attached picture should answer your question, its from an NCS5500 but same principles apply.
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2019 11:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2019 12:29 PM
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#

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2020 06:45 AM - edited 11-12-2020 06:50 AM
thank you, this way worked:
sysadmin-vm:0_RP0# show sdr run ssh 192.0.0.4 /pkg/sbin/exec
