{
    "content": [
        {
            "type": "text",
            "text": "# devlink(8) (man)\n\n**Summary:** devlink - Devlink tool\n\n**Synopsis:** devlink [ OPTIONS ] { dev|port|monitor|sb|resource|region|health|trap } { COMMAND | help }\ndevlink [ -force ] -batch filename\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -V | --Version | — | Print the version of the devlink utility and exit. |\n| -b | — | — | Read commands from provided file or standard input and invoke them. First failure will cause termination of devlink. |\n| — | — | — | cution of the commands, the application return code will be non zero. |\n| -n | --no-nice-names | — | Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification. |\n| -j | --json | — | Generate JSON output. |\n| -p | --pretty | — | When combined with -j generate a pretty JSON output. |\n| -v | --verbose | — | Turn on verbose output. |\n| -s | --statistics | — | Output statistics. |\n| -N | — | — | Switches to the specified network namespace. |\n| -i | --iec | — | Print human readable rates in IEC units (e.g. 1Ki = 1024). OBJECT dev - devlink device. port - devlink port. |\n\n## See Also\n\n- devlink-dev(8)\n- devlink-port(8)\n- devlink-monitor(8)\n- devlink-sb(8)\n- devlink-resource(8)\n- vlink-region(8)\n- devlink-health(8)\n- devlink-trap(8)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (7 lines)\n- **OPTIONS** (1 lines) — 12 subsections\n  - -V --Version (3 lines)\n  - -b -batch (4 lines)\n  - -force (3 lines)\n  - -n --no-nice-names (4 lines)\n  - -j --json (3 lines)\n  - -p --pretty (3 lines)\n  - -v --verbose (3 lines)\n  - -s --statistics (3 lines)\n  - -N -Netns (3 lines)\n  - -i --iec (10 lines)\n  - monitor (6 lines)\n  - resource (22 lines)\n- **EXIT STATUS** (3 lines)\n- **SEE ALSO** (4 lines)\n- **REPORTING BUGS** (5 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\ndevlink - Devlink tool\n\n### SYNOPSIS\n\ndevlink [ OPTIONS ] { dev|port|monitor|sb|resource|region|health|trap } { COMMAND | help }\n\n\ndevlink [ -force ] -batch filename\n\n### OPTIONS\n\n#### -V --Version\n\nPrint the version of the devlink utility and exit.\n\n#### -b -batch\n\nRead commands from provided file or standard input and invoke them.  First failure\nwill cause termination of devlink.\n\n#### -force\n\ncution of the commands, the application return code will be non zero.\n\n#### -n --no-nice-names\n\nTurn off printing out nice names, for example netdevice ifnames instead of devlink\nport identification.\n\n#### -j --json\n\nGenerate JSON output.\n\n#### -p --pretty\n\nWhen combined with -j generate a pretty JSON output.\n\n#### -v --verbose\n\nTurn on verbose output.\n\n#### -s --statistics\n\nOutput statistics.\n\n#### -N -Netns\n\nSwitches to the specified network namespace.\n\n#### -i --iec\n\nPrint human readable rates in IEC units (e.g. 1Ki = 1024).\n\n\nOBJECT\ndev    - devlink device.\n\n\nport   - devlink port.\n\n#### monitor\n\n- watch for netlink messages.\n\n\nsb     - devlink shared buffer configuration.\n\n#### resource\n\n- devlink device resource configuration.\n\n\nregion - devlink address region access\n\n\nhealth - devlink reporting and recovery\n\n\ntrap   - devlink trap configuration\n\n\nCOMMAND\nSpecifies the action to perform on the object.  The set of possible actions depends on the\nobject type.  As a rule, it is possible to show (or list ) objects, but some objects do not\nallow all of these operations or have some additional commands. The help command is available\nfor all objects. It prints out a list of available commands and argument syntax conventions.\n\nIf no command is given, some default command is assumed.  Usually it is list or, if the ob‐\njects of this class cannot be listed, help.\n\n### EXIT STATUS\n\nExit status is 0 if command was successful or a positive integer upon failure.\n\n### SEE ALSO\n\ndevlink-dev(8), devlink-port(8), devlink-monitor(8), devlink-sb(8), devlink-resource(8), de‐‐\nvlink-region(8), devlink-health(8), devlink-trap(8),\n\n### REPORTING BUGS\n\nReport any bugs to the Network Developers mailing list <netdev@vger.kernel.org> where the de‐\nvelopment and maintenance is primarily done.  You do not have to be subscribed to the list to\nsend a message there.\n\n### AUTHOR\n\nJiri Pirko <jiri@mellanox.com>\n\n\n\niproute2                                     14 Mar 2016                                  DEVLINK(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "devlink",
        "section": "8",
        "mode": "man",
        "summary": "devlink - Devlink tool",
        "synopsis": "devlink [ OPTIONS ] { dev|port|monitor|sb|resource|region|health|trap } { COMMAND | help }\ndevlink [ -force ] -batch filename",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-V",
                "long": "--Version",
                "arg": null,
                "description": "Print the version of the devlink utility and exit."
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": "Read commands from provided file or standard input and invoke them. First failure will cause termination of devlink."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "cution of the commands, the application return code will be non zero."
            },
            {
                "flag": "-n",
                "long": "--no-nice-names",
                "arg": null,
                "description": "Turn off printing out nice names, for example netdevice ifnames instead of devlink port identification."
            },
            {
                "flag": "-j",
                "long": "--json",
                "arg": null,
                "description": "Generate JSON output."
            },
            {
                "flag": "-p",
                "long": "--pretty",
                "arg": null,
                "description": "When combined with -j generate a pretty JSON output."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Turn on verbose output."
            },
            {
                "flag": "-s",
                "long": "--statistics",
                "arg": null,
                "description": "Output statistics."
            },
            {
                "flag": "-N",
                "long": null,
                "arg": null,
                "description": "Switches to the specified network namespace."
            },
            {
                "flag": "-i",
                "long": "--iec",
                "arg": null,
                "description": "Print human readable rates in IEC units (e.g. 1Ki = 1024). OBJECT dev - devlink device. port - devlink port."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "devlink-dev",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-dev/8/json"
            },
            {
                "name": "devlink-port",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-port/8/json"
            },
            {
                "name": "devlink-monitor",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-monitor/8/json"
            },
            {
                "name": "devlink-sb",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-sb/8/json"
            },
            {
                "name": "devlink-resource",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-resource/8/json"
            },
            {
                "name": "vlink-region",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/vlink-region/8/json"
            },
            {
                "name": "devlink-health",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-health/8/json"
            },
            {
                "name": "devlink-trap",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/devlink-trap/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-V --Version",
                        "lines": 3,
                        "flag": "-V",
                        "long": "--Version"
                    },
                    {
                        "name": "-b -batch",
                        "lines": 4,
                        "flag": "-b"
                    },
                    {
                        "name": "-force",
                        "lines": 3
                    },
                    {
                        "name": "-n --no-nice-names",
                        "lines": 4,
                        "flag": "-n",
                        "long": "--no-nice-names"
                    },
                    {
                        "name": "-j --json",
                        "lines": 3,
                        "flag": "-j",
                        "long": "--json"
                    },
                    {
                        "name": "-p --pretty",
                        "lines": 3,
                        "flag": "-p",
                        "long": "--pretty"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-s --statistics",
                        "lines": 3,
                        "flag": "-s",
                        "long": "--statistics"
                    },
                    {
                        "name": "-N -Netns",
                        "lines": 3,
                        "flag": "-N"
                    },
                    {
                        "name": "-i --iec",
                        "lines": 10,
                        "flag": "-i",
                        "long": "--iec"
                    },
                    {
                        "name": "monitor",
                        "lines": 6
                    },
                    {
                        "name": "resource",
                        "lines": 22
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}