What nfs and smb shares are available on a server (showmount, smbclient)?

The command to figure out what shares are available e.g. on the computer 192.168.0.2 type:
For nfs: /usr/sbin/showmount -e 192.168.0.2
For samba: smbclient -L 192.168.0.2