Skip to main content

Cisco Catalyst 9000 - NetBeez Docker App Hosting (IOS-XE 16.12+/17.x)

Deploy and run the NetBeez Docker Network Agent natively on Cisco Catalyst 9300, 9400, and 9500 switches running IOS-XE 16.12+ or 17.x.

Written by Panickos Neophytou

Cisco Catalyst 9000 Series switches running Cisco IOS-XE 16.12.1 or 17.x support native Docker container hosting via Cisco IOx Application Hosting. This guide walks through deploying the netbeez/nb-agent Docker container directly on a Catalyst 9300, 9400, or 9500 switch and registering it with your NetBeez NextGen dashboard.

In this article:

Requirements

  • Switch Hardware: Cisco Catalyst 9300, 9400, or 9500 Series switch.

  • External SSD Storage: Cisco USB SSD-120G plugged into the rear USB port on Catalyst 9300 (usbflash1:/), or equivalent Cisco SSD module on Catalyst 9400/9500.

  • Cisco IOS-XE Version: Version 16.12.1 or 17.x (verify with show version).

  • Switch Licensing: Cisco Network Advantage and DNA Advantage licenses (verify with show license summary).

  • NetBeez NextGen Server & Secret Key: An active NetBeez NextGen dashboard and your Server Secret Key, located by Administrators in Settings → Information & Health under Server Information (or pre-populated inside Agents → Network Agents → Install Network Agent → Container).

  • Container Image: NetBeez Docker agent image netbeez/nb-agent (v2.0.5 or newer on Docker Hub).

Architecture Overview

The example topology in this guide configures the following switch resources (adjust VLAN IDs and interfaces to match your campus design):

  • The netbeez/nb-agent Docker container hosted inside Cisco IOx.

  • VLAN 123 and routed SVI interface Vlan123 (with DHCP and outbound reachability to your NetBeez server).

  • GigabitEthernet1/0/1 as the switch uplink port.

  • AppGigabitEthernet1/0/1 internal trunk port bridging IOx containers to the Catalyst switching backplane (see Cisco IOS-XE Application Hosting Documentation).

Before You Begin

  1. Verify that the Catalyst switch recognizes your SSD flash storage at usbflash1::

    dir usbflash1:
    Directory of usbflash1:/
       11 drwx           16384  Mar 25 2019 22:32:36 +00:00  lost+found
    118014062592 bytes total (105824313344 bytes free)

    If usbflash1: is not recognized, format the SSD as ext2 on a Linux workstation and reinsert it.

  2. Disable Cisco package signature verification so third-party Docker images can run under App Hosting:

    conf t
    app-hosting verification disable
    end

Step-by-Step Installation Configuration

1. Pull and Export the NetBeez Docker Image

On a workstation with Docker installed, pull the latest netbeez/nb-agent image and export it as a .tar archive:

docker pull netbeez/nb-agent
docker save netbeez/nb-agent > netbeez.tar

2. Copy netbeez.tar to the Catalyst Switch

  • Option A — USB Thumb Drive: Copy netbeez.tar onto a USB drive, insert it into the switch's USB port, and copy it to storage:

    copy usbflash1:netbeez.tar flash:
  • Option B — Secure Copy (SCP): Transfer netbeez.tar directly from an SCP host to usbflash1::

    copy scp: usbflash1:
    Address or name of remote host []?
    Source username [iox]?
    Source filename []?
    Destination filename [netbeez.tar]?
    Password:

3. Configure Switch VLAN and AppGigabitEthernet Connectivity

Ensure the VLAN assigned to the NetBeez container provides DHCP (or static IP routing) and outbound connectivity to your NetBeez NextGen server (see Network Firewall Settings).

  1. Create VLAN 123 and its VLAN interface:

    conf t
    vlan 123
     no shutdown
    interface Vlan123
     ip address 192.168.1.1 255.255.255.0
  2. Map the VLAN to uplink port GigabitEthernet1/0/1:

    interface GigabitEthernet1/0/1
     switchport access vlan 123
     switchport mode access
  3. Configure internal port AppGigabitEthernet1/0/1 as a trunk allowing VLAN 123:

    interface AppGigabitEthernet1/0/1
     switchport trunk allowed vlan 123
     switchport mode trunk
    end

