cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2090
Views
15
Helpful
2
Comments
HUBERT RESCH
Level 3
Level 3

Hi, 

how to execute linux-commands (which are executeable directly in the guestshell) from IOS-XE

 

sample :

[guestshell@guestshell ~]$ cat test.txt | grep Smart

Smart Licensing Status: Smart Licensing is DISABLED

[guestshell@guestshell ~]$ exit

 

from IOS-XE it does not work:

 

guestshell run cat test.txt | grep Smart

 

Cisco IOS XE Software, Version 16.09.05

Cisco IOS Software [Fuji], ASR1000 Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.5, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2020 by Cisco Systems, Inc.

Compiled Thu 30-Jan-20 18:53 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

BOS-LINZ-DL10 uptime is 10 weeks, 5 days, 14 hours, 50 minutes

Uptime for this control processor is 10 weeks, 5 days, 14 hours, 51 minutes

System returned to ROM by Reload Command at 19:33:22 MES Thu Apr 2 2020

System restarted at 19:36:24 MES Thu Apr 2 2020

System image file is "bootflash:asr1000-universalk9.16.09.05.SPA.bin"

Last reload reason: Reload Command

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 Type: RightToUse

License Level: adventerprise

Next reload license Level: adventerprise

The current crypto throughput level is 40000000 kbps

Smart Licensing Status: Smart Licensing is DISABLED

cisco ASR1002-HX (2KH) processor (revision 2KH) with 9997044K/6147K bytes of memory.

Processor board ID FXS2307Q3UB

Crypto Hardware Module present

26 Gigabit Ethernet interfaces

8 Ten Gigabit Ethernet interfaces

32768K bytes of non-volatile configuration memory.

33554432K bytes of physical memory.

29401087K bytes of eUSB flash at bootflash:.

30842832K bytes of USB flash at usb0:.

30842832K bytes of USB flash at usb1:.

0K bytes of WebUI ODM Files at webui:.

20971520K bytes of SATA hard disk at harddisk:.

Configuration register is 0x2102

 

cat: |: No such file or directory

cat: grep: No such file or directory

cat: Smart: No such file or directory

 

any idea to help a beginner :-)

 

thanks in Advance

Hubert

 

2 Comments
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: