Avanzato automation
Comando Cisco app-hosting : Come Abilitare App-Hosting su Catalyst 9000?
Il comando app-hosting abilita container Docker su Catalyst 9000. Permette di eseguire app Python, Wireshark, ThousandEyes direttamente sullo switch.
{ } Sintassi
app-hosting
! Abilita app-hosting
iox
app-hosting appid APP1
app-vnic AppGigabitEthernet trunk
vlan 10 guest-interface 0
guest-ipaddress 10.10.10.10 netmask 255.255.255.0
app-resource docker
prepend-pkg-opts
run-opts 1 "--publish 8080:80"
! Installa app da USB
app-hosting install appid APP1 package usbflash0:app.tar
! Verifica
show app-hosting list
show app-hosting detail>_ Verifica - Output
SW1# show app-hosting list
App id State
---------------------------------------------------------
APP1 RUNNINGSW1# show app-hosting detail appid APP1
App id : APP1
Owner : iox
State : Running
Application
Type : docker
Name : my-app
Version : 1.0
Description : Python monitoring app
Author : Network TeamSW1# show app-hosting resource
CPU:
5% Quota: 100%
Memory:
256 MB Quota: 1024 MB
! Errore Comune
⛔ iox non abilitato - app-hosting non disponibile
Se non dai iox globale, app-hosting non esiste: % Invalid input detected. Feature richiede IOS-XE 16.12+ e licenza Network Advantage.
Fix: iox + app-hosting appid ... + USB con app .tar. Verifica show iox-service e show app-hosting list.
✦ Trasparenza AI: uso strumenti AI per bozze, schemi e immagini. Ogni contenuto lo revisiono, testo i comandi in laboratorio e lo riscrivo con la mia esperienza in classe prima di pubblicarlo. La responsabilità di quello che leggi è mia.

