mongoexport --host ebf-dev-rep/mndb-ebf-dev-01.cisco.com:27048
,mngdb-ebf-dev-02.cisco.com:27048,mngdb-ebf-dev-03.cisco.com:27048 --username device_user --password mongo123 --db device_db --collection devices --query '{"entitlement_type":"FEATUREHASH"}' --out device.csv
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/769d7b80-010f-4ab9-ab2a-243efbbeebdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
mongoexport --host <hostdetails> --username <usename>--password <pwd> --db device_db --collection devices --query '{"entitlement_type":"FEATUREHASH"}' --out device.csv
Hi Hyndavi,
As you are using the MongoDB tools in a Windows environment can you use the following query string:
mongoexport --host ebf-dev-rep/mndb-ebf-dev-01.cisco.com:27048,mngdb-ebf-dev-02.cisco.com:27048,mngdb-ebf-dev-03.cisco.com:27048
--username <username> --password <password> --db device_db --collection devices
--query "{'entitlement_type':'FEATUREHASH'}" --out device.csv
The double quotes are used to surround the entire query string while the single quotes are used to surround the key and value strings.
Regards,
John Murphy