cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1124
Views
0
Helpful
1
Replies

Dohost returns only few lines

lemontree_61089
Level 1
Level 1

Hi,

I cam accross a strange issue using guestshell and dohost: the dohost feature only retuns few lines. Have a look:

guestshell@guestshell ~]$ dohost "sh ver"

Cisco IOS XE Software, Version 16.06.01

[guestshell@guestshell ~]$ dohost "sh run"

Building configuration...

[guestshell@guestshell ~]$

Same if using python directly :

[guestshell@guestshell ~]$ python

Python 2.7.5 (default, Aug  4 2017, 00:39:18)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> from cli import *

>>> clip("sh run")

Building configuration...

>>>

So dohost seems to be able to connect but only can retrieve few informations.

If you guys have an idea about what is causing the issue, be my guest

I am using a CSR1000V deployed on AWS, running 16.06.01

Thomas

1 Reply 1

Alex Stevenson
Cisco Employee
Cisco Employee

After running the same command, I was able to retrieve a full configuration.

[guestshell@guestshell ~]$ dohost "sh ver"
Cisco IOS XE Software, Version 17.03.01a
Cisco IOS Software [Amsterdam], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 17.3.1a, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2020 by Cisco Systems, Inc.
Compiled Wed 12-Aug-20 00:16 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2020 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
csr1000v-1 uptime is 13 hours, 8 minutes
Uptime for this control processor is 13 hours, 10 minutes
System returned to ROM by reload
System image file is "bootflash:packages.conf"
Last reload reason: reload
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
License Level: ax
License Type: N/A(Smart License Enabled)
Next reload license Level: ax
The current throughput level is 1000 kbps 
Smart Licensing Status: UNREGISTERED/No Licenses in Use
cisco CSR1000V (VXE) processor (revision VXE) with 715705K/3075K bytes of memory.
Processor board ID 9ESGOBARV9D
Router operating mode: Autonomous
3 Gigabit Ethernet interfaces
32768K bytes of non-volatile configuration memory.
3978420K bytes of physical memory.
6188032K bytes of virtual hard disk at bootflash:.
Configuration register is 0x2102

This was performed on the DevNet IOS XE on CSR Latest Code AlwaysOn1 sandbox. If you go to the sandbox catalog and search for 'CSR1000V' you should see it and more. https://devnetsandbox.cisco.com/RM/Topology

 

* Reminder you will need to enable IOx and guestshell prior to doing this. I also had to run the following before getting guestshell to enable:

 

app-hosting appid guestshell
 vnic management guest-interface 0
end

 

 

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: