From c333f062ddcba9b35330647bf6cbd0a07f2d786e Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 11 May 2017 14:55:55 +0200 Subject: New upstream version 1.8.0 --- docs/api/html/nmcli-examples.html | 60 ++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 20 deletions(-) (limited to 'docs/api/html/nmcli-examples.html') diff --git a/docs/api/html/nmcli-examples.html b/docs/api/html/nmcli-examples.html index 5a979cdf..63708031 100644 --- a/docs/api/html/nmcli-examples.html +++ b/docs/api/html/nmcli-examples.html @@ -5,9 +5,9 @@ nmcli-examples: NetworkManager Reference Manual - - - + + + @@ -16,8 +16,8 @@ Home Up -Prev -Next +Prev +Next
@@ -33,7 +33,7 @@

nmcli [OPTIONS...]

-

Description

+

Description

nmcli is a command-line client for NetworkManager. It allows controlling NetworkManager and reporting its status. For more information @@ -46,9 +46,9 @@

-

Examples

+

Examples

-

Example 1. Listing available Wi-Fi APs

+

Example 1. Listing available Wi-Fi APs

$ nmcli device wifi list
 *  SSID               MODE    CHAN  RATE       SIGNAL  BARS  SECURITY
@@ -71,7 +71,7 @@
 

-

Example 2. Showing general information and properties for a Wi-Fi interface

+

Example 2. Showing general information and properties for a Wi-Fi interface

$ nmcli -p -f general,wifi-properties device show wlan0
 ===========================================================================
@@ -113,7 +113,7 @@ WIFI-PROPERTIES.ADHOC:    yes
 

-

Example 3. Listing NetworkManager polkit permissions

+

Example 3. Listing NetworkManager polkit permissions

$ nmcli general permissions
 PERMISSION                                                VALUE
@@ -146,7 +146,7 @@ org.freedesktop.NetworkManager.reload                     auth

-

Example 4. Listing NetworkManager log level and domains

+

Example 4. Listing NetworkManager log level and domains

$ nmcli general logging
 LEVEL  DOMAINS
@@ -160,7 +160,7 @@ B,DISPATCH

-

Example 5. Changing NetworkManager logging

+

Example 5. Changing NetworkManager logging

$ nmcli g log level DEBUG domains CORE,ETHER,IP
 $ nmcli g log level INFO domains DEFAULT
@@ -173,7 +173,7 @@ B,DISPATCH

-

Example 6. Adding a bonding master and two slave connection profiles

+

Example 6. Adding a bonding master and two slave connection profiles

$ nmcli con add type bond ifname mybond0 mode active-backup
 $ nmcli con add type ethernet ifname eth1 master mybond0
@@ -189,7 +189,7 @@ B,DISPATCH

-

Example 7. Adding a team master and two slave connection profiles

+

Example 7. Adding a team master and two slave connection profiles

$ nmcli con add type team con-name Team1 ifname Team1 config team1-master-json.conf
 $ nmcli con add type ethernet con-name Team1-slave1 ifname em1 master Team1
@@ -217,7 +217,7 @@ B,DISPATCH

-

Example 8. Adding a bridge and two slave profiles

+

Example 8. Adding a bridge and two slave profiles

$ nmcli con add type bridge con-name TowerBridge ifname TowerBridge
 $ nmcli con add type ethernet con-name br-slave-1 ifname ens3 master TowerBridge
@@ -236,7 +236,7 @@ B,DISPATCH

-

Example 9. Adding an ethernet connection profile with manual IP configuration

+

Example 9. Adding an ethernet connection profile with manual IP configuration

$ nmcli con add con-name my-con-em1 ifname em1 type ethernet \
   ip4 192.168.100.100/24 gw4 192.168.100.1 ip4 1.2.3.4 ip6 abbe::cafe
@@ -259,7 +259,27 @@ B,DISPATCH

-

Example 10. Escaping colon characters in tabular mode

+

Example 10. Convenient field values retrieval for scripting

+
+
$ nmcli -g ip4.address connection show my-con-eth0
+192.168.1.12/24
+
$ nmcli -g ip4.address,ip4.dns connection show my-con-eth0
+192.168.1.12/24
+192.168.1.1
+
$ nmcli -g ip4 connection show my-con-eth0
+IP4:192.168.1.12/24:192.168.1.1::192.168.1.1::
+

+ This example shows retrieval of ip4 connection field values via the --get-values + option. Multiple comma separated fields can be provided: they will be printed one + per line. If a whole section is provided instead of a single field, the name of the + section will be printed followed by all the related field values on the same line. + See also --terse, --mode, --fields and --escape options in nmcli(1) + manual page for more customized output. +

+
+
+
+

Example 11. Escaping colon characters in tabular mode

$ nmcli -t -f general -e yes -m tab dev show eth0
 GENERAL:eth0:ethernet:Intel Corporation:82567LM Gigabit Network Connection:
@@ -274,7 +294,7 @@ nager/ActiveConnection/9

-

Example 11. nmcli usage in a NetworkManager dispatcher script to make Ethernet and Wi-Fi mutually exclusive

+

Example 12. nmcli usage in a NetworkManager dispatcher script to make Ethernet and Wi-Fi mutually exclusive

 #!/bin/bash
@@ -312,7 +332,7 @@ fi
 

Example sessions of interactive connection editor

-

Example 12. Adding an ethernet connection profile in interactive editor (a)

+

Example 13. Adding an ethernet connection profile in interactive editor (a)

$ nmcli connection edit type ethernet
 
@@ -550,7 +570,7 @@ Connection 'ethernet-4' (de89cdeb-a3e1-4d53-8fa0-c22546c775f4) successfully
 
-

See Also

+

See Also

nmcli(1), NetworkManager(8), -- cgit 1.3.0-6-gf8a5