Yu Watanabe
6cbf8222ca
networkctl: add dhcp-lease verb to dump DHCP lease
...
This shows the DHCP message of an acquired DHCP lease.
Example:
```
$ networkctl dhcp-lease eth0
Header:
KEY VALUE
Hardware Type: ETHER
Hardware Address: 41:42:43:31:32:33
Client Address: 192.0.2.123
Server Address: 192.0.2.1
Options:
CODE NAME DATA
1 subnet mask 255.255.255.0
3 router 192.0.2.1
6 domain name server 192.0.2.1
12 hostname test-node
15 domain name lan
28 broadcast address 192.0.2.255
42 NTP server 192.0.2.11
192.0.2.12
51 lease time 1d
53 message type 5
54 server identifier 192.0.2.1
58 renewal time 11h 5min 38s
59 rebinding time 20h 5min 38s
119 domain search hoge.example.com
foo.example.com
```
2026-05-17 21:02:20 +09:00
Eisuke Kawashima
c2b0f637c2
fix(shell-completion): discard error messages
2025-07-14 20:24:26 +09:00
Eisuke Kawashima
5300aa7a1d
style(shell-completion): remove trailing semicolons
2025-07-14 20:24:25 +09:00
Yu Watanabe
21f31f23cc
networkctl: introduce --no-ask-password option
2024-08-19 11:28:22 +09:00
Yu Watanabe
18200b426e
shell-completion: update bash completion for networkctl
2024-06-11 10:35:55 +01:00
Jan Macku
f8457290c4
fix(SC2148): add ShellCheck directive to bash completion scripts
2024-02-27 15:41:28 +01:00
Michael Biebl
85fce6f42c
Use https for gnu.org
2022-06-28 16:07:35 +02:00
Luca Boccassi
36ec026830
completion: fix 'unbound variables' errors
...
Fixes https://github.com/systemd/systemd/issues/19987
2021-06-22 14:56:47 +01:00
Yu Watanabe
bfc2b05e59
networkctl: introduce --json option for "status" and "list" commands
...
When `--json` option is specified, "status" and "list" commands gives
the same information, as originally "list" just gives partial
information of "status" in different format.
2021-05-14 09:18:29 +09:00
Sibo Dong
f34173a048
bash-completion: localize words and cword variables
...
The words and cword variables are not localized in all Bash completion
scripts that call _init_completion.
cur, prev, words, and cword (and split if using the -s flag) are all
variables that should be localized in Bash completion scripts before
calling _init_completion (even if they don't otherwise appear in the
calling script). This is done for cur and prev, but not for words and
cword. Letting words and cword remain unlocalized may clobber variables
the user is using for other purposes, which is bad.
This issue can be resolved by declaring words and cword as local
variables.
Resolves #19188 .
2021-04-06 16:15:13 +02:00
Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Yu Watanabe
e4f8d5e01f
shell-completion: add missing verbs for networkctl
2020-06-30 08:56:36 +02:00
Yu Watanabe
6c64cf8859
bash-completion: networkctl: do not show ellipsized link name
2020-01-10 12:13:12 +09:00
Yu Watanabe
0ca1926ec3
bash-completion: networkctl: support --full and --lines
2020-01-09 15:43:18 +01:00
Yu Watanabe
308e7dfdce
networkctl: add renew command
2019-09-21 20:27:43 +09:00
Yu Watanabe
ca866a32fb
bash-completion: support "networkctl delete"
2019-06-04 12:00:49 +02:00
Yu Watanabe
94a58cc1f9
bash-completion: support --stats/-s option of networkctl
2019-06-01 10:24:47 +09:00
Zbigniew Jędrzejewski-Szmek
843cfcb15c
shell-completion: use 4 space indentation too
...
The same as in other places, indentation levels were all over the place.
2019-04-12 08:34:44 +02:00
Yu Watanabe
f568dcd101
bash-completion: networkctl: 'list' and 'lldp' can take links
2018-01-10 23:17:41 +09:00
Zbigniew Jędrzejewski-Szmek
7059062c2f
Add SPDX license headers to shell completion scripts
2017-11-19 19:08:15 +01:00
Zbigniew Jędrzejewski-Szmek
a5be8dabd6
Add networkctl label to man and shell completion
2017-06-27 10:30:41 -04:00
Zbigniew Jędrzejewski-Szmek
b00c1cf9d6
bash-completion: use builtins when generating list
...
awk is an external program, and it is better to stick to shell built-ins.
Also, even with external awk, sort -u is redundant, because the shell does
this on its own.
2015-09-28 15:23:04 -04:00
Evgeny Vereshchagin
e4f246b1b5
shell-completion: bash: add networkctl completion
2015-08-28 18:01:48 +00:00