This describes how to use the Python-based deployment script to install an agent. Using Python is a legacy deployment option that can have Python package dependencies incompatible with your environment. For script-based deployment without package or operating system dependencies, consider: Install an Agent using a Python Deployment Script.
Check for supported operating systems.
The following subsections describe the available installation and uninstall options.
Additional prerequisites
- Python is required to run the script.
- The host machine should have access to the API server to download the installer.
Install a root user agent
From All Clients choose a client.
Go to Setup > Download > Agent.
In the Linux Agent Script tile, choose Python Script.
Download and save the deployAgent.py script.
Install the agent, enabling the features you want:
All features:
python deployAgent.py
Specific features:
python deployAgent.py -f "agent:RemoteCommand,agent:PatchManagement,agent:Automation,agent:RemoteConsole"
Within a few seconds, the Infrastructure page displays the installed server.
Install a default non-root user agent
The default, non-root agent installation automatically creates the default user.
From All Clients choose a client.
Go to Setup > Download > Agent.
In the Linux Agent Script tile, choose Python Script.
Download and save the deployAgent.py script.
Install the agent, enabling the features you want:
All features:
python deployAgent.py -n yes
Specific features:
python deployAgent.py -n yes -f "agent:RemoteCommand,agent:PatchManagement,agent:Automation,agent:RemoteConsole"
Within a few seconds, the Infrastructure page displays the installed server.
Install a non-root custom user agent
To install the agent as a custom user with non-root privilege, create a new user and group before installing the agent.
Create a new user group:
groupadd --system {username}
Create a custom user:
useradd -g {username} -d /opt/opsramp -m {username} -s /bin/sh --system
Set the user password:
echo {username}:{password} | chpasswd
From All Clients choose a client.
Go to Setup > Download > Agent.
In the Linux Agent Script tile, choose Python Script.
Download and save the deployAgent.py script.
Install the agent, enabling the features you want:
All features:
python deployAgent.py -R {username}
Specific features:
python deployAgent.py -R {username} -f "agent:RemoteCommand,agent:PatchManagement,agent:Automation,agent:RemoteConsole"
Within a few seconds, the Infrastructure page displays the installed server.
View the installation logs in the /tmp/opsramp-agent_install.log file.
Uninstall an agent
Remove the package, depending on your operating system:
Debian-based operating systems:
dpkg -P opsramp-agent
Red Hat-based operating systems:
rmp -e opsramp-agent
Delete the folder:
rmdir /opt/opsramp/agent
See the /tmp/opsramp-agent_uninstall.log file for uninstall progress.