<div dir="ltr">All of this possible. If you want insight into what LAN traffic is doing, see if your CPEs support sflow. The new SmartRG stuff is supposed to support it. You will need to setup an sflow collector and config the CPE to send the sflow data, but it will give you granular information about which LAN devices are sending/receiving data.<div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 5, 2017 at 8:52 AM, Dan Therrien <span dir="ltr"><<a href="mailto:dan@mofinetwork.com" target="_blank">dan@mofinetwork.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-CA" link="blue" vlink="purple"><div class="m_-9095504586100096230WordSection1"><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Hi Dan, Thank you for responding.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">I see but this is assuming that the calculations are done on the device side. Always to focus them more on the server side if possible?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Say router has values in inform parameter for RX/TX, server somehow takes this and adds them to values already stored in database?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Just to clarify<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">          1/ router’s diff bandwidth rx=500 tx=500<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">          2/ Acs server already has values for rx/tx of 500<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">          3/ server then takes routers values and adds them to database of rx=1000 tx=1000<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Is it wise to access database outside Acs? I was thinking of PHP?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Is this possible?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Regards<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d">Dan<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dan Morphis [mailto:<a href="mailto:dan@milkcarton.com" target="_blank">dan@milkcarton.com</a>] <br><b>Sent:</b> June-05-17 12:31 PM<br><b>To:</b> <a href="mailto:dan@mofinetwork.com" target="_blank">dan@mofinetwork.com</a>; Community support for GenieACS users<br><b>Subject:</b> Re: GenieACS<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt">You can do something like this, changing the values to fit your needs. This script will refresh the parameters listed every 1.5 days. Create this as a provision script, then create a preset to run the provision.<u></u><u></u></p><div><p class="MsoNormal"><span style="font-family:"Courier New"">log("Running Refresh_ATM_Stats");</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">let twoDays = 1.5 * (24 * (60 * 60) * 1000); //1.5 days</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">let twoDaysAgo = Date.now() - twoDays;</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">let paramNames = [</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    "InternetGatewayDevice.<wbr>DeviceInfo.UpTime",</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamCurrRate',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamCurrRate',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamMaxRate',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamMaxRate',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamNoiseMargin',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.1.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamNoiseMargin',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    "InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamCurrRate",</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    "InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamCurrRate",</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    "InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamMaxRate",</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    "InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamMaxRate",</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>UpstreamNoiseMargin',</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    'InternetGatewayDevice.<wbr>WANDevice.12.<wbr>WANDSLInterfaceConfig.<wbr>DownstreamNoiseMargin'</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">];</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">for(let key of paramNames) {</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">    declare(key, {value: twoDaysAgo});</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Courier New"">}</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Mon, Jun 5, 2017 at 6:57 AM, Dan Therrien <<a href="mailto:dan@mofinetwork.com" target="_blank">dan@mofinetwork.com</a>> wrote:<u></u><u></u></p><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif">I’m trying to keep track of bandwidth usage and need some ideas.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif">I would like to have the router inform the genieACS server of the current value tx/rx and have the server retrieve that routers id and add that value as Bandwidth Usage. I don’t know where I would put this scripting.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif">Has anyone done this before?</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif">Thanks</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Trebuchet MS",sans-serif"> </span><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>______________________________<wbr>_________________<br>Users mailing list<br><a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br><a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div>