<div dir="ltr">By signal test, I presume you mean duel ended line test? If thats the case, you need to set <span class=""><i>InternetGatewayDevice.WANDevice.1.WANDSLDiagnostics.LoopDiagnosticsState</i></span>
        <span class="">to "Requested" After I set that value, I immediately add a refreshObject on the </span><i>InternetGatewayDevice.WANDevice.1.WANDSLDiagnostics </i>object so that when the CPE comes back online, the diagnostic results will be sent right away.<div><br></div><div>While the test is being performed, I periodically query the acs to see if the refreshObject task is done. When its done, then I pull back the updated data and graph out the results.<br><div><br></div></div><div><div>If you want to ensure that back to back tests aren't performed, query the tasks for the device. And if you see "Requested" for LoopDiagnosticState, then delete that task. Speaking of, I should probably add that to my code :)</div></div><div><br></div><div>If you are interested in the formulas for decoding HLOGpsus, HLOGpsds, QLNpsus, QLNpsds, SNRpsus, SNRpsds, BITSpsds, BITSpsus, etc let me know.</div><div><br></div><div>-dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 7:30 AM, Christopher Chance <span dir="ltr"><<a href="mailto:cchance@newtechgrp.com" target="_blank">cchance@newtechgrp.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-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">Ok I got my OSS system working to pull signal tests from devices and display for my helpdesk, <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Basically  what I have it doing is…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p><u></u><span>1.<span style="font:7.0pt "Times New Roman"">       </span></span><u></u>Connects to MongoDB on GenieACS box, to perform a Serial Number query to find the DeviceID, (as our backend staff knows the SN not the OID etc).<u></u><u></u></p><p><u></u><span>2.<span style="font:7.0pt "Times New Roman"">       </span></span><u></u>Run a getParamaterValues API request to refresh the signal (using timeout = 10000, if it doesn’t respond 200 the device is offline right?)<u></u><u></u></p><p><u></u><span>3.<span style="font:7.0pt "Times New Roman"">       </span></span><u></u>If #2 returns 200 then run a devices query on API to grab the signal results<u></u><u></u></p><p style="margin-left:1.0in"><u></u><span>a.<span style="font:7.0pt "Times New Roman"">       </span></span><u></u>If #2 returns 202 then return “signal test results not available”.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Simple enough I think right? Let me know if you see any flaws or something I missed <span style="font-family:Wingdings">J</span><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But there is 1 issue I think, if my OSS staff clicks signal test and the device is offline, and we have some staff that will keep trying to get a test, it will keep adding tr69 tasks to the queue… or if they do a signal test and device is off and then an hour later they do it again and so on the device may have 5-10 getParmValues pending because it was offline.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is their any way to restrict the queue of the device, or abort the  getparamatervalues request if it doesn’t return 200? So never queue it for later… update values, if not possible abort instead of queue?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Or If theres a way, maybe that I can call something on the API, from my OSS automatically that if I get a 202, run an api to wipe that devices queue?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Chris<u></u><u></u></p></div></div><br>_______________________________________________<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" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>