cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
448
Views
10
Helpful
1
Replies

You plan to play with Python on IOS-XE Device ?

Jerems
Spotlight
Spotlight

Then...look at this to start your journey :

 

 

ROUTER(config)#iox ?
  <cr>  <cr>

ROUTER(config)#iox

ROUTER(config)#exit

ROUTER#wr
Building configuration...
[OK]

ROUTER#guestshell run python
The process for the command is not responding or is otherwise unavailable

Error, guestshell is in disabled state, execute 'guestshell enable' before attempting this CLI

ROUTER#guestshell enable
Interface will be selected if configured in app-hosting
Please wait for completion
The process for the command is not responding or is otherwise unavailable

ROUTER#show iox-service

IOx Infrastructure Summary:
---------------------------
IOx service (CAF) 1.8.0.5 : Running
IOx service (HA)          : Not Supported
IOx service (IOxman)      : Not Ready
Libvirtd   1.3.4          : Running


ROUTER#show iox-service

IOx Infrastructure Summary:
---------------------------
IOx service (CAF) 1.8.0.5 : Running
IOx service (HA)          : Not Supported
IOx service (IOxman)      : Running
Libvirtd   1.3.4          : Running


ROUTER(config)#app-hosting appid guestshell

ROUTER(config-app-hosting)#vnic management guest-interface 0

ROUTER#guestshell enable
Interface will be selected if configured in app-hosting
Please wait for completion
guestshell activated successfully
Current state is: ACTIVATED
guestshell started successfully
Current state is: RUNNING
Guestshell enabled successfully

ROUTER#guestshell run python
Python 2.7.5 (default, Apr 12 2018, 04:22:44)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2

 

 

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee

Cool, thanks for sharing!