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)