NetworkManager and nm-tool

If you wish to check the speed of network interfaces on a CentOS Linux system, if the nm-tool utility, is installed, then you can use it to determine the speed of the network ports.

$ nm-tool

NetworkManager Tool

State: disconnected

- Device: em1 ------------------------------------------------------------------
  Type:              Wired
  Driver:            bnx2
  State:             unmanaged
  Default:           no
  HW Address:        D4:AE:52:CD:0A:D4

  Capabilities:
    Carrier Detect:  yes
    Speed:           1000 Mb/s

  Wired Properties
    Carrier:         on


- Device: em2 ------------------------------------------------------------------
  Type:              Wired
  Driver:            bnx2
  State:             unmanaged
  Default:           no
  HW Address:        D4:AE:52:CD:0A:D5

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:         off


$

If it is installed, the nm-tool program will likely be in /usr/bin . It is part of the NetworkManager package.

$ which nm-tool
/usr/bin/nm-tool
$ rpm -qf /usr/bin/nm-tool
NetworkManager-0.8.1-113.el6.x86_64
$ rpm -qi NetworkManager
Name        : NetworkManager               Relocations: (not relocatable)
Version     : 0.8.1                             Vendor: CentOS
Release     : 113.el6                       Build Date: Thu 23 Mar 2017 04:28:36 AM EDT
Install Date: Thu 20 Apr 2017 02:32:54 PM EDT      Build Host: c1bm.rdu2.centos.org
Group       : System Environment/Base       Source RPM: NetworkManager-0.8.1-113.el6.src.rpm
Size        : 5506593                          License: GPLv2+
Signature   : RSA/SHA1, Thu 23 Mar 2017 10:59:36 AM EDT, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://www.gnome.org/projects/NetworkManager/
Summary     : Network connection manager and user applications
Description :
NetworkManager is a system network service that manages your network devices
and connections, attempting to keep active network connectivity when available.
It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and
provides VPN integration with a variety of different VPN services.
$

If you install the NetworkManager package, or it is already installed, you will have the following files on the system:

Udemy - April2516-25off-sitewide120x600





