nfs4mgmt list-exports

Returns the list of (current) exports.

Syntax

CLI
maprcli nfs4mgmt list-exports
       [ -nfshost <ip/hostname> ]
       [ -nfsport <port> ]
REST
N/A

Parameters

Parameter Description
nfshost The NFS server host. Value can be the IP address or the hostname of the NFS server host. The default value is 127.0.0.1.
nfsport The NFS server port. The default value is 9995.

Output

Example

Troubleshooting

Issue
Sometimes, you might see the following error when you run the list-exports command:
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.ganesha.nfsd was not provided by any .service files
Resolution
Modify the /etc/dbus-1/system.conf file as shown below:
  1. Remove the following:
    <deny send_destination="org.freedesktop.DBus"
                    send_interface="org.freedesktop.DBus"
                    send_member="UpdateActivationEnvironment"/>
  2. Add the following:
    <allow send_interface="*"/>
    <allow receive_interface="*"/>
    <allow own="*"/>