There is no support for this directly in the server/client. You could
also use db.eval to run it on the server but the first method is
preferable IMHO.
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>
The mongo javascript shell (mongo) is a client just like any other
program. It uses a driver to communicate to the server using the
binary wire protocol.
$mongo primary.server
....
> rs.add("newNode:port")