I have snmpd server (not mini version) running, so that my keenetic hero can pass network information to my home automation server.
I would like to access some information available on the web front end from a sh script, so I can serve it via SNMP.
More specifically, I am interested in the device list and in the internet connection status. For the device list, I am currently using the devices from the arp table via the ip command. However, the status of the devices is not the same as in the front end. I have not found a workaround for internet connectivity yet (as shown on the main web page).
Can anybody tell me how to access the infomation via shell scripts? The router seems to provide it via json, but I was not able to forge a request, and I think that is a bit of a convoluted way anyway. I would much rather use a command to the backend software, or find out what command happens in the background of the web requests.
Edit:
I found I can access my device list by telnet by "show ip hotspot". However, I need this in a shell script. How can I access the telnet commands from the linux shell?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Avee
Hi,
I have snmpd server (not mini version) running, so that my keenetic hero can pass network information to my home automation server.
I would like to access some information available on the web front end from a sh script, so I can serve it via SNMP.
More specifically, I am interested in the device list and in the internet connection status. For the device list, I am currently using the devices from the arp table via the ip command. However, the status of the devices is not the same as in the front end. I have not found a workaround for internet connectivity yet (as shown on the main web page).
Can anybody tell me how to access the infomation via shell scripts? The router seems to provide it via json, but I was not able to forge a request, and I think that is a bit of a convoluted way anyway. I would much rather use a command to the backend software, or find out what command happens in the background of the web requests.
Edit:
I found I can access my device list by telnet by "show ip hotspot". However, I need this in a shell script. How can I access the telnet commands from the linux shell?
Edited by Avee1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.