Академический Документы
Профессиональный Документы
Культура Документы
SYNOPSIS
nmcli [ OPTIONS ] OBJECT { COMMAND | help }
OPTIONS := {
-t[erse]
-p[retty]
-m[mode] tabular | multiline
-f[ields] <field1,field2,...> | all | common
-e[scape] yes | no
-v[ersion]
-h[elp]
}
DESCRIPTION
nmcli is a command-line tool for controlling NetworkManager and getting
its status. It is not meant as a replacement of nm-applet or other
similar clients. Rather it's a complementary utility to these
programs. The main nmcli's usage is on servers, headless machines or
just for power users who prefer the command line.
-- User sessions: For this case, nmcli can talk to nm-applet to find
user connections. It can still talk directly to NetworkManager for
manipulating these connections. As nmcli doesn't have direct
access to user configuration data in GConf, nm-applet handles that
itself. That may, for example, cause the applet to pop up keyring
dialogs when secrets are needed.
OPTIONS
-t, --terse
Output is terse. This mode is designed and suitable for
computer (script) processing.
-p, --pretty
Output is pretty. This causes nmcli to produce easy readable
outputs for humans, i.e. values are aligned, headers are
printed, etc.
-v, --version
Show nmcli version.
-h, --help
Print help information.
OBJECT
nm NetworkManager
Use this object to inquire and change state of NetworkManager.
status
Show overall status of NetworkManager. This is the
default action, when no command is provided to nm object.
Reference to D-Bus:
No simple reference.
sleep
Put NetworkManager to sleeping mode. Thus all interfaces
that NetworkManager manages are deactivated.
Reference to D-Bus:
interface: org.freedesktop.NetworkManager
method: Sleep
arguments: TRUE
wakeup
Awake NetworkManager from sleep. When NetworkManager is
awaken, devices are available to be activated.
Reference to D-Bus:
interface: org.freedesktop.NetworkManager
method: Sleep
arguments: FALSE
wifi [on|off]
Inquire or set status of WiFi in NetworkManager. Without
any further argument, WiFi status is printed; on enables
WiFi; off disables WiFi.
Reference to D-Bus:
No simple reference.
wwan [on|off]
Inquire or set status of WWAN in NetworkManager. Without
any further argument, WWAN status is printed; on enables
WWAN; off disables WWAN.
Reference to D-Bus:
No simple reference.
con Connections
Get information about NetworkManager's connections.
status
Print status of active connections.
Reference to D-Bus:
No simple reference.
dev Devices
Get information about devices.
status
Print status of devices. This is the default action,
when no command is specified to dev object.
Reference to D-Bus:
No simple reference.