How to I get the gateway Cellular RSSI from Cisco IOx ?
If you have an IOx application that requires tp capture the cellular modem signal strength (for example to include in telemetry data along with GPS position and map signal with location), you will find that there is no direct way to get it from IOx. The reason is that the application hosting environment is virtualized and therefore Cisco IOS metrics are not directly accessible.
Simple Network Management Protocol (SNMP) which is an IOS feature can be leverage to exposed this variable or any other SNMP variable. SNMP can be easily configured on the gateway with just a few lines:
On a Cisco IR829 with guest-os running in the 192.168.1.0/24 range, where 192.168.1.1 is being assigned to the virtual Gigabit Ethernet 5 interface, then this is what it takes to give SNMP access to all the virtual instances running on the gateway:
IR829(config)# access-list 10 permit 192.168.1.0 0.0.0.255
IR829(config)# snmp-server community public RO 10
The IOx application can then poll the right SNMP OIDs straight from the gateway, and this OID may change depending on the particular model. Always refer the device's MIB.
For example in Python to poll both cellular interface's RSSI on a Cisco IR829M:
from pysnmp.entity.rfc3413.oneliner import cmdgen
SNMP_HOST = '192.168.1.1'
SNMP_PORT = 161
SNMP_COMMUNITY = 'public'
cmdGen = cmdgen.CommandGenerator()
errorIndication, errorStatus, errorIndex, varBinds = cmdGen.getCmd(
for name, val in varBinds:
print('%s = %s' % (name.prettyPrint(), val.prettyPrint()))
You should see the RSSI signal (in dBm) returned like so:
Hi, I have a problem with IOx server failing after a certain time. The server works fine but then drops out the first time GI0 loses connection. After that GI2 can't be reached anymore and my docker application loses connection. I have provided logs ...
I am facing some issue that I am not able to activate docker application on TSN, the CLI returns me error message as below:
admin#app-hosting activate appid tcpdump_tsn
% Error: Error while creating domain wrapper script [Errno 95] Operation not supported...
Hello, I came to a problem after updating IR809 to IOx 126.96.36.199 from IOx 1.5 using Bundle Image ir800-universalk9_npe-bundle.SPA.159-3.M.bin. After successfully updating the software, when I install an Docker application, ioxclient showed an error as ...
Morning, I was looking for some advice/information on whether I should carry on learning about IOx to deploy a simple Python based app to monitor the router status on a ISR1K. This will do the guestshell deployment but Im having issues getting ...
After upgrading my dev IR829 to 15.8. I'm no longer able to access the IOx local manager @ XXX.XXX.XXX.XXX:8443Did something change from 15.7 to 15.8? My applications are still working on ports 1880 and 8000 but not the IOx local manager.