Configure the IE3x00 Device to Connect to IoT OD.
Execute a set of IOS commands on the device CLI to configure the device to connect to IoT OD.
In order for the IoT OD to establish a connection with the device, it is essential to have a privileged user (privilege level 15) available on the device. If such a user does not exist, you can create a user on the device using the username command as shown in the example below:
username odserviceuser privilege 15 algorithm-type scrypt secret
Ensure that the device profile with the matching credentials exists in IoT OD and this device profile is assigned to the current device you are using in IoT OD. To verify this, do the following:
- Click on the device entry in the Devices > Staged to open the device Summary page.
- Click View More and compare the values of Device Profile, Admin Username and Admin Password fields (Click the "eye" icon to view the password value) to the expected values.
Ensure that the minimum IOS XE version is 17.12.x.
Configure the authentication-related settings and WSMA settings.
IMPORTANT: Usage of the WSMA service relies on http, so both http server and http secure-server are required to be enabled in the configuration.
Note: Please review running-config on the device first. Some related configurations might be available out of the box.
aaa new-model
aaa authentication login default local
aaa authorization exec default local
ip http server
ip http authentication local
ip http secure-server
wsma agent exec
profile exec
wsma profile listener exec
transport http path /wsma/exec
cgna gzip
archive
path flash:/
maximum 3
IMPORTANT: The "ip http server" and "ip http secure-server" commands initiates a web server on the device, which can be accessed using port 443. If the device is exposed to the internet without enterprise firewall protection, it is important to control access to this web service to prevent potential security risks. For more details on this issue and resolution, see Technote: Troubleshooting tips. For any assistance, please contact: Cisco TAC
Configure the cgna transport profile.
The exact command to configure a transport profile will be different, based on the IOS-XE version running in the device.
- Configuration for devices running version 17.12.1 and above:
ida transport-profile wst
callhome-url wss://:443/wst/cgna/+
active
// Example for the US Cluster:
ida transport-profile wst
callhome-url wss://us.ciscoiot.com:443/wst/cgna/IE-3300-8U2X+FCW2507P3V3
active
// Example for the EU Cluster:
ida transport-profile wst
callhome-url wss://eu.ciscoiot.com:443/wst/cgna/IE-3300-8U2X+FCW2507P3V3
active
Configure the cgna registration profile.
cgna profile cg-nms-register
transport-profile wst
add-command show version | format flash:/managed/odm/cg-nms.odm
add-command show inventory | format flash:/managed/odm/cg-nms.odm
interval 3
active
url https://<IoTOD cluster FQDN>/cgna/ios/registration
gzip
Once the configuration is done, the device will connect to IoT OD and trigger the registration process.
Enable DNS on the switch, if it is not already acquired through DHCP server.
Note: This is important if the switch is configured with static IP and the static default gateway and not explicitly given a DNS server to use. In this example, we use a Cisco DNS. You can use any DNS server.
To verify, execute the following commands:
IR1800_FCW2720Y0B5#ping us.ciscoiot.com
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.84.105.79, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
IR1800_FCW2720Y0B5#
Ping will fail and that is expected, however it is important to validate that the hostname has been resolved to an ip address. The configured DNS server can be checked with "show ip dns view".
If the DHCP server does not provide DNS, a DNS must be explicitly configured in the device. An example is as below:
ip name-server 208.67.222.222 208.67.220.220