There are several basic steps for configuring RepAgent from the command line.
Task- Define the local Adaptive Server using sp_addserver.
 
- Enable the RepAgent feature on Adaptive Server using sp_configure.
 
- Enable the RepAgent feature for each database using sp_config_rep_agent.
 
- Enable log transfer on Replication Server using alter connection.
 
- Start the RepAgent on Adaptive Server using sp_start_rep_agent.