<div dir="ltr">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.<br><br><div><font face="monospace, monospace">log("Running Refresh_ATM_Stats");</font></div><div><font face="monospace, monospace">let twoDays = 1.5 * (24 * (60 * 60) * 1000); //1.5 days</font></div><div><font face="monospace, monospace">let twoDaysAgo = Date.now() - twoDays;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">let paramNames = [</font></div><div><font face="monospace, monospace">    "InternetGatewayDevice.DeviceInfo.UpTime",</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.UpstreamCurrRate',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.DownstreamCurrRate',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.UpstreamMaxRate',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.DownstreamMaxRate',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.UpstreamNoiseMargin',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.1.WANDSLInterfaceConfig.DownstreamNoiseMargin',</font></div><div><font face="monospace, monospace">    "InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.UpstreamCurrRate",</font></div><div><font face="monospace, monospace">    "InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.DownstreamCurrRate",</font></div><div><font face="monospace, monospace">    "InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.UpstreamMaxRate",</font></div><div><font face="monospace, monospace">    "InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.DownstreamMaxRate",</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.UpstreamNoiseMargin',</font></div><div><font face="monospace, monospace">    'InternetGatewayDevice.WANDevice.12.WANDSLInterfaceConfig.DownstreamNoiseMargin'</font></div><div><font face="monospace, monospace">];</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">for(let key of paramNames) {</font></div><div><span style="font-family:monospace,monospace">    declare(key, {value: twoDaysAgo});</span><br></div><div><font face="monospace, monospace">}</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 5, 2017 at 6:57 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="#0563C1" vlink="#954F72"><div class="m_-2616125705033889061WordSection1"><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif">I’m trying to keep track of bandwidth usage and need some ideas.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;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.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif">Has anyone done this before?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif">Thanks<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Trebuchet MS",sans-serif"><u></u> <u></u></span></p></div></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>