Get UMTS or HSDPA status from bash

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
vikoadi

Get UMTS or HSDPA status from bash

Post by vikoadi »

I want to create a bash script that will reconnect when my connection goes to UMTS instead of HSDPA
i have done some script that will reconnect with nmcli but i can't get my modem UMTS or HSDPA status to break the loop.

Can someone help me find the tool?
I'm sure its possible because i've seen HSDPA/UMTS status in xfce network manager.

other solution other than bash and nmcli are welcome

thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10411
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Get UMTS or HSDPA status from bash

Post by Oscar799 »

Moved here by moderator
Image
AlbertP
Level 16
Level 16
Posts: 6701
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Get UMTS or HSDPA status from bash

Post by AlbertP »

Does ifconfig in terminal show any difference? You can do ifconfig | grep if you want to use one line of the output.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.
Locked

Return to “Scripts & Bash”