Oct-19-2021, 06:54 AM
Hello,
(maybe someone have a simpler solution )
I need to know the status of my modem "UNKNOWN\UP\DOWN"
so I'm running this command:
I have try to use
something in the order of the args?
Thanks ,
*** if someone have a better way to check the status - it will also be great
Thanks,
(maybe someone have a simpler solution )
I need to know the status of my modem "UNKNOWN\UP\DOWN"
so I'm running this command:
ip a | grep "wwan"and this is the response I'm getting:
3: wwan0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000 inet 10.164.47.168/28 scope global wwan0then I will search for "UNKNOWN\UP\DOWN" in the response and know what to do
I have try to use
result = subprocess.run(['ip', 'a', '| grep wwan' ], stdout=subprocess.PIPE)but I get this
Command "| grep wwan" is unknown, try "ip address help".what did I do wrong?
something in the order of the args?
Thanks ,
*** if someone have a better way to check the status - it will also be great
Thanks,