How to obtain hostnamectl output as JSON format
Issue
- Import hostnamectl output as JSON format
Environment
- Red Hat Enterprise Linux 9.0 (Plow)
- systemd 250 (250-6.el9_0)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.