cancel
Showing results for 
Search instead for 
Did you mean: 

InquireHub - 3 (Three) / Greenpacket Outdoor router Y5-210MU Inquiry and Reboot utility

MymsMan
Rising star
You can connect to the hub via a web browser and scroll through the numerous information pages and perform various actions but this becomes tedious if you want to automate monitoring the hub regularly.

InquireHub makes it easier to automate routine hub monitoring by providing a simple command interface to the hub.

I have tried to pick the most useful fields from the various Hub displays and these are output in three ways:
  •     Displayed on screen at end of run
  •     Appended to a file in CSV format for input to a spreadsheet
  •     Returned in JSON format for possible use by another program
Frankly I don't understand the meanings of many of the acronyms used or the significance of the data presented!
I have tried to choose fields likely to vary over time rather than configuration constants but if I have missed something significant let me know, or change the query-list configuration to include it

Other functions included are:
  •     Download the hubs log file to a local file with timestamped name.
  •     Download the hubs configuration data to a local file with timestamped name.
  •     Reboot the hub
The script needs to have a user name and password to logon to the hub, these can be supplied via the command line or you can customize the script to save the need to enter them each time

Please give it a try and give feedback in this thread

Download InquireHub from GitHub

This package was inspired by and based upon check_and_reboot.py by @gavinmcnair.
Best solution
Best solution
MymsMan
Rising star

I have posted V2 of Inquire Hub on GitHub

Changes include:

* Added new function: Ping a web address
* Added new function: Clear Traffic statistics
* Function is now required on command line
* Use UTC timestamps
* Created Google spreadsheet to process csv file
* Added additional data to query output:
  * Traffic stats reset time
  * Internet info fields
  * TR069 configuration fields

Updated samples for V2

Display Hub Status

 python   ./inquirehub.py -p password -f


Selected data query_count=11 runtime=0.7654827999940608
{'QueryTime': '2025-09-14 15:00:23',
 'SignalScore': '75',
 'Signal5G': '75',
 'Signal4G': '36',
 'WAN_Address': '188.29.246.174',
 'WAN_Gateway': '188.29.246.172',
 'WAN_Uptime': '4days 19hours 5mins',
 'LastClearTime': '00:00:00',
 'CurrentVolume': '43.860GB',
 'CurrentVolumeDuration': '4 days 19 hours 6 mins',
 'MonthlyDataUsage': '46.744GB',
 'MonthlyDataUsageDuration': '5 days 4 hours 37 mins',
 'TotalDataUsage': '46.744GB',
 'TotalDataUsageDuration': '5 days 4 hours 37 mins',
 'RunningTime': '4days 19hours 6mins',
 'SoftwareVersion': '130.00100.113.024',
 'PortMode': 'IP Passthrough',
 'Status': 'Connected',
 'Operator': '3 UK',
 'WorkMode': 'NSA',
 'Band': '78',
 'CellId': '00',
 'ECellId': '000CC5800',
 'RSRP': '-102',
 'RSRQ': '-11',
 'SINR': '20',
 'TR069ServiceEnable': 'Disable',
 'PeriodicInformEnable': 'Disable',
 'PeriodicInformTime': '2025-09-09T19:54:45Z',
 'PeriodicInformInterval': 3600,
 'ConnectionRequestUsername': '',
 'SMS_In': 0,
 'Unread_SMS': 0,
 'SMS_Out': 0,
 'Unsent_SMS': 0,
 'Ipv4': '188.29.246.174',
 'Ipv6': '',
 'LeaseTime': '09-15-2025 09:21:58'}

 Command Help

python ./inquirehub.py -h
usage: inquirehub.py [-h] (-f [CSVFILE] | -nof | -l [LOGPATH] | -c [CONFIGPATH] | -pi [PINGURL] | -rs | --reboot) [-u USERID]
                     [-p PASSWORD] [-url URL] [-hdr | -nohdr] [-v | -q]

Retrieve data from Y5-210MU 5G Hub, VERSION='2.0'

options:
  -h, --help            show this help message and exit

Functions:
  -f, --CSVfile [CSVFILE]
                        Inquire and write CSV file, default=./InquireHub.csv
  -nof, --noCSVfile     Inquire and Don't write CSV file
  -l, --log [LOGPATH]   Save logs to logpath, default= ./
  -c, --config [CONFIGPATH]
                        Save Configuration to configpath, default=./
  -pi, -ping, --ping [PINGURL]
                        Ping URL from hub, default=www.google.com
  -rs, --resetStats     Reset traffic interval statistics
  --reboot              Reboot hub

