Configure the sensor application
Note |
In this section, "CCVSensor" is used as the appid. |
-
Connect to the device through SSH or a console.
-
Configure the application payload by typing the following commands:
Cisco IE3300 10G/IE3400:
enable configure terminal app-hosting appid CCVSensor app-vnic AppGigabitEthernet trunk vlan 507 guest-interface 0 guest-ipaddress 192.168.69.208 netmask 255.255.255.0 vlan 2508 guest-interface 1 guest-ipaddress 169.254.1.2 netmask 255.255.255.0 app-default-gateway 192.168.69.1 guest-interface 0 app-resource profile custom persist-disk 2048 cpu 1400 memory 2048 vcpu 2 end
Cisco IE9300:
enable configure terminal app-hosting appid CCVSensor app-vnic AppGigabitEthernet trunk vlan 507 guest-interface 0 guest-ipaddress 192.168.69.90 netmask 255.255.255.0 vlan 2508 guest-interface 1 guest-ipaddress 169.254.1.2 netmask 255.255.255.252 app-default-gateway 192.168.69.190 guest-interface 0 app-resource docker run-opts 1 --rm app-resource profile custom cpu 1000 memory 862 persist-disk 4000 end
Cisco Catalyst 9300:
enable configure terminal app-hosting appid CCVSensor app-vnic AppGigabitEthernet trunk vlan 507 guest-interface 0 guest-ipaddress 192.168.69.210 netmask 255.255.255.0 vlan 2508 guest-interface 1 guest-ipaddress 169.254.1.2 netmask 255.255.255.0 app-default-gateway 192.168.69.1 guest-interface 0 app-resource profile custom persist-disk 8192 cpu 7400 memory 2048 vcpu 2 end
For the app-resource profile's custom values, refer to the result of the show app-hosting resource command.
In this example, all maximum values are used for:
-
the CPU (CPU available units, here 1400 for the Cisco IE3300 10G/IE3400, 1000 for the Cisco IE9300, and 7400 for the Cisco Catalyst 9300)
-
the VCPU (here 2), the memory (Memory available, here 2048)
-
the disk (only 2048 MB and 8192 MB respectively are used to let space for application updates)