From: Zbigniew Jędrzejewski-Szmek Date: Tue, 20 Jan 2015 02:44:16 +0000 (-0500) Subject: man: add networkctl(1) X-Git-Tag: v219~425 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d9000fd3b3ad0728832007f56e9cafacfbbe54e7 man: add networkctl(1) --- diff --git a/Makefile-man.am b/Makefile-man.am index b2869c4ee..105853e47 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -22,6 +22,7 @@ MANPAGES += \ man/localtime.5 \ man/machine-id.5 \ man/machine-info.5 \ + man/networkctl.1 \ man/os-release.5 \ man/sd-daemon.3 \ man/sd-id128.3 \ @@ -1642,6 +1643,7 @@ EXTRA_DIST += \ man/machine-info.xml \ man/machinectl.xml \ man/modules-load.d.xml \ + man/networkctl.xml \ man/nss-myhostname.xml \ man/nss-mymachines.xml \ man/os-release.xml \ diff --git a/man/networkctl.xml b/man/networkctl.xml new file mode 100644 index 000000000..c3930909b --- /dev/null +++ b/man/networkctl.xml @@ -0,0 +1,175 @@ + + + + + + + + + networkctl + systemd + + + + Documentation + Zbigniew + Jędrzejewski-Szmek + zbyszek@in.waw.pl + + + + + + networkctl + 1 + + + + networkctl + Query the statuc of network links + + + + + networkctl + OPTIONS + COMMAND + LINK + + + + + Description + + networkctl may be used to introspect the + state of the network links as seen by + systemd-networkd. Please refer to + systemd-networkd.service8 + for an introduction to the the basic concepts, functionality, and + configuration syntax. + + + + Options + + The following options are understood: + + + + + + + + + + Show all links with status. + + + + + + + + + + + + Commands + + The following commands are understood: + + + + + list + + + + Show a list of existing links and their + status. Produces output similar to +IDX LINK TYPE OPERATIONAL SETUP + 1 lo loopback carrier unmanaged + 2 eth0 ether routable configured + 3 virbr0 ether no-carrier unmanaged + 4 virbr0-nic ether off unmanaged + +4 links listed. + + + + + + status + LINK... + + + + Show information about the specified links: type, + state, kernel module driver, hardware and IP address, + configured DNS servers, etc. + + When no links are specified, routable links are + shown. See also option . + + Produces output similar to + +● State: routable + Address: 10.193.76.5 on eth0 + 192.168.122.1 on virbr0 + 169.254.190.105 on eth0 + fe80::5054:aa:bbbb:cccc on eth0 + Gateway: 10.193.11.1 (CISCO SYSTEMS, INC.) on eth0 + DNS: 8.8.8.8 + 8.8.4.4 + + + + + + + lldp + + + + Show LLDP (Link Layer Discovery Protocol) + status. + + + + + + + Exit status + + On success, 0 is returned, a non-zero failure + code otherwise. + + + + See Also + + systemd-networkd.service8, + systemd.network5, + systemd.netdev5 + + + diff --git a/src/network/networkctl.c b/src/network/networkctl.c index f7e300b44..aa83f32f5 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -1018,7 +1018,7 @@ static void help(void) { " -a --all Show status for all links\n\n" "Commands:\n" " list List links\n" - " status LINK Show link status\n" + " status [LINK...] Show link status\n" " lldp Show lldp information\n" , program_invocation_short_name); }