Options:
  -u, --userid USERID   Hub userid, default=admin
  -p, --password PASSWORD
                        Hub user password
  -url URL              Router URL, default=https://192.168.0.1
  -hdr, --header        Write CSV header line, Default= header if file preexists, noHeader if it doesnt
  -nohdr, --noHeader    Don't write CSV header line
  -v, --verbose         Show full hub query output
  -q, --quiet           Hide query output

Ping Website

Using the hub to ping a website eliminates any overheads or problems introduced by your local network

python ./inquirehub.py -p password -pi microsoft.com
Ping to microsoft.com at 2025-09-14 15:11:46
PING microsoft.com (13.107.246.64): 56 data bytes
64 bytes from 13.107.246.64: seq=0 ttl=48 time=12.150 ms
64 bytes from 13.107.246.64: seq=1 ttl=48 time=16.444 ms
64 bytes from 13.107.246.64: seq=2 ttl=48 time=21.602 ms

--- microsoft.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 12.150/16.732/21.602 ms

 

View solution in conversation

13 REPLIES 13
Miki1960
Active

By doing this manually I found that "The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string"
By removing the ampersand from my password the scrip work beautifully thanks Bob.
One question though, My WAN_Uptime time correctly shows 5 minutes as I've just carried out a reboot wanting to prove precisely what is stopping the issues for me at least, but my  'CurrentVolumeDuration': shows '3 days 4 hours 31 mins', which corresponds to system information running time - why is this not reset with a reboot?

Miki1960
Active

Forget the question on the Current Volume Duration - The hub has rebooted correctly and is now showing the correct time

Miki1960
Active

Just to add I'm very grateful for your assistance

MymsMan
Rising star

Display Hub status

python InquireHub.py -p password


Selected data query_count=8 runtime=0.9514778999146074
{'QueryTime': '2025-08-07 20:26:43.698527',
 'SignalScore': '75',
 'Signal5G': '75',
 'Signal4G': '24',
 'WAN_Address': '92.41.161.92',
 'WAN_Gateway': '92.41.161.94',
 'WAN_Uptime': '22hours 48mins',
 'CurrentVolume': '16.091GB',
 'CurrentVolumeDuration': '22 hours 49 mins',
 'MonthlyDataUsage': '16.091GB',
 'MonthlyDataUsageDuration': '22 hours 49 mins',
 'TotalDataUsage': '16.091GB',
 'TotalDataUsageDuration': '22 hours 49 mins',
 'RunningTime': '22hours 49mins',
 'SoftwareVersion': '130.00100.113.024',
 'PortMode': 'IP Passthrough',
 'SMS_In': 2,
 'Unread_SMS': 1,
 'SMS_Out': 1,
 'Unsent_SMS': 0,
 'Ipv4': '92.41.161.92',
 'Ipv6': '',
 'LeaseTime': '08-08-2025 18:16:06'}

Display command help text

python InquireHub.py -h
usage: InquireHub.py [-h] [-u USERID] [-p PASSWORD] [-url URL] [-f CSVFILE | -nof | --reboot | -l [LOGPATH] |
                     -c [CONFIGPATH]] [-hdr | -nohdr] [-v | -q]

Retrieve data from Y5-210MU 5G Hub, VERSION='1.0'

options:
  -h, --help            show this help message and exit
  -u, --userid USERID   Hub userid, default=admin
  -p, --password PASSWORD
                        Hub user password
  -url URL              Router URL, default=https://192.168.0.1
  -f, --CSVfile CSVFILE
                        File for csv output, default=./InquireHub.csv
  -nof, --noCSVfile     Don't write CSV output file
  --reboot              Reboot hub
  -l, --log [LOGPATH]   Save logs to logpath, default= ./
  -c, --config [CONFIGPATH]
                        Save Configuration to configpath, default=./
  -hdr, --header        Write CSV header line, Default= header if file preexists, noHeader if it doesnt
  -nohdr, --noHeader    Don't write CSV header line
  -v, --verbose         Show full hub query output
  -q, --quiet           Hide query output