Hi guys,
I know it is possible to use pymongo to execute db commands. But what about other functions like the one belonging to the "sh" object (when connecting as admin). Is it possible to invoke them using the command function ? I've try to look through the shell to see what the sh.stopBalancer was made of in case it was a direct call to a "db" command, but it is not the case.
An other solution I thought would maybe to use the drivers "eval" function to call it server-side, something like:
db.eval(pymongo.code.Code('sh.stopBalancer()'))
But that would be in case I cannot have an access with the drivers.
Thanks
Simon