This returned true. But how come this command db.isMaster() returned the result but rs.status() doesn’t? The authentication is enabled in the environment.
mongo --host xxx.xxx.xxx.xx --port xxxxx --ipv6 --eval 'printjson(rs.status())' —> This resulted in error
mongo --host xxx.xxx.xxx.xx --port xxxxx --ipv6 --eval "db.isMaster().arbiterOnly" → This returned true
How? Why? Sorry for being naive. But need to understand it better.
Is there any list of commands that work only with authentication enabled or regardless of authentication enabled they work too? Or am I understanding it wrong?