Create Task to right command to file

Hi all, I am trying to run a command on multiple SunOS servers. I would like to run the below and would like to run it as a Task
/usr/sbin/beadmin list >/var/opt/BESClient/__BESData/belist.txt
Has anyone out there done something similar? Maybe not the same command but to run a remote command on a server and pipe the output to a file?? I have created an analysis to read the output of the file once there.

Thanks

I don’t have a Solaris to work with, but this thread has examples for Linux and AIX you may be able to use

Thanks for the reply. What if i wanted to do something similar in Linux?
df -h > /tmp/output.txt

you can use “creatfile” for any redirection.

delete __createfile
createfile until END_OF_FILE
df -ah > /tmp/xyz
END_OF_FILE
move __createfile /tmp/_n.sh
wait /bin/sh /tmp/_n.sh
delete /tmp/_n.sh