4. Enable and Verify Cisco IOx Services

Enable IOx in global configuration mode and wait until all services report Running (including Dockerd):

conf t
iox
end
show iox-service
IOx Infrastructure Summary:
---------------------------
IOx service (CAF)      : Running
IOx service (HA)       : Running
IOx service (IOxman)   : Running
Libvirtd               : Running
Dockerd                : Running

5. Configure the Application vNIC Profile

Map container interface eth0 (guest-interface 0) onto VLAN 123 across the AppGigabitEthernet trunk:

conf t
app-hosting appid netbeez
 app-vnic AppGigabitEthernet trunk
  vlan 123 guest-interface 0

If your VLAN uses DHCP, skip the lines below. For a static IPv4 configuration, add the following inside the vlan 123 guest-interface 0 stanza:

  guest-ipaddress x.x.x.x netmask x.x.x.x
 app-default-gateway x.x.x.x guest-interface 0
 name-server0 x.x.x.x

6. Configure Dashboard Registration Options

Choose one of the three registration modes below based on your network environment (see the Docker Hub guide for all supported container variables):

  • Option 1 — Auto-Configuration with Server Secret Key (Direct Outbound Access):

    conf t
    app-hosting appid netbeez
     app-resource docker
      run-opts 1 "-e 'NB_SECRET_KEY=<SECRET_KEY>' -v netbeez:/etc/netbeez/persistence/:rw"
    end
  • Option 2 — Auto-Configuration via HTTP/HTTPS Proxy with Server Secret Key:

    conf t
    app-hosting appid netbeez
     app-resource docker
      run-opts 1 "-e 'NB_SECRET_KEY=<SECRET_KEY>' -e 'http_proxy=<HTTP_PROXY_URI>' -e 'https_proxy=<HTTPS_PROXY_URI>' -v netbeez:/etc/netbeez/persistence/:rw"
    end

    Example proxy URI: http://proxy.example.com:8080/.

  • Option 3 — Manual Offline / On-Premises Configuration (Unencrypted Port 20019):

    conf t
    app-hosting appid netbeez
     app-resource docker
      run-opts 1 "-e 'HOST=<SERVER_IP_OR_FQDN>' -e 'PORT=20019' -v netbeez:/etc/netbeez/persistence/:rw"
    end

    Note: Option 3 connects over unencrypted port 20019 rather than TLS-secured port 20018.

7. Allocate Container CPU, Memory, and Persistent Disk

conf t
app-hosting appid netbeez
 app-resource profile custom
  cpu 7400
  memory 1000
  persist-disk 4000
end

8. Install, Activate, and Start the NetBeez Application

  1. Install the container archive from usbflash1: and confirm state reaches DEPLOYED:

    app-hosting install appid netbeez package usbflash1:netbeez.tar
    show app-hosting list
  2. Activate and start the application, then verify state reaches RUNNING:

    app-hosting activate appid netbeez
    app-hosting start appid netbeez
    show app-hosting list
  3. Open Agents → Network Agents in your NetBeez NextGen dashboard to confirm the Catalyst-hosted container agent is online.

Managing and Troubleshooting the Container

  • Open an Interactive Container Shell: Inspect processes or environment variables directly inside the running container:

    app-hosting connect appid netbeez session
    printenv

    Confirm that NB_SECRET_KEY (or HOST and PORT) matches the values configured in Step 6.

  • Inspect Switch Resource Utilization:

    show app-hosting utilization appid netbeez
  • Verify Package Signature Verification Is Disabled: Run show app-hosting infra. If signature verification is still enabled, run conf t followed by app-hosting verification disable.

  • Further Connectivity Diagnostics: See Agent Doesn't Connect to the Dashboard.

Related Cisco Integrations

Did this answer your question?