The Unix getent command does not exist in OSX. Starting from 10.5 (Leopard), the administrative databases have changed from Netinfo to DirectoryService, and the main tool for looking things in DS is dscl (see also this article at afp548.com).
For example, to query a user by UID with getent, you would run:
getent passwd <uid>
With dscl, you [...]