The Linux Command Line Interface
Introduction
This topic describes the Linux command line interface (CLI).
Prerequisites
-
The CLI commands are designed for the command line. If run inside a graphical interface's terminal window, certain commands will defer to the GUI version.
Example - abr start
Running abr start in a GUI terminal window shows the following message:
NOTEThe screenshots in this section were taken on a Linux Ubuntu 24.04 desktop, switching between GUI and command line interfaces:
-
From GUI to command line:
systemctl set-default multi-user.target
reboot -
From command line to GUI:
systemctl set-default graphical.target
reboot
-
-
Using the CLI requires Admin By Request for Linux version 3.1.9 or greater.
Commands
From version 3.1.9, the following commands are supported:
-
abr finish -
abr settings -
abr start -
abr status -
abr version
There are also four global options:
-
abr --help -
abr --master-config-file <arg> -
abr --system-config-file <arg> -
abr --log-level <arg>
Run abr --help to see a full list of commands and options.
abr finish
|
Command |
Output |
|---|---|
|
Ends an admin session. |
When the messages above disappear, the countdown timer in the bottom right of the status bar also disappears and the CLI prompt is restored. |
abr settings
|
Command |
Output |
|---|---|
|
Lists the settings from the portal that currently apply to this endpoint.
|
|
abr start
|
Command |
Output |
|---|---|
|
Starts an admin session. The sequence of messages that follow depends on settings in the portal; i.e. whether or not the user must have requests approved before running elevated tasks. |
The final screenshot shows a countdown timer in the status bar. When the timer reaches zero, the session will terminate. |
abr version
|
Command |
Output |
|---|---|
|
Displays the current version of the Admin By Request client for Linux.
Adds Build and Description information. |
|
abr status
|
Command |
Output |
|---|---|
|
Equivalent to selecting About Admin By Request > Connectivity in the GUI app (see Connecting via a Proxy Server). |
In this example, both Internet and Cloud connectivity are Online, and neither the computer nor the user is joined to a domain. |
From version 4.1, the output also reports the state of the client's connection to the IoT hub, the same information the IoT hub status row shows on the Connectivity panel of the graphical interface (see Other Panels (accessed via their respective buttons). in the GUI topic).
abr --log-level
Sets the level for logging (e.g. info, debug etc.). Use this option together with a command as indicated in the following examples:
-
abr --log-level info start -
abr --log-level info status -
abr --log-level debug start -
abr --log-level debug status
The default level is info and the current level can be seen in either the master config file or the system config file.
Auditlog
In the same way as the graphical interface, all activity is logged, both for Run As Admin and Admin Sessions.
The following examples show typical activity recorded in the auditlog.












