<div dir="ltr">V-Parameters don't search for devices. V-Parameters are for simplifying the exposure of parameters.  Look at the <a href="https://github.com/zaidka/genieacs/wiki/Virtual-Parameters">Virtual Parameters</a> wiki for details on how to do fall back.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 3:08 AM, Sergio Fernández <span dir="ltr"><<a href="mailto:sergio19932@gmail.com" target="_blank">sergio19932@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi there,<br><br>I would need to call an extension script, in order to access an "Optical ID" from a DB of the OLT. I would like to have a Virtual Parameter like VirtualParameter.ID that contains that Optical ID, but if the Optical ID cannot be found, then select a MAC or a Serial of the CPE, in order for the field to not to be empty.<br><br>How would you do that? Because I would do it all in the VirtualParameter script, but how do I pass an argument with some identification from the ONT I want to search? And if I do it inside an Extension script, there is no option to declare() it.<br><br>Thank you very much!<br><br clear="all"><div><div class="m_4105667573055115782gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Sergio Fernández Rubio - <a href="https://www.linkedin.com/in/sergiofdz/" target="_blank">https://www.linkedin.com/in/<wbr>sergiofdz/<br></a></div><div dir="ltr"><div><span><a href="tel:+34%20687%2001%2069%2094" value="+34687016994" target="_blank">(+34) 687 016 994</a></span><br>CEO @ ACSdesk<br></div><div><a href="https://acsdesk.com" target="_blank">https://acsdesk.com</a><br></div></div></div></div></div></div></div></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>