Agent command line reference (legacy)
This document provides a reference for command line options for the Lithnet Access Manager Agent versions prior to 3.0.1500.
Global Options
These options apply to all platforms:
--help
Shows help information for the command
--version
Shows version information
Interactive Setup
Lithnet.AccessManager.Agent --setup
Perform setup using interactive setup wizard. This command will:
Prompt for server address
Prompt for registration mode
Collect additional information based on the selected mode
Apply the configuration and restart the service
Non-Interactive Setup
Active Directory (Negotiate) Authentication
Lithnet.AccessManager.Agent --server <servername> --registration-mode iwa
Perform setup without user interaction, using Active Directory (Negotiate) authentication.
--server <servername>
Set the hostname of the AMS server
--registration-mode iwa
Use Negotiate authentication to register the agent
Microsoft Entra Authentication (Windows Only)
Lithnet.AccessManager.Agent --server <servername> --registration-mode entra
Perform setup without user interaction, using Microsoft Entra as the authentication provider.
--server <servername>
Set the hostname of the AMS server
--registration-mode entra
Use Microsoft Entra authentication to register the agent
Note: The
entra
registration mode is only available on Windows platforms.
Registration Key Authentication
Lithnet.AccessManager.Agent --server <servername> --registration-mode key --registration-key <key>
Perform setup without user interaction, using a registration key for authentication.
--server <servername>
Set the hostname of the AMS server
--registration-mode key
Use a key to register the agent
--registration-key <key>
Set the registration key
Agent State Control
Control the agent state:
Lithnet.AccessManager.Agent --disable
Lithnet.AccessManager.Agent --enable
--disable
Disable the agent
--enable
Enable the agent
Agent Reset
Reset the agent. This deletes all settings and authentication certificates:
Lithnet.AccessManager.Agent --reset
Lithnet.AccessManager.Agent --reset --force
Lithnet.AccessManager.Agent --reset --keep-cert
--reset
Reset the agent
--reset --force
Reset the agent without prompting for confirmation
--reset --keep-cert
Reset the agent but keeps the agent's auth certificate
Administration Requirements
Many commands require administrator rights:
Windows: Run Command Prompt or PowerShell as Administrator
macOS/Linux: Use sudo or run as root
Examples of Common Workflows
Initial Setup with Active Directory
Lithnet.AccessManager.Agent --server ams.example.com --registration-mode iwa
Initial Setup with Registration Key
Lithnet.AccessManager.Agent --server ams.example.com --registration-mode key --registration-key YOUR-KEY-HERE
Disable Agent
Lithnet.AccessManager.Agent --disable
Reset Agent
Lithnet.AccessManager.Agent --reset --force
Troubleshooting
If you encounter issues:
Ensure you're running with administrator rights
Check the agent logs
For agent versions 3.0.1500 and later, refer to the updated command line reference
Try resetting the agent with
--reset --force
For additional help, consult the full Lithnet Access Manager documentation.
Last updated
Was this helpful?