You can always use an exec
node to send commands and look at the output. Try this one"
ip r | grep default
Try this flow:
[{"id":"be67361ec73c22c4","type":"inject","z":"98ab90c151b96159","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"ip route | grep default","payloadType":"str","x":220,"y":560,"wires":[["305cc996126ee9a5"]]},{"id":"c9a114a973dbb2da","type":"debug","z":"98ab90c151b96159","name":"debug 35","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":500,"wires":[]},{"id":"305cc996126ee9a5","type":"exec","z":"98ab90c151b96159","command":"","addpay":"payload","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":430,"y":560,"wires":[["c9a114a973dbb2da"],["7e377194af54b2aa"],["a8d551509a9038a0"]]},{"id":"7e377194af54b2aa","type":"debug","z":"98ab90c151b96159","name":"debug 36","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":560,"wires":[]},{"id":"a8d551509a9038a0","type":"debug","z":"98ab90c151b96159","name":"debug 37","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":720,"y":620,"wires":[]},{"id":"a384c836e1be463a","type":"catch","z":"98ab90c151b96159","name":"","scope":null,"uncaught":false,"x":240,"y":640,"wires":[["772bea42be29c0ba"]]},{"id":"772bea42be29c0ba","type":"debug","z":"98ab90c151b96159","name":"debug 38","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":460,"y":660,"wires":[]}]