View Source

The Linux Backup Agent CLI includes the {{cdp-agent}} command that allows you to start, stop, and restart the Backup Agent. If the Backup Agent is not running when you submit a restart, the command starts the Backup Agent before continuing. For more information about the {{cdp-agent}} command, see [About the cdp-agent and serverbackup-setup tools|ServerBackup:About the cdp-agent and serverbackup-setup tools].

h3. Start the Backup Agent

*To start the Backup Agent using the Linux Backup Agent CLI*:

1. Run the {{cdp-agent}} command using the {{start}} option as follows:
{code}# /etc/init.d/cdp-agent start{code}
The system returns the following data: 
{code}/etc/init.d/cdp-agent start: cdp started{code}
 
2. Verify the Backup Agent status by running the {{cdp-agent}} command using the {{status}} option as follows:

{code}# /etc/init.d/cdp-agent status{code}
The system returns the following data:

{code}
/etc/init.d/cdp-agent status: cdp (pid 6975) running{code}
For more information about the {{cdp-agent}} command, see [About the cdp-agent and serverbackup-setup tools|ServerBackup:About the cdp-agent and serverbackup-setup tools].
\\

h3. Stop the Backup Agent

*To stop the Backup Agent using the Linux Backup Agent CLI*:

1. Run the {{cdp-agent}} command using the {{stop}} option as follows:

{code}# /etc/init.d/cdp-agent stop{code}
The system returns the following data:

{code}/etc/init.d/cdp-agent stop: cdp stopped{code}
2. Verify the Backup Agent status by running the {{cdp-agent}} command using the {{status}} option as follows:

{code}# /etc/init.d/cdp-agent status{code}
The system returns the following data:

{code}/etc/init.d/cdp-agent status: cdp (no pid file) not running{code}
For more information about the {{cdp-agent}} command, see [About the cdp-agent and serverbackup-setup tools|ServerBackup:About the cdp-agent and serverbackup-setup tools].

h3. Restart the Backup Agent

*To restart the Backup Agent using the Linux Backup Agent CLI*:

1. Run the {{cdp-agent}} command using the {{restart}} option as follows:

{code}# /etc/init.d/cdp-agent restart{code}
The system returns the following data:

{code}/etc/init.d/cdp-agent stop: cdp stopped
/etc/init.d/cdp-agent start: cdp started{code}
Note that it may require up to 60 seconds to stop the Backup Agent.

2. Verify the Backup Agent status by running the {{cdp-agent}} command using the {{status}} option as follows:

{code}# /etc/init.d/cdp-agent status{code}
The system returns the following data:

{code}/etc/init.d/cdp-agent status: cdp (pid 6975) running{code}
For more information about the {{cdp-agent}} command, see [About the cdp-agent and serverbackup-setup tools|ServerBackup:About the cdp-agent and serverbackup-setup tools].
{excerpt:hidden=true}Provides the steps necessary to start, stop, or restart the Backup Agent using the Linux Backup Agent CLI.{excerpt}