Through a NSH Script, you can use the blcli FileTransfer.copySvrToSvr to copy the files from Server1 to Server2.
Then with chown you can change the ownership of each folder.
Thx for the response.
Is it possible for me to do this via BLPackage functionality.
Right now , I package it from Server 1. Then deploy it against component. Since I hv set my "users" file in RSCD Agent as "BLAdmins:BLAdmin rw,map=tomcat", everything is getting copied as tomcat.
Now I need the same package to be deployed as "weblogic" to another location/component.
Is NSHScript the only way?
I would suggest to go with NSH script.
use the blcli FileTransfer command to copy fromserver1 to server2 and then using change ownership command update the owner to what ever you wish to.
not sure if this can be handled with some different way.
Yes, It's possible to do the copy a file or folder from source server to target server using BLPackage Deploy job.
1. Create a BLPaclage with "Live Server Objects" options.
2. Next screen Add the server objects and Select the required folder or file from the "File System" of source server.
3. Once you created a BLPackage. Run the deploy job against the target server.
Vinoth Chelliah Mohan Here the objective is to update the ownership of the object(file) after copying it from one server to other. Any how to update the owner we need to use chown command only. In that case why not to use blcli performanance commands in a NSH script. I am sure this will a better solution if the scope covers large no. of servers.
how will the performance commands help here?
Nice Blas, In BLPackage deploy job have facility to add a custom command as well.once it's copied to the target and change the ownership as well.
While creating a deploy job from the BLPackage you can find pre/post commands option will help you to give your chown command as well.
He has to package the entire folder so my suggestion is to use a BLPackage.
Yeah my bad...just ignored pre/post command. This should also work fine.
You can also parametrize tomcat and weblogic as a property, then reference that property in an external command of a BLpackage. It would require the property being set on the target but would allow for a single package. The external command would look something like this:
chown ??WEBSERVER?? path to file
That may not save you steps from pre/post, but just throwing that out there.