{
    "mode": "man",
    "parameter": "rtmon",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/rtmon/8/json",
    "generated": "2026-06-15T13:11:12Z",
    "synopsis": "rtmon [ options ] file FILE [ all | LISTofOBJECTS ]",
    "sections": {
        "NAME": {
            "content": "rtmon - listens to and monitors RTnetlink\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rtmon [ options ] file FILE [ all | LISTofOBJECTS ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This manual page documents briefly the rtmon command.\n\nrtmon listens on netlink socket and monitors routing table changes.\n\nrtmon  can  be started before the first network configuration command is issued.  For example\nif you insert:\n",
            "subsections": [
                {
                    "name": "rtmon file /var/log/rtmon.log",
                    "content": "in a startup script, you will be able to view the full history later.  Certainly, it is  pos‐\nsible  to  start rtmon at any time. It prepends the history with the state snapshot dumped at\nthe moment of starting.\n\n"
                }
            ]
        },
        "OPTIONS": {
            "content": "rtmon supports the following options:\n",
            "subsections": [
                {
                    "name": "-Version",
                    "content": "Print version and exit.\n\nhelp   Show summary of options.\n"
                },
                {
                    "name": "file FILE [ all | LISTofOBJECTS ]",
                    "content": "Log output to FILE. LISTofOBJECTS is the list of object types that we want to monitor.\nIt  may contain 'link', 'address', 'route' and 'all'. 'link' specifies the network de‐\nvice, 'address' the protocol (IP or IPv6) address on a device, 'route' the routing ta‐\nble entry and 'all' does what the name says.\n"
                },
                {
                    "name": "-family [ inet | inet6 | link | help ]",
                    "content": "Specify  protocol  family.  'inet' is IPv4, 'inet6' is IPv6, 'link' means that no net‐\nworking protocol is involved and 'help' prints usage information.\n"
                },
                {
                    "name": "-4",
                    "content": "",
                    "flag": "-4"
                },
                {
                    "name": "-6",
                    "content": "",
                    "flag": "-6"
                },
                {
                    "name": "-0",
                    "content": "Shortcut for -family link.\n",
                    "flag": "-0"
                }
            ]
        },
        "USAGE EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "# rtmon file /var/log/rtmon.log",
                    "content": "Log to file /var/log/rtmon.log, then run:\n"
                },
                {
                    "name": "# ip monitor file /var/log/rtmon.log",
                    "content": "to display logged output from file.\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "ip(8)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "rtmon was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.\n\nThis  manual  page was written by Michael Prokop <mika@grml.org>, for the Debian project (but\nmay be used by others).\n\n\n\nRTMON(8)",
            "subsections": []
        }
    },
    "summary": "rtmon - listens to and monitors RTnetlink",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Print version and exit. help Show summary of options."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link' means that no net‐ working protocol is involved and 'help' prints usage information."
        },
        {
            "flag": "-4",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-6",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-0",
            "long": null,
            "arg": null,
            "description": "Shortcut for -family link."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "ip",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/ip/8/json"
        }
    ]
}