How can I use HRefresh Post Script in Harvest to change ownership and permisson?

it14me's picture
it14me asked on January 31, 2012 - 6:35pm | Replies (9).

I am trying to use a post script in SCM Harvest to change ownership and permission on a file that was refreshed on a agent.

Need help with how to accomplish this.

9 Answers

rhthornburrow's picture

There are a number of ways to accomplish this, and a lot depends upon what platform your Agent is running on - Windows or Unix - and what mode it is running in - single-user or multi-user.

In multi-user mode, the files should be owned by the user you login to the Agent with. In single-user mode, they will be owned by the user that the Agent is running as. Can you change either of these?

Regarding permissions, beware of making files writeable, as hrefresh/hsync are allergic to writable files and one writable file will break the whole thing.

Another alternative to Agents is to use the Remote Transport Interface to connect to the server using FTP(S) or SSH protocols. These have the distinct advantage that you connect as an operating system user and are less fussy about file permissions.

Best regards,

Robert

rhthornburrow's picture

Regarding the post-linked script - this would need to go on the checkout process, as this is what it is run to actually checkout the files. It would need to run an hexecp command to remotely execute a script to modify the file permissions.

Best regards,

Robert

it14me's picture
it14me replied on February 2, 2012 - 3:48pm.

I work at BI-LO llc and we are new to SCM/Harvest. Can you put an agent on the IBM 4690 platform?

JamesWilson's picture

it14me

CA SCM does not have a CA SCM Agent for IBM4690. However, you can use the Remote Transport Interface (RTI) from Trinem which will allow you to connect your CA SCM server to almost any platform, using FTP, SFTP or FTPS.

RTI is a CA approved product and you can get more information here: http://trinem.com/products/rti.php

it14me's picture
it14me replied on February 2, 2012 - 4:15pm.

We are trying to find a tool that will distribute the code to different nodes. We are currently using a IBM product called Tivoli, but they are changing to a product called TEM. This is where all the questions are coming from, to be able to distribute code as root or any user that may exists on the remote location (linux/unix). Does SCM have a plugin for any distribution tools like Tivoli or TEM?

JamesWilson's picture

<p>it14me How about we provide you with a demonstration of what CA SCM/RTI can do and see if that answers your questions? If so, I'll set up a GoToMeeting and provide a live demonstration. Feel free to email me on jwilson at trinem.com</p>

Jerry Kalyn's picture

RTI is one option. You can also take a look at CA's IT Client Manager - Software Delivery solution which integrates quite well with SCM/Harvest. This product installs, reinstalls, configures, and uninstalls software on AIX, Windows, Linux desktops and servers in MSI or RIF formats. It is architected to work across LANs and WANs and uses enterprise and domain managers for more complex environments. Agents are required on each target server/desktop and these are fairly inexpensive.

it14me's picture
it14me replied on February 2, 2012 - 7:07pm.

Right now we don't have any money to purchase software, so it would have to be freeware. Thanks for the info, i did look at the site so it may be an option later in the year.

JamesWilson's picture

it14me

No problem, we can certainly provide you with an evaluation licence for 3-6 months see if it does what it needs to, if not, no harm done?

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.