Please refer the below script, it displays the content of the IP routing table of a device.
Code:
import os
command = " netstat -nr"
out=os.popen(command).read()
print (out)
Please refer the below script, it displays the content of the IP routing table of a device.
Code:
import os
command = " netstat -nr"
out=os.popen(command).read()
print (out)
20170213-List-IP4-Route-Table-Information.json (393 Bytes)