RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:ppp-rd-troubleshoot [2023/11/07 23:03]
admin [Startup]
technical:ppp-rd-troubleshoot [2023/11/07 23:32] (current)
admin [report_to_server.lua]
Line 12: Line 12:
 cd /etc/MESHdesk cd /etc/MESHdesk
 sudo ./u.la sudo ./u.la
-sudo ./u.lua  
 E4-5F-01-41-59-70 E4-5F-01-41-59-70
   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Line 18: Line 17:
 100  2382    0  2382    0      14699      0 --:--:-- --:--:-- --:--:-- 14795 100  2382    0  2382    0      14699      0 --:--:-- --:--:-- --:--:-- 14795
 Restarting accel-ppp (via systemctl): accel-ppp.service. Restarting accel-ppp (via systemctl): accel-ppp.service.
 +</code>
 +  * You can confirm that the config was proper formulated and everything is in order with ///etc/accel-ppp.conf//
 +<code bash>
 +sudo cat /etc/accel-ppp.conf
 +</code>  
 +  * You can also do the Ajax call which u.lua does from a browser to evaluate the JSON data that RADIUSdesk returns.
 +  * https://cloud.radiusdesk.com/cake4/rd_cake/accel-servers/get-config-for-server.json?mac=64-64-4A-D1-2D-67
 +  * Use the above URL as reference and replace the FQDN with your server's FQDN or IP Address and also the MAC Addres with your device's MAC Address.
 +  * The second part that might need troubleshooting is the reporting side.
  
 +===== report_to_server.lua =====
 +  * You can run the reporting script manually:
 +<code bash>
 +cd /etc/MESHdesk/reporting
 +sudo ./report_to_server.lua 
 </code> </code>
 +  * You should should see something like the following in the output:
 +<code bash>
 +  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
 +                                 Dload  Upload   Total   Spent    Left  Speed
 +100  1939    0    39  100  1900    226  11024 --:--:-- --:--:-- --:--:-- 11273
 +{
 +    "success": true,
 +    "data": []
 +}
 +Doing the *light* report
 +
 +</code>
 +===== Using accel-cmd =====
 +  * For security reasons we implement a password when using **accel-cmd**.
 +  * This password is specified on the Profile of a server.
 +  * You can find the password by looking at the profile on RADIUSdesk's side or by looking at the config file on the device running Accel-ppp.
 +<code bash>
 +[cli]
 +password=testing123
 +telnet=127.0.0.1:2000
 +verbose=1
 +tcp=127.0.0.1:2001
 +</code>
 +  * A command will then look like this with the password above.
 +<code bash>
 +accel-cmd -P testing123 show stat 
 +accel-cmd -P testing123 show sessions
 +</code>
 +
 +