1) On your MongoDB server:
Substitute in the name of the package you are looking for in the name param, in this example we use satellite-clone
# mongo pulp_database
> db.units_rpm.find( {name: "satellite-clone"}, { id: 1})
{ "_id" : "33e8dfe8-87d3-43a9-849e-c65092f22f68" }
{ "_id" : "3e7b87e6-b67d-4655-87c6-2754e3dcfb21" }
{ "_id" : "203df79d-d71f-4d83-aa5b-be384de708e9" }