{"id":2842,"date":"2022-12-20T15:17:28","date_gmt":"2022-12-20T18:17:28","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/mii-diag-man8\/"},"modified":"2022-12-20T15:17:28","modified_gmt":"2022-12-20T18:17:28","slug":"mii-diag-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/mii-diag-man8\/","title":{"rendered":"MII-DIAG (man8)"},"content":{"rendered":"<h1 align=\"center\">MII-DIAG<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KNOWN BUGS\">KNOWN BUGS<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">mii-diag \u2212 Network adapter control and monitoring<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mii-diag<\/b> [<i>options<\/i>]<i><interface><\/i><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page documents briefly the <b>mii-diag<\/b> network adapter control and monitoring command. Addition documentation is available from http:\/\/scyld.com\/diag\/index.html.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This <b>mii-diag<\/b> command configures, controls and monitors the transceiver management registers for network interfaces, and configures driver operational parameters. For transceiver control <b>mii-diag<\/b> uses the Media Independent Interface (MII) standard (thus the command name). It also has additional Linux-specific controls to communicate parameters such as message enable settings and buffer sizes to the underlying device driver.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The MII standard defines registers that control and report network transceiver capabilities, link settings and errors. Examples are link speed, duplex, capabilities advertised to the link partner, status LED indications and link error counters.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>mii-diag<\/b> command supports both single character and long option names. Short options use a single dash (\u00c2\u00b4-\u00c2\u00b4) in front of the option character. For options without parameters, multiple options may be concatenated after a single dash. Long options are prefixed by two dashes (\u00c2\u00b4&#8211;\u00c2\u00b4), and may be abbreviated with a unique prefix. A long option may take a parameter of the form &#8211;arg=param or &#8211;arg param.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A summary of options is as follows. <b><br \/> \u2212A, &#8211;advertise <speed|setting><\/b><\/p>\n<p style=\"margin-left:22%;\"><b>\u2212F, &#8211;fixed-speed <speed|setting><\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Speed is one of: 100baseT4, 100baseTx, 100baseTx-FD, 100baseTx-HD, 10baseT, 10baseT-FD, 10baseT-HD. For more precise control an explicit numeric register setting is also allowed.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212a, \u2212-all-interfaces<\/b><\/p>\n<p style=\"margin-left:22%;\">Show the status of all interfaces. This option is not recommended with any other option, especially ones that change settings.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212s,\u2212-status<\/b><\/p>\n<p style=\"margin-left:22%;\">Return exit status 2 if there is no link beat.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212D<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Increase the debugging level. This may be used to understand the actions the command is taking.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212g, \u2212-read-parameters<\/b><\/p>\n<p style=\"margin-left:22%;\">Show driver-specific parameters.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212G, \u2212-set-parameters value[,value&#8230;]<\/b><\/p>\n<p style=\"margin-left:22%;\">Set driver-specific parameters. Set a adapter-specific parameters. Parameters are comma separated, with missing elements retaining the existing value.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212v<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Increase the verbosity level. Additional &#8220;-v&#8221; options increase the level further.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212V<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Show the program version information.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212w, \u2212-watch<\/b><\/p>\n<p style=\"margin-left:22%;\">Continuously monitor the transceiver and report changes.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212?<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"35%\">\n<p>Emit usage information.<\/p>\n<\/td>\n<td width=\"43%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Calling the command with just the interface name produces extensive output describing the transceiver capabilities, configuration and current status.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The \u2019&#8211;monitor\u2019 option allows scripting link beat changes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This option is similar to &#8211;watch, but with lower overhead and simplified output. It polls the interface only once a second and the output format is a single line per link change with three fixed words <br \/> <unknown|down||negotiating|up> <STATUS> <PARTNER-CAP><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Example output: mii-diag &#8211;monitor eth0 <br \/> down 0x7809 0x0000 <br \/> negotiating 0x7829 0x45e1 <br \/> up 0x782d 0x45e1 <br \/> down 0x7809 0x0000<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This may be used as <br \/> mii-diag &#8211;monitor eth0 | <br \/> while read linkstatus bmsr linkpar; do <br \/> case $linkstatus in <br \/> up) ifup eth0 ;; <br \/> down) ifdown eth0 ;; <br \/> esac <br \/> done<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It may be useful to shorten the DHCP client daemon timeout if it does not receive an address by adding the following setting to \/etc\/sysconfig\/network: DHCPCDARGS=&#8221;-t 3&#8243;<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ether-wake<\/b>(8),<b>net-diag<\/b>(8),<b>mii-tool<\/b>(8). <br \/> Addition documentation is available from http:\/\/scyld.com\/diag\/index.html.<\/p>\n<h2>KNOWN BUGS <a name=\"KNOWN BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The &#8211;all-interfaces option is quirky. There are very few settings that are usefully applied to all interfaces.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The manual pages, diagnostic commands, and many of the underlying Linux network drivers were written by Donald Becker for the Scyld Beowulf(\u2122) cluster system.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  mii-diag \u2212 Network adapter control and monitoring <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,192],"class_list":["post-2842","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-mii-diag"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=2842"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2842\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}