AKAI TSUKI

System development or Technical something

I try to use opetion of "nmcli" command.

option "-t" and "-f"

ex. 1

[root@localhost ~]# nmcli -f ipv4.addresses c s enp0s3
ipv4.addresses:                         172.16.10.111/24
[root@localhost ~]#

ex. 2

[root@localhost ~]# nmcli -t -f ipv4.addresses c s enp0s3
ipv4.addresses:172.16.10.111/24
[root@localhost ~]#

ex. 3

[root@localhost ~]# nmcli -t -f ipv4 c s enp0s3
ipv4.method:manual
ipv4.dns:172.16.10.90
ipv4.dns-search:
ipv4.dns-options:
ipv4.dns-priority:0
ipv4.addresses:172.16.10.111/24
ipv4.gateway:172.16.10.1
ipv4.routes:
ipv4.route-metric:-1
ipv4.route-table:0
ipv4.ignore-auto-routes:no
ipv4.ignore-auto-dns:no
ipv4.dhcp-client-id:
ipv4.dhcp-timeout:0
ipv4.dhcp-send-hostname:yes
ipv4.dhcp-hostname:
ipv4.dhcp-fqdn:
ipv4.never-default:no
ipv4.may-fail:yes
ipv4.dad-timeout:-1
[root@localhost ~]#

option "-g"

ex. 1

[root@localhost ~]# nmcli -g connection.id c s enp0s3
enp0s3
[root@localhost ~]#

ex. 2

[root@localhost ~]# nmcli -g ipv4.addresses c s enp0s3
172.16.10.111/24
[root@localhost ~]#