Get the IPV4 route table details of a device

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)