Home
TeamSite
Problem with setAttribute
Vaibhy
Hi frndz
I want to set external attributes of a dcr from another environment.
For example I have two environments(A&B).Now my dcr is on environment A.How can I set the attributes to that dcr from environment B.
The way I followed is ...
First I mapped the drive of A from environment B and tried setting the attributes.But that is not working...
Any clue please....
Find more posts tagged with
Comments
dazzlad
I think by Two environments you mean two TeamSite servers?
The CSSDK seems your most likely solution.
Vaibhy
Yes they r two different teamsite servers.
dazzlad
Suggest you look into the CSSDK then, if you were willing to explain your problem in more detail, e.g. events that cause an attribute to be set on another server and why this needs to happen then you make get a more detailed answer here.
Vaibhy
The main requirement is I will get dcr dump which has to be migrated.The dump will be on Server 'A'.I need to migrate those dcrs to server 'B'.So I wrote a script on server 'A' which copy the dcrs to server 'B' and set the attributes.Dcrs r getting copied successfully.Now the problem is with setattribute.It is saying like set Attribute failed,Error locating file ERROR:02006.
dazzlad
You can't use iwextattr to set an attribute on another TeamSite server. The command line tool will only deal with local backing stores.
If you are copying DCR's from one server to another I'd suggest OpenDeploy which can copy extended attributes.
I'd also consider how often you need this to happen. Instantly, once and hour, once a day?
Why do you copy your DCR's to another server, is this for backup?
Vaibhy
Actually those r dcrs which r not located in CMS.Those dcrs are stored in a folder like files, not located in y drive.I have to run the script only once.
dazzlad
Erm... Extended attributes are part of TeamSite you can't set attributes on files that are not in the TeamSite repository.
You could backup the attributes to a text file.....
Vaibhy
I copy that file(XML) to teamsite environment.Now I can set the attributes to that.
Correct????
Those attributes r given to us.
So I have to set the given attributes to the dcr.
"iwextattr is not used to set an attribute on another TeamSite server"
If this is the case then I have to look for another solution....:-(
dazzlad
You aren't really being clear on what you want to achieve:
Is this right:
You want to copy files from a standard file system into TeamSite, then set some extended attributes on these files.
If so, how are these attributes stored before you copy the files to the TeamSite server?
Vaibhy
Impossible to set an attribute on another TeamSite server through iwextattr.
Got the answer...
Thank You for ur quick replies...