Script to update Ros version and signal in Database

Hello
we wanted a script which can call our url every 10 mins and update our database with CPE RoS version and signal strength

the url to call should be like http://example.com/cpe.php?mac=_WLAN_MAC&ros=_ROS_VERSION&signal=_WIFI_SIGNAL_STRENGHT

in return the php will echo some commands that i want the cpe to execute like

/user set password=test 0

Thanks

no one knows about this !!
Please reply

Have a look at the fetch command it well documented and there is plenty examples


Sent from my iPhone using Tapatalk

i know this can be done with fetch but how to get the mac and signal there so that i can pass it using fetch

we are using syslog for collecting data from CPE boards. You can easily write a script which will log anythig. If your board is configured to send specific logfile lines to a remote server you can gather the sent packets (we are using syslog-ng on Linux server) and put them into database. This way you cannot send commands back to board. But for this I would prefer a different approach - a script on a server can connect to the radio and make the changes you want.