Download and Extract Agent
Overview
This section covers downloading the EPMware Agent package and extracting it to the appropriate location on your server. The agent files must be placed in the home directory of the user account that will run the agent service.
Obtaining the Agent Package
Download Sources
The EPMware Agent package (ew_agent_files.zip) can be obtained from:
- EPMware Support Portal
- Login to support.epmware.com
- Navigate to Downloads section
-
Download latest agent version
-
Direct from EPMware Support
- Contact support@epmware.com
- Request agent installation files
-
Receive secure download link
-
Your EPMware Implementation Team
- Provided during initial setup
- Available from your consultant
Package Information
| File Name | Size | Contents |
|---|---|---|
ew_agent_files.zip |
~50 MB | Agent JAR, scripts, configuration templates |
Version Verification
Check the agent version before installation:
Pre-Extraction Setup
Identify Installation Directory
The agent must be installed in the user's home directory:
Windows (Cygwin):
- Default: C:\cygwin64\home\[username]\
- Example: C:\cygwin64\home\Administrator\
Linux:
- Default: /home/[username]/
- Example: /home/epmadmin/
Create User Directory (if needed)
Windows:
Linux:
# Create user if not exists
sudo useradd -m epmadmin
sudo passwd epmadmin
# Verify directory
ls -la /home/epmadmin
Extraction Process
Windows Extraction
Method 1: Using Windows Explorer
- Navigate to the home directory:
- Open File Explorer
-
Go to
C:\cygwin64\home\[username]\ -
Copy the agent zip file to this location
-
Right-click
ew_agent_files.zip -
Select Extract All...
-
Important: Set extraction path to the home directory itself
- Remove any subfolder from the path
- Should extract directly to
C:\cygwin64\home\[username]\

Windows extraction dialog - ensure correct path
Method 2: Using Cygwin Terminal
# Navigate to home directory
cd ~
# Copy zip file to home directory (adjust source path)
cp /cygdrive/c/Users/[WindowsUser]/Downloads/ew_agent_files.zip .
# Extract files
unzip ew_agent_files.zip
# Verify extraction
ls -la
Linux Extraction
# Navigate to home directory
cd ~
# Copy agent zip file (adjust source path)
cp /tmp/ew_agent_files.zip .
# Extract files
unzip ew_agent_files.zip
# If unzip not available, install it
# RHEL/CentOS: sudo yum install unzip
# Ubuntu: sudo apt-get install unzip
# Verify extraction
ls -la
Post-Extraction Verification
Expected Directory Structure
After extraction, verify the following structure:
home/[username]/
├── epmware-agent.jar # Main agent executable
├── agent.properties # Configuration file
├── ew_target_service.sh # Service startup script
├── logs/ # Log directory (created on first run)
│ ├── agent.log
│ └── agent-poll.log
├── temp/ # Temporary files directory
└── lib/ # Additional libraries (if any)

Extracted agent files in home directory
File Permissions
Windows (Cygwin)
# Check permissions
ls -la ~/
# Set execute permission for script
chmod +x ew_target_service.sh
# Ensure read/write for properties
chmod 644 agent.properties
Linux
# Set appropriate permissions
chmod 755 ~/
chmod 755 ew_target_service.sh
chmod 600 agent.properties # Restrict access to properties file
chmod 644 epmware-agent.jar
# Set ownership
chown -R epmadmin:epmadmin ~/
Common Extraction Issues
Issue: Files in Wrong Directory
Problem: Files extracted to subfolder like home/[username]/ew_agent_files/
Solution:
# Move files to correct location
cd ~
mv ew_agent_files/* .
mv ew_agent_files/.* . 2>/dev/null # Hidden files if any
rmdir ew_agent_files
Issue: Permissions Error
Problem: Cannot extract or access files
Windows Solution: - Run Cygwin Terminal as Administrator - Ensure Windows user has full control of Cygwin directory
Linux Solution:
# Extract as the target user
su - epmadmin
unzip ew_agent_files.zip
# Or fix permissions after
sudo chown -R epmadmin:epmadmin /home/epmadmin/
Issue: Corrupted ZIP File
Problem: Extraction fails with errors
Solution: 1. Verify file integrity:
-
Re-download if corrupted
-
Try alternative extraction tool:
Multiple Agent Installations
Single Server, Multiple Agents
To run multiple agents on one server:
-
Create separate users:
-
Extract agent to each home directory:
-
Configure unique settings per agent
Shared Installation (Not Recommended)
While possible, sharing agent files is not recommended: - Complicates configuration management - Log files will conflict - Updates affect all instances
Backup Original Files
Before configuration, backup the original files:
# Create backup directory
mkdir ~/agent_backup_$(date +%Y%m%d)
# Copy original files
cp agent.properties ~/agent_backup_$(date +%Y%m%d)/
cp ew_target_service.sh ~/agent_backup_$(date +%Y%m%d)/
# List backups
ls -la ~/agent_backup_*
Security Considerations
File Security
-
Protect Configuration Files:
-
Remove Installation Files:
-
Audit File Access:
Network Security
Verify firewall allows required connections:
# Test connectivity to EPMware
curl -I https://your-epmware-server.com
# Check open ports
netstat -an | grep LISTEN
Verification Checklist
After extraction, verify:
- [ ] All files extracted to correct directory
- [ ] No nested
ew_agent_filessubfolder - [ ]
epmware-agent.jaris present - [ ]
agent.propertiesis present - [ ]
ew_target_service.shis present - [ ] File permissions are correct
- [ ] User owns all agent files
- [ ] Original files are backed up
Updating Agent Files
Update Process
When updating to a new agent version:
-
Stop Current Agent:
-
Backup Current Installation:
-
Extract New Version:
-
Verify and Restart:
Configuration Preservation
Always preserve your customized agent.properties file when updating. The -x agent.properties flag in the unzip command excludes it from being overwritten.
Next Steps
After successfully extracting the agent files:
- Review File Structure - Understand agent components
- Configure Agent Properties - Set up configuration
- Generate REST Token - Set up authentication
- Test Connection - Verify setup