xdistc --push command failed

Article:TECH182945  |  Created: 2012-03-02  |  Updated: 2012-03-19  |  Article URL http://www.symantec.com/docs/TECH182945
Article Type
Technical Solution


Issue



xdistc command fails to push the file to the destination directory on VOM MHs (Managed Hosts)


Error



/opt/VRTSsfmh/bin/xdistc --host fan-v240 --push ls.sh /tmp/ls.sh --perm 755 --run --results
HTTP/1.1 500 OK
Status: 500 Invalid destination file path (/tmp/ls.sh)
Content-Type: text/plain; charset=ISO-8859-1
 


Cause



The issue is caused by the VOM code - only a few designated directories as the destination are allowed.  One of these designated directories is /var/opt/VRTSsfmh.
 


Solution



As a work around, user can create a symbolic link in /var/opt/VRTSsfmh which points to the directory that the file is to be pushed to on the target MHs.  If there are large numbers of MHs, create a small script which creates the symbolic link on each target MHs.  Then run xdistc command again to push and run the script to perform the operation needed.

Example

On the VOM Management Server (jung-v240), there is a file (script) called ls.sh in /tmp which needs to be pushed to then run on a MH host called fan-v240.

 [root@jung-v240]# ls -l /tmp/ls.sh
-rwxr-xr-x   1 root     root          17 Feb 24 14:12 /tmp/ls.sh
 

The file needs to be pushed to /tmp on the MH and run it from /tmp.

First, creating a symbolic link in /var/opt/VRTSsfmh called tmp_link

root@fan-v240 /var/opt/VRTSsfmh [6179]:ls -l tmp_link
lrwxrwxrwx   1 root     root           4 Feb 25 11:23 tmp_link -> /tmp
 

Then run xdistc command on the Management Server as follows:

 [root@jung-v240]# /opt/VRTSsfmh/bin/xdistc --host fan-v240 --push ls.sh /var/opt/VRTSsfmh/tmp_link/ls_2.sh --perm 755 --run --results
-rwxr--r--   1 root     sys          480 Oct  1  2010 /etc/amftab
-r--r--r--   1 root     root        4295 Jun  5  2011 /etc/device.tab
-rw-r--r--   1 root     root        3207 Jan 28 12:00 /etc/devlink.tab
-r--r--r--   1 root     sys          463 Jun  5  2011 /etc/dgroup.tab
-rw-r--r--   1 root     root          23 Jan 28 11:28 /etc/gabtab
-rw-r--r--   1 root     sys         1006 Sep  4  2009 /etc/inittab
-rw-r-----   1 root     root         101 Jun  5  2011 /etc/llttab
-r--r--r--   7 root     root        1346 Mar  3 16:41 /etc/mnttab
-rw-r--r--   1 root     root           0 Oct 16 10:34 /etc/rmtab
-rw-r--r--   1 root     root          23 Jun  5  2011 /etc/vcsmmtab
-rw-r--r--   1 root     sys          405 Jun  5  2011 /etc/vfstab
-rw-r-----   1 root     root         225 Feb  4 11:01 /etc/vxfentab
:::[/tmp]
 

The ls.sh contains one line below.

[root@jung-v240]# cat /tmp/ls.sh
ls -l /etc/*tab
 




Article URL http://www.symantec.com/docs/TECH182945


Terms of use for this information are found in Legal Notices