clustergroup getnfsexports

Displays the list of exports from the /etc/exports file of an external NFS server that has been imported into a cluster group or global namespace.

The entries for the external NFS exports that are accessible to a Data Fabric user, are available in /etc/exports file on the external NFS server. The Data Fabric user is able to read from and write to such NFS exports.

The getnfsexports command lists the exports from /etc/exports file of an external NFS server that has been imported into the global namespace/cluster group.

The command lists a summary of the each export along with the total size of the export, used space, and free space available on the export.

NOTE The command supports NFSv4 servers only.

See clustergroup addexternal to add or import an external NFS server into the global namespace/cluster group via maprcli.

See clustergroup get cgtable to view external NFS server details via maprcli. See clustergroup remove cluster to remove the external NFS server from the cluster group via maprcli.

Syntax

CLI
maprcli clustergroup getnfsexports
                            -externalservername <external server name>      
REST
N/A

Parameters

Parameter Description
externalservername Name of the external NFS server

Example

Lists the export entries in the /etc/exports for an external NFS server having name extnfs

, alongwith the total, used, and free space on each export.

maprcli clustergroup getnfsexports -externalservername extnfs -json
{
        "timestamp":1698640394720,
        "timeofday":"2023-10-29 09:33:14.720 GMT-0700 PM",
        "status":"OK",
        "total":2,
        "data":[
                {
                        "exportpath":"/test2",
                        "size":"215G",
                        "used":"15G",
                        "avail":"200G"
                },
                {
                        "exportpath":"/test1",
                        "size":"215G",
                        "used":"15G",
                        "avail":"200G"
                }
        ]
}