New Parser: nmcli
See original GitHub issueAwesome work! I’ve already used jc
for some ifconfig
work. Along the same line I’d think nmcli
would be a handy one. If I find some time this weekend I can take a stab at it.
Thanks again!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Nmcli parsers — insights-core 3.0.8 documentation
This parser works like a python dictionary, all parsed data can be accessed via the dict interfaces. Sample input for /usr/bin/nmcli dev ...
Read more >nmcli: NetworkManager Reference Manual
nmcli is a command-line tool for controlling NetworkManager and reporting network status. It can be utilized as a replacement for nm-applet or other...
Read more >nmcli: NetworkManager Reference Manual
nmcli is a command-line tool for controlling NetworkManager and reporting network status. It can be utilized as a replacement for nm-applet or other...
Read more >nmcli should show output in non-pretty-printed form for parsing
The "nmcli connection show" command now displays the correct output for both `empty` and `NULL` values Previously, the output of the "nmcli connection...
Read more >nmcli - PyPI
A python wrapper library for the network-manager cli client. ... Create a new connection using specified properties. nmcli.connection.add( conn_type: str, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sebastian-burlacu! No worries. I decided against creating parsers for
iproute2
for a few reasons:jc
, so I didn’t want to give theiproute2
developers an excuse to stop/slow-down enhancing the capability by having a workaround usingjc
route
,ifconfig
)iproute2
now have good JSON output supportNot sure if this helps any, but I’ve been able to ~use~ abuse the generic
yaml
parser on some ofnmcli
outputs. Example, to get the APN configured on a cellular connection: