- Requirements
- Diagram
- Before you begin
- Step-by-step installation configuration
- Cisco Documentation on AppHosting [external link]
Cisco Solution Partner
NetBeez is a Cisco Preferred Solution Partner: the NetBeez agents are compatible with Cisco equipment. You can read more here. |
Other NetBeez Cisco integrations are available on the online documentation:
- Deployment of NetBeez agents with Cisco DNA
- Running NetBeez agents on Cisco ISR
- Running NetBeez agents on Cisco Catalyst 9000 (KVM version IOS-XE 16.9.X)
Requirements
This procedure assumes that you have the following resources:
- Cisco Catalyst 9300/9400/9500
- USB SSD-120G for the back panel USB port on the Catalyst 9300 switch (usbflash1:/)
- Similar storage for Cisco Catalyst 9400
- Cisco IOS-XE software version 16.12.1 (Release date: July 2019) or newer versions
-
show version
-
- Cisco Network Advantage and DNA Advantage
-
show license summary
-
- NetBeez dashboard
- NetBeez docker agent v2.0.5 (nb-agent) or newer versions (available on Docker Hub)
If you don't have an existing installation of NetBeez, you can request a demo here.
Diagram
The procedure that follows will set up the following resources:
- NetBeez docker container image
- VLAN 123 and VLAN 123 routed interface
- Gig 1/0/1 as uplink on the Catalyst
- AppGigEthernet port
Before you begin ...
Verify that the USB SSD-120G flash storage is recognized by the Catalyst:
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 the SSD is not recognized by the Catalyst, format it in ext2 on a Linux machine.
Step-by-step installation configuration
docker pull netbeez/nb-agent
docker save netbeez/nb-agent > netbeez.tar
copy usbflash0:netbeez.tar flash:
copy scp: flash:
Address or name of remote host []?
Source username [iox]?
Source filename []?
Destination filename [netbeez.tar]?
Password:
Sending file modes: C0644 522190336 netbeez.tar
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
522190336 bytes copied in 278.509 secs (1874950 bytes/sec)
vlan 123
no shutdown
conf t
interface Vlan123
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet1/0/1
switchport access vlan 123
switchport mode access
end
interface AppGigabitEthernet1/0/1
switchport trunk allowed vlan 123
switchport mode trunk
conf t
iox
show iox-service
IOx Infrastructure Summary:
---------------------------
IOx service (CAF) : Running
IOx service (HA) : Running
IOx service (IOxman) : Running
Libvirtd : Running
Dockerd : Running
conf t
app-hosting appid netbeez
app-vnic AppGigabitEthernet trunk
vlan 123 guest-interface 0
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
conf t
app-hosting appid netbeez
app-resource docker
run-opts 1 "-e 'NB_SECRET_KEY=<SECRET_KEY>' -v netbeez:/etc/netbeez/persistence/:rw"
conf t
app-hosting appid netbeez
app-resource docker
run-opts 1 "-e 'NB_SECRET_KEY=<SECRET_KEY>' -e 'http_proxy=<HTTP_PROXY_ADDRESS_PORT>' -e 'https_proxy=<HTTPS_PROXY_ADDRESS_PORT>' -v netbeez:/etc/netbeez/persistence/:rw"
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"
conf t
app-hosting appid netbeez
app-resource profile custom
cpu 7400
memory 1000
persist-disk 4000
app-hosting install appid netbeez package flash:netbeez.tar
Installing package 'flash:netbeez.tar' for netbeez. Use 'show app-hosting list' for progress.
show app-hosting list
App id State
------------------------------------------------------
netbeez DEPLOYED
app-hosting activate appid netbeez
netbeez activated successfully
Current state is: ACTIVATED
app-hosting start appid netbeez
netbeez started successfully
Current state is: RUNNING
show app-hosting list
App id State
---------------------------------------------------------
netbeez RUNNING
One may access the app console to verify the status of processes within the container.
app-hosting connect appid netbeez session
Check app resource utilization
show app-hosting utilization appid netbeez
Application: netbeez
CPU Utilization:
CPU Allocation: 7400 units
CPU Used: 1.49 %
Memory Utilization:
Memory Allocation: 2048 MB
Memory Used: 893 KB
Disk Utilization:
Disk Allocation: 4000 MB
Disk Used: 0.00 MB
10. Troubleshooting agent can't connect to the dashboard
If the agent is not showing on the dashboard, connect to it via the console:
app-hosting connect appid netbeez session
Then verify that is correctly configured with the server IP address and port:
printenv
Verify that the variables set in step 6 are correct, such as:
$NB_SECRET_KEY = <value>
or
$HOST = <value>
$PORT = <value>
Common issues
Software verification
Verify that software verification is disabled so that third party applications can run on app-hosting:
show app-hosting infra
Should the verification be enabled, disabled it with the following command:
conf t
app-hosting verification disable
0 Comments