XOS: Possible to retrieve data as JSON or via python modules?


Is it possible to get the data listed in, say, “show system” or “show cellular 1” or similar commands in an easily parsable way?

Currently I’m parsing the formatted output from digidevice.cli.execute(“show system”) for example, and using somewhat error-prone regular expressions to parse out the data values.


There is a way if you are using the latest firmware

show system -fjson

Think this can be used with most show commands


1 Like