The rpcentry class allows you to look up entries from /etc/rpc or from elsewhere if you're using the Name Service Switch.