Child pages
  • Mongo tricks
Skip to end of metadata
Go to start of metadata
> db.noc.inv.discovery_id.find({"chassis_mac": {$elemMatch: {"first_mac": /^00:19:55/} } })
{ "_id" : ObjectId("53ccda7a4a5e6867767e9fff"), "chassis_mac" : [  {  "last_mac" : "00:19:55:00:00:00",  "first_mac" : "00:19:55:00:00:00" } ], "hostname" : "MYSWITCH", "object" : 10 }
  • No labels