Hi Guys,I remember downloding a zip file containing the get_attributes.ipl and set_attributes.ipl files for windows which are used to recursively get and set the attributed in a branch (input parameter). Somewhat I do not have that currently and also not able to trace right now in the support and devnet also. It would be of immense help if some one can get me this or send me the KB URLA help on this would be highly appraciated
Well, it might help to know a bit more about the context in which you are hoping to use this functionality. Different branches on the same server? different servers on two sides of a deployment? etc.If you're using 6.5 or later (please get in the habit of including this information in your posts) - I'd suggest writing your own scripts using the '-x' flag with iwextattr - it will be far more efficient than the code that had previously been posted because you'd only need to call iwextattr once to get all the values and once to set all the values per file, rather than calling it once per each EA when setting them - and you wouldn't have to worry about extra special processing for EA's with newlines embedded within them.
use DirHandle;sub plainfiles {my $dir = shift;my $dh = DirHandle->new($dir) or die "can't opendir $dir: $!";return sort # sort pathnames grep { -f } # choose only "plain" files map { "$dir/$_" } # create full paths grep { !/^\./ } # filter out dot files $dh->read(); # read all entries}my @DCRs = plainfiles([path to data folder]); for ($i = 0; $i<=$#DCRs;i++) {my $cmd = "iwextattr -s [Attribute to set]=[value] $i";$retval=system("$cmd");}