<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Miguel,</tt></p>
<p><tt><br>
</tt></p>
<p><tt>You are welcome. To be able to retrieve data from mongodb you
can either use mongodb shell tool (mongodb-clients package in debian)
or install any mongodb GUI which will help you much. I
personally use Robo 3T which works great.</tt></p>
<p><tt><br>
</tt></p>
<p><tt>Hope that helps.</tt></p>
<p><tt><br>
</tt></p>
<p><tt>Best regards,</tt></p>
<p><tt><br>
</tt></p>
<p><tt>George Chelidze</tt><br>
</p>
<br>
<br>
<div class="moz-cite-prefix">On 06/21/2018 01:12 AM, Miguel Angel
Bérniz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1001007884.132.1529529148561.JavaMail.mberniz@GFS-NOC03">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">p { margin: 0; }</style>
<div style="font-family: arial,helvetica,sans-serif; font-size:
10pt; color: #000000"><span style="font-size: 13.3333px;
background-color: rgb(255, 255, 255);">Hi George,</span>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);"><br>
</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);">Thank you very much for your help. Yes, that was
the clue I was needing. I found it in paralell looking at the
HTML source code in the guy.</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);"><br>
</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);">I have no idea how to build a query to retrieve a
mongodb record, but I figured that was another way to get the
clue.</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);"><br>
</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);">Anyways, thanks a lot for your help.</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);"><br>
</div>
<div style="font-size: 13.3333px; background-color: rgb(255,
255, 255);">Miguel</div>
<div><br>
</div>
<br>
<hr id="zwchr">
<div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From:
</b>"Miguel Angel Bérniz" <a class="moz-txt-link-rfc2396E" href="mailto:mberniz@gibfibrespeed.com"><mberniz@gibfibrespeed.com></a><br>
<b>To: </b>"Community support for GenieACS users"
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.genieacs.com"><users@lists.genieacs.com></a><br>
<b>Sent: </b>Wednesday, 20 June, 2018 11:07:40 PM<br>
<b>Subject: </b>Re: Syntax to create a preset with two tags<br>
<br>
<style>p { margin: 0; }</style>
<div style="font-family: arial,helvetica,sans-serif;
font-size: 10pt; color: #000000"><font face="arial,
helvetica, sans-serif"><span style="font-size: 10pt;">Hi,</span></font>
<div style="color: rgb(0, 0, 0); font-family: arial,
helvetica, sans-serif; font-size: 10pt;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-family: arial,
helvetica, sans-serif; font-size: 10pt;">After having a
look at GUI edit preset page source code, I found the way
to do it</div>
<div style="color: rgb(0, 0, 0); font-family: arial,
helvetica, sans-serif; font-size: 10pt;"><br>
</div>
<div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;">curl -i
'<a class="moz-txt-link-freetext" href="http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA">http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA</a>'
-vX DELETE</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;">curl -i
'<a class="moz-txt-link-freetext" href="http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA">http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA</a>'
-vX PUT --data '{ "weight":1, "precondition":
"{\"summary.serialNumber\":\"ISKT47845E90\",
\"$and\":[{\"_tags\":{\"$ne\":\"CONFIG\"}},
{\"_tags\":\"BRIDGE\"}]}", "configurations": [{
"type": "value", "name":
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Enable",
"value": "false" }, { "type": "add_tag", "tag":
"CONFIG"}, { "type": "age", "name":
"InternetGatewayDevice.Layer2Bridging", "age": "25"
}] }'</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;">I post this here for
reference.</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;">Kind regards,</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;"><br>
</span></font></div>
<div><font face="arial, helvetica, sans-serif"><span
style="font-size: 13.3333px;">Miguel</span></font></div>
<hr id="zwchr" style="color: rgb(0, 0, 0); font-family:
arial, helvetica, sans-serif; font-size: 10pt;">
<div style="color: rgb(0, 0, 0); font-family: Helvetica,
Arial, sans-serif; font-size: 12pt; font-weight: normal;
font-style: normal; text-decoration: none;"><b>From: </b>"Miguel
Angel Bérniz" <a class="moz-txt-link-rfc2396E" href="mailto:mberniz@gibfibrespeed.com"><mberniz@gibfibrespeed.com></a><br>
<b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:users@lists.genieacs.com">users@lists.genieacs.com</a><br>
<b>Sent: </b>Wednesday, 20 June, 2018 9:46:54 PM<br>
<b>Subject: </b>Syntax to create a preset with two tags<br>
<br>
<style>p { margin: 0; }</style>
<div style="font-family: arial,helvetica,sans-serif;
font-size: 10pt; color: #000000">
<div>
<div style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);">Hi,</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);">Does anyone know how to
create a preset with two tags. I cant find the
right syntax.</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);">For example</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"
style="font-size: 13.3333px; background-color:
rgb(255, 255, 255);">
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">curl
-i '<span class="Object"
id="OBJ_PREFIX_DWT470_com_zimbra_url"
style="color: darkblue; cursor: pointer;"><a
target="_blank"
href="http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA"
style="color: darkblue;
text-decoration-line: none; cursor:
pointer;" moz-do-not-send="true">http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA</a></span>'
-vX DELETE</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">curl
-i '<span class="Object"
id="OBJ_PREFIX_DWT471_com_zimbra_url"
style="color: darkblue; cursor: pointer;"><a
target="_blank"
href="http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA"
style="color: darkblue;
text-decoration-line: none; cursor:
pointer;" moz-do-not-send="true">http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA</a></span>'
-vX PUT --data '{ "weight":1, "precondition":
"{\"summary.serialNumber\":\"ISKT47845E90\",
\"_tags\":{\"BRIDGE\":\"BRIDGE2\"}}",
"configurations": [{ "type": "value", "name":
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1.Enable",
"value": "false" }] }'</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">This
only creates the second one.</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">I
have tried several combinations with no luck.</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">Thanks
in advance,</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7"><br>
</div>
<div id="bd96e9a5-911f-44bb-8d96-74fdf61842a7">Miguel</div>
</div>
</div>
<br>
<br>
<div><br>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a class="moz-txt-link-freetext" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</div>
<br>
</div>
</div>
</div>
<br>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a>
<a class="moz-txt-link-freetext" href="http://lists.genieacs.com/mailman/listinfo/users">http://lists.genieacs.com/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>