LINUX – Network Manager – How to get network adapter information

Here is short info how to get network adapter info for systems with network manager:
nmcli dev list iface wlan0

example output:

GENERAL.DEVICE:                         wlan0
GENERAL.TYPE:                           802-11-wireless
GENERAL.VENDOR:                         Broadcom Corporation
GENERAL.PRODUCT:                        BCM4313 802.11b/g/n Wireless LAN Controller
GENERAL.DRIVER:                         brcmsmac
GENERAL.DRIVER-VERSION:                 3.16.0-38-generic
GENERAL.FIRMWARE-VERSION:               N/A
GENERAL.HWADDR:                         00:26:82:9e:AF:11
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.3/0000:44:00.0/bcma0:0/net/wlan0
GENERAL.IP-IFACE:                       wlan0
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.CONNECTION:                     /org/freedesktop/NetworkManager/ActiveConnection/0
CAPABILITIES.CARRIER-DETECT:            no
CAPABILITIES.SPEED:                     65 Mb/s
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   26d879c4-0d6f-4000-bf02-43c687416e1e | Auto IntoTheWild
WIFI-PROPERTIES.WEP:                    yes
WIFI-PROPERTIES.WPA:                    yes
WIFI-PROPERTIES.WPA2:                   yes
WIFI-PROPERTIES.TKIP:                   yes
WIFI-PROPERTIES.CCMP:                   yes
WIFI-PROPERTIES.AP:                     yes
WIFI-PROPERTIES.ADHOC:                  yes
AP[1].SSID:                             'WiFI-NamE'
AP[1].BSSID:                            CC:AB:BB:12:33:33
AP[1].MODE:                             Infrastructure
AP[1].FREQ:                             2412 MHz
AP[1].RATE:                             54 MB/s
AP[1].SIGNAL:                           37
AP[1].SECURITY:                         WPA WPA2
AP[1].ACTIVE:                           no
AP[2].SSID:                             'AnothErWiFi'
AP[2].BSSID:                            34:3E:1F:33:E2:33
AP[2].MODE:                             Infrastructure
AP[2].FREQ:                             2437 MHz
AP[2].RATE:                             54 MB/s
AP[2].SIGNAL:                           52
AP[2].SECURITY:                         WPA2
AP[2].ACTIVE:                           yes
IP4.ADDRESS[1]:                         ip = 10.0.1.99/24, gw = 192.168.1.254
IP4.DNS[1]:                             10.0.1.60
IP4.DOMAIN[1]:                          home
DHCP4.OPTION[1]:                        domain_name = home
DHCP4.OPTION[2]:                        expiry = 1451147274
DHCP4.OPTION[3]:                        broadcast_address = 10.0.1.255
DHCP4.OPTION[4]:                        dhcp_message_type = 5
DHCP4.OPTION[5]:                        dhcp_lease_time = 604800
DHCP4.OPTION[6]:                        ip_address = 10.0.1.99
DHCP4.OPTION[7]:                        routers = 10.0.1.254
DHCP4.OPTION[8]:                        subnet_mask = 255.255.255.0
DHCP4.OPTION[9]:                        domain_name_servers = 10.0.1.60
DHCP4.OPTION[10]:                       network_number = 10.0.1.0
DHCP4.OPTION[11]:                       dhcp_server_identifier = 10.0.1.60

Leave a Reply

Your email address will not be published. Required fields are marked *

one + 11 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.