$ rpm -ql NetworkManager
/etc/NetworkManager
/etc/NetworkManager/NetworkManager.conf
/etc/NetworkManager/VPN
/etc/NetworkManager/dispatcher.d
/etc/NetworkManager/system-connections
/etc/dbus-1/system.d/NetworkManager.conf
/etc/dbus-1/system.d/nm-avahi-autoipd.conf
/etc/dbus-1/system.d/nm-dhcp-client.conf
/etc/dbus-1/system.d/nm-dispatcher.conf
/etc/dbus-1/system.d/nm-ifcfg-rh.conf
/etc/rc.d/init.d/NetworkManager
/lib/udev/rules.d/77-nm-olpc-mesh.rules
/usr/bin/nm-online
/usr/bin/nm-tool
/usr/bin/nmcli
/usr/lib64/NetworkManager
/usr/lib64/NetworkManager/libnm-settings-plugin-ibft.so
/usr/lib64/NetworkManager/libnm-settings-plugin-ifcfg-rh.so
/usr/lib64/NetworkManager/libnm-settings-plugin-keyfile.so
/usr/lib64/pppd/2.4.5/nm-pppd-plugin.so
/usr/libexec/nm-avahi-autoipd.action
/usr/libexec/nm-crash-logger
/usr/libexec/nm-dhcp-client.action
/usr/libexec/nm-dispatcher.action
/usr/sbin/NetworkManager
/usr/share/NetworkManager
/usr/share/NetworkManager/gdb-cmd
/usr/share/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
/usr/share/doc/NetworkManager-0.8.1
/usr/share/doc/NetworkManager-0.8.1/AUTHORS
/usr/share/doc/NetworkManager-0.8.1/CONTRIBUTING
/usr/share/doc/NetworkManager-0.8.1/COPYING
/usr/share/doc/NetworkManager-0.8.1/NEWS
/usr/share/doc/NetworkManager-0.8.1/README
/usr/share/doc/NetworkManager-0.8.1/TODO
/usr/share/locale/ar/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ar/LC_MESSAGES/nm-applet.mo
/usr/share/locale/as/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/as/LC_MESSAGES/nm-applet.mo
/usr/share/locale/be/LC_MESSAGES/nm-applet.mo
/usr/share/locale/be@latin/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/be@latin/LC_MESSAGES/nm-applet.mo
/usr/share/locale/bg/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/bg/LC_MESSAGES/nm-applet.mo
/usr/share/locale/bn_IN/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/bn_IN/LC_MESSAGES/nm-applet.mo
/usr/share/locale/bs/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/bs/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ca/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ca/LC_MESSAGES/nm-applet.mo
/usr/share/locale/crh/LC_MESSAGES/nm-applet.mo
/usr/share/locale/cs/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/cs/LC_MESSAGES/nm-applet.mo
/usr/share/locale/da/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/da/LC_MESSAGES/nm-applet.mo
/usr/share/locale/de/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/de/LC_MESSAGES/nm-applet.mo
/usr/share/locale/dz/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/dz/LC_MESSAGES/nm-applet.mo
/usr/share/locale/el/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/el/LC_MESSAGES/nm-applet.mo
/usr/share/locale/en_CA/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/en_CA/LC_MESSAGES/nm-applet.mo
/usr/share/locale/en_GB/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/en_GB/LC_MESSAGES/nm-applet.mo
/usr/share/locale/eo/LC_MESSAGES/nm-applet.mo
/usr/share/locale/es/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/es/LC_MESSAGES/nm-applet.mo
/usr/share/locale/et/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/et/LC_MESSAGES/nm-applet.mo
/usr/share/locale/eu/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/eu/LC_MESSAGES/nm-applet.mo
/usr/share/locale/fi/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/fi/LC_MESSAGES/nm-applet.mo
/usr/share/locale/fr/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/fr/LC_MESSAGES/nm-applet.mo
/usr/share/locale/gl/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/gl/LC_MESSAGES/nm-applet.mo
/usr/share/locale/gu/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/gu/LC_MESSAGES/nm-applet.mo
/usr/share/locale/he/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/he/LC_MESSAGES/nm-applet.mo
/usr/share/locale/hi/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/hi/LC_MESSAGES/nm-applet.mo
/usr/share/locale/hr/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/hr/LC_MESSAGES/nm-applet.mo
/usr/share/locale/hu/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/hu/LC_MESSAGES/nm-applet.mo
/usr/share/locale/id/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/id/LC_MESSAGES/nm-applet.mo
/usr/share/locale/it/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/it/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ja/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ja/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ka/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/kn/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/kn/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ko/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ko/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ku/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ku/LC_MESSAGES/nm-applet.mo
/usr/share/locale/lt/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/lt/LC_MESSAGES/nm-applet.mo
/usr/share/locale/lv/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/lv/LC_MESSAGES/nm-applet.mo
/usr/share/locale/mk/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/mk/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ml/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ml/LC_MESSAGES/nm-applet.mo
/usr/share/locale/mr/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/mr/LC_MESSAGES/nm-applet.mo
/usr/share/locale/nb/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/nb/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ne/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ne/LC_MESSAGES/nm-applet.mo
/usr/share/locale/nl/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/nl/LC_MESSAGES/nm-applet.mo
/usr/share/locale/nn/LC_MESSAGES/nm-applet.mo
/usr/share/locale/oc/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/oc/LC_MESSAGES/nm-applet.mo
/usr/share/locale/or/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/or/LC_MESSAGES/nm-applet.mo
/usr/share/locale/pa/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/pa/LC_MESSAGES/nm-applet.mo
/usr/share/locale/pl/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/pl/LC_MESSAGES/nm-applet.mo
/usr/share/locale/pt/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/pt/LC_MESSAGES/nm-applet.mo
/usr/share/locale/pt_BR/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/pt_BR/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ro/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ru/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ru/LC_MESSAGES/nm-applet.mo
/usr/share/locale/rw/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/rw/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sk/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sk/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sl/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sl/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sq/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sq/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sr/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sr/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sr@latin/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sr@latin/LC_MESSAGES/nm-applet.mo
/usr/share/locale/sv/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/sv/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ta/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/ta/LC_MESSAGES/nm-applet.mo
/usr/share/locale/te/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/te/LC_MESSAGES/nm-applet.mo
/usr/share/locale/th/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/th/LC_MESSAGES/nm-applet.mo
/usr/share/locale/tr/LC_MESSAGES/nm-applet.mo
/usr/share/locale/uk/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/uk/LC_MESSAGES/nm-applet.mo
/usr/share/locale/ur/LC_MESSAGES/nm-applet.mo
/usr/share/locale/vi/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/vi/LC_MESSAGES/nm-applet.mo
/usr/share/locale/wa/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/wa/LC_MESSAGES/nm-applet.mo
/usr/share/locale/zh_CN/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/zh_CN/LC_MESSAGES/nm-applet.mo
/usr/share/locale/zh_HK/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/zh_HK/LC_MESSAGES/nm-applet.mo
/usr/share/locale/zh_TW/LC_MESSAGES/NetworkManager.mo
/usr/share/locale/zh_TW/LC_MESSAGES/nm-applet.mo
/usr/share/man/man1/nm-applet.1.gz
/usr/share/man/man1/nm-connection-editor.1.gz
/usr/share/man/man1/nm-online.1.gz
/usr/share/man/man1/nm-tool.1.gz
/usr/share/man/man1/nmcli.1.gz
/usr/share/man/man5/NetworkManager.conf.5.gz
/usr/share/man/man5/nm-system-settings.conf.5.gz
/usr/share/man/man8/NetworkManager.8.gz
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
/usr/share/polkit-1/actions/org.freedesktop.network-manager-settings.system.policy
/var/lib/NetworkManager
/var/run/NetworkManager
$

Links to the man pages for the tools that are part of the package are listed below:

nmcli
nm-online
nm-tool

Note: commands run on a CentOS 6 system.

Related articles:

  1. Checking speed and duplex settings on a Linux system