Hi Miguel,
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. Hope that helps. Best regards, George Chelidze On 06/21/2018 01:12 AM, Miguel Angel Bérniz wrote: > Hi George, > > 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. > > 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. > > Anyways, thanks a lot for your help. > > Miguel > > > ------------------------------------------------------------------------ > *From: *"Miguel Angel Bérniz" <[email protected]> > *To: *"Community support for GenieACS users" <[email protected]> > *Sent: *Wednesday, 20 June, 2018 11:07:40 PM > *Subject: *Re: Syntax to create a preset with two tags > > Hi, > > After having a look at GUI edit preset page source code, I found the > way to do it > > curl -i > 'http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA' -vX > DELETE > curl -i > 'http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA' -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" }] }' > > I post this here for reference. > > Kind regards, > > Miguel > ------------------------------------------------------------------------ > *From: *"Miguel Angel Bérniz" <[email protected]> > *To: *[email protected] > *Sent: *Wednesday, 20 June, 2018 9:46:54 PM > *Subject: *Syntax to create a preset with two tags > > Hi, > > Does anyone know how to create a preset with two tags. I cant find the > right syntax. > > For example > > curl -i > 'http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA' -vX > DELETE > curl -i > 'http://172.16.2.56:7557/presets/646EEA-G69_10-ISKT47845E90-DATA' -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" }] }' > > This only creates the second one. > > I have tried several combinations with no luck. > > Thanks in advance, > > Miguel > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users > > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://lists.genieacs.com/mailman/listinfo/users
