Previous Topic: Create the Backup Storage Alert ScriptNext Topic: Create the Scripts to Back Up Oracle Database


Discover Nodes Using a Script

Arcserve UDP Agent (Linux) provides the capability to run a script that discovers nodes in your network. You can write a script to discover nodes in your network and then place the script in the discovery folder.

You can configure the node discovery setting on the web interface and set the frequency of running the script. In the script, you can specify the utilities to discover nodes in your network. After the script discovers a node, use the d2dnode command to add that node to Arcserve UDP Agent (Linux). There is an activity log for every time the script is run.

Note: For all scripts, a return value of zero indicates success and a nonzero return value indicates failure.

If you want to print something into the Activity Log regarding your node discovery script, you can use the following special environment variable:

echo "print something into activity log" > "$D2D_DISCOVER_OUTPUT"

A sample script is placed in the discovery folder at the following location that can discover the Linux nodes in a sub network.

/opt/CA/d2dserver/examples/discovery

You can copy the sample script to the following location and modify that script per your requirement:

/opt/CA/d2dserver/usr/discovery

Follow these steps:

  1. Log into the Backup Server as a root user.
  2. Create a node discovery script and place the script in the discovery folder at the following location:
    /opt/CA/d2dserver/usr/discovery
    
  3. Provide the necessary execution permission to the script file.
  4. Log into the web interface.
  5. Configure the node discovery settings in the Node menu to run your script.
  6. Click Activity Log and verify that the script is executed.

    The Activity Log displays a list of all discovered nodes.

Nodes are successfully discovered using the script.