{
    "content": [
        {
            "type": "text",
            "text": "# nfsconf (man)\n\n## NAME\n\nnfsconf - Query various NFS configuration settings\n\n## SYNOPSIS\n\nnfsconf --dump [-v|--verbose] [-f|--file infile.conf] [outfile]\nnfsconf --entry [--arg subsection] section tag\nnfsconf --get [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\nnfsconf --isset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\nnfsconf  --set  [-v|--verbose]  [-m|--modified  Modified  by  text]  [-f|--file  infile.conf]\n[-a|--arg subsection] section tag value\nnfsconf --unset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\n\n## DESCRIPTION\n\nThe nfsconf command can be used to test for and retrieve configuration settings from a  range\nof nfs-utils configuration files.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (7 subsections)\n- **OPTIONS** (5 subsections)\n- **EXIT STATUS** (1 subsections)\n- **EXAMPLES** (5 subsections)\n- **FILES** (1 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "nfsconf",
        "section": "",
        "mode": "man",
        "summary": "nfsconf - Query various NFS configuration settings",
        "synopsis": "nfsconf --dump [-v|--verbose] [-f|--file infile.conf] [outfile]\nnfsconf --entry [--arg subsection] section tag\nnfsconf --get [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\nnfsconf --isset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\nnfsconf  --set  [-v|--verbose]  [-m|--modified  Modified  by  text]  [-f|--file  infile.conf]\n[-a|--arg subsection] section tag value\nnfsconf --unset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Increase verbosity and print debugging information."
            },
            {
                "flag": "-f",
                "long": "--file",
                "arg": null,
                "description": "Select a different config file to operate upon, default is /etc/nfs.conf Options only valid in --entry and --get and --isset modes."
            },
            {
                "flag": "-a",
                "long": "--arg",
                "arg": null,
                "description": "Select a specific sub-section Options only valid in --set mode."
            },
            {
                "flag": "-m",
                "long": "--modified",
                "arg": null,
                "description": "Set to empty to remove."
            }
        ],
        "examples": [
            "Check a new config file for syntax errors and output a sorted version for ease of com‐",
            "parison with existing settings.",
            "The  tool  allows for easy testing of configuration values from shell scripts, here we",
            "test if a specific value has been set.",
            "Show default value for background option for NFS mounts of the /home path.",
            "Enable debugging in nfsd"
        ],
        "see_also": [
            {
                "name": "nfsd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/nfsd/8/json"
            },
            {
                "name": "exportfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/exportfs/8/json"
            },
            {
                "name": "idmapd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/idmapd/8/json"
            },
            {
                "name": "statd",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/statd/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "Modes",
                        "lines": 2
                    },
                    {
                        "name": "-d, --dump",
                        "lines": 3,
                        "flag": "-d",
                        "long": "--dump"
                    },
                    {
                        "name": "-e, --entry",
                        "lines": 2,
                        "flag": "-e",
                        "long": "--entry"
                    },
                    {
                        "name": "-i, --isset",
                        "lines": 2,
                        "flag": "-i",
                        "long": "--isset"
                    },
                    {
                        "name": "-g, --get",
                        "lines": 2,
                        "flag": "-g",
                        "long": "--get"
                    },
                    {
                        "name": "-s, --set",
                        "lines": 5,
                        "flag": "-s",
                        "long": "--set"
                    },
                    {
                        "name": "-u, --unset",
                        "lines": 2,
                        "flag": "-u",
                        "long": "--unset"
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Options valid in all modes",
                        "lines": 1
                    },
                    {
                        "name": "-v, --verbose",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-f, --file",
                        "lines": 3,
                        "flag": "-f",
                        "long": "--file"
                    },
                    {
                        "name": "-a, --arg",
                        "lines": 3,
                        "flag": "-a",
                        "long": "--arg"
                    },
                    {
                        "name": "-m, --modified",
                        "lines": 2,
                        "flag": "-m",
                        "long": "--modified"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "all other modes",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "nfsconf -v --dump --file /tmp/testconf.conf sorted.conf",
                        "lines": 3
                    },
                    {
                        "name": "if ! nfsconf --isset gssd preferred-realm ; then echo  'No  preferred  realm  configured  for",
                        "lines": 1
                    },
                    {
                        "name": "gss'; fi",
                        "lines": 3
                    },
                    {
                        "name": "nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint background",
                        "lines": 2
                    },
                    {
                        "name": "nfsconf --file /etc/nfs.conf --set nfsd debug 1",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/etc/nfs.conf",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "nfsconf - Query various NFS configuration settings\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "nfsconf --dump [-v|--verbose] [-f|--file infile.conf] [outfile]\n\nnfsconf --entry [--arg subsection] section tag\n\nnfsconf --get [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\n\nnfsconf --isset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\n\nnfsconf  --set  [-v|--verbose]  [-m|--modified  Modified  by  text]  [-f|--file  infile.conf]\n[-a|--arg subsection] section tag value\n\nnfsconf --unset [-v|--verbose] [-f|--file infile.conf] [-a|--arg subsection] section tag\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The nfsconf command can be used to test for and retrieve configuration settings from a  range\nof nfs-utils configuration files.\n",
                "subsections": [
                    {
                        "name": "Modes",
                        "content": "The following modes are available:\n"
                    },
                    {
                        "name": "-d, --dump",
                        "content": "Output an alphabetically sorted dump of the current configuration in conf file format.\nAccepts an optional filename in which to write the output.\n",
                        "flag": "-d",
                        "long": "--dump"
                    },
                    {
                        "name": "-e, --entry",
                        "content": "retrieve the config entry rather than its current expanded value\n",
                        "flag": "-e",
                        "long": "--entry"
                    },
                    {
                        "name": "-i, --isset",
                        "content": "Test if a specific tag has a value set.\n",
                        "flag": "-i",
                        "long": "--isset"
                    },
                    {
                        "name": "-g, --get",
                        "content": "Output the current value of the specified tag.\n",
                        "flag": "-g",
                        "long": "--get"
                    },
                    {
                        "name": "-s, --set",
                        "content": "Update or Add a tag and value to the config file in a specified section, creating  the\ntag,  section,  and file if necessary. If the section is defined as '#' then a comment\nis appended to the file. If a comment is set with a tag name then any  exiting  tagged\ncomment with a matching name is replaced.\n",
                        "flag": "-s",
                        "long": "--set"
                    },
                    {
                        "name": "-u, --unset",
                        "content": "Remove the specified tag and its value from the config file.\n",
                        "flag": "-u",
                        "long": "--unset"
                    }
                ]
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "Options valid in all modes",
                        "content": ""
                    },
                    {
                        "name": "-v, --verbose",
                        "content": "Increase verbosity and print debugging information.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-f, --file",
                        "content": "Select a different config file to operate upon, default is /etc/nfs.conf\n\nOptions only valid in --entry and --get and --isset modes.",
                        "flag": "-f",
                        "long": "--file"
                    },
                    {
                        "name": "-a, --arg",
                        "content": "Select a specific sub-section\n\nOptions only valid in --set mode.",
                        "flag": "-a",
                        "long": "--arg"
                    },
                    {
                        "name": "-m, --modified",
                        "content": "Set to empty to remove.\n",
                        "flag": "-m",
                        "long": "--modified"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "--isset mode\nIn this mode the command will return success (0) if the selected tag has a value,  any  other\nexit code indicates the value is not set, or some other error has occurred.\n",
                "subsections": [
                    {
                        "name": "all other modes",
                        "content": "Success  is  indicated  by an exit status of zero, any other status indicates an error. Error\nmessages are output on stderr, and increasing verbosity will give more detailed  explanations\nif any are available.\n"
                    }
                ]
            },
            "EXAMPLES": {
                "content": "",
                "subsections": [
                    {
                        "name": "nfsconf -v --dump --file /tmp/testconf.conf sorted.conf",
                        "content": "Check a new config file for syntax errors and output a sorted version for ease of com‐\nparison with existing settings.\n"
                    },
                    {
                        "name": "if ! nfsconf --isset gssd preferred-realm ; then echo  'No  preferred  realm  configured  for",
                        "content": ""
                    },
                    {
                        "name": "gss'; fi",
                        "content": "The  tool  allows for easy testing of configuration values from shell scripts, here we\ntest if a specific value has been set.\n"
                    },
                    {
                        "name": "nfsconf --file /etc/nfsmount.conf --get --arg /home MountPoint background",
                        "content": "Show default value for background option for NFS mounts of the /home path.\n"
                    },
                    {
                        "name": "nfsconf --file /etc/nfs.conf --set nfsd debug 1",
                        "content": "Enable debugging in nfsd\n"
                    }
                ]
            },
            "FILES": {
                "content": "",
                "subsections": [
                    {
                        "name": "/etc/nfs.conf",
                        "content": ""
                    }
                ]
            },
            "SEE ALSO": {
                "content": "nfsd(8), exportfs(8), idmapd(8), statd(8)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Justin Mitchell <jumitche@redhat.com>\n\n\n\n2 May 2018                                   nfsconf(8)",
                "subsections": []
            }
        }
    }
}