From past threads I have learned how to use the ‘Load From File’ utility to load policy rules en masse. However, as useful as this is, one of the limitations of this approach is that you can only add rules. You cannot modify or delete them.
If you need to delete a number of rules, using this approach, your only options are to delete the rules interactively, or to add ‘deny’ rules to your load file in order to nullify the rules you need to delete.
However, since it is easy to capture all of your policy settings in a report, and then turn that into a csv file for bulk loading, I’m wondering why you couldn’t delete the policies for an entire context and then reload them.
I’m sure there is a catch. Things are rarely as straight forward in Windchill as they appear at first glance. But beyond making sure that there aren’t any open processes dependent on the affected permissions, it seems reasonable. Or I could be completely missing the 800 lb gorilla in the room.
I would appreciate any feedback.
While setting up our system we ran into the need to make significant changes to our policy settings. An approach like this would have made things much less painful.
Thanks,
Steve
Thanks for the feedback Dave.
Not sure it is worth the trouble or risk, but at least it gives me an approach to consider.
Steve
Steve,
You have expressed a shortcoming that many have had struggles with. I've actually filed a software enhancement with PTC about this lack of functionality(a year ago). Of course, who knows ifthey will actually implement it. The load utilities are a great asset, but onecommonmistake can cause a maintenance nightmare depending on how complicated your policies are. Unfortunately, I don't have a solution, however, just adding my two cents.
Mike mentions #3:
3. There is also no good way thru the UI to find out what ACL's are in place except to laboriously go to each and every domain and take a look - but it is possible to create a relatively simple query builder report that returns all rules for all domains.
Previously I posted a java tool to parse a WinDU Domain Policy output text file (DomainPolicyRule.txt)to create separate txt & xml files, where the xml can be used to loadfromfile on another box.
Previous post:
http://portal.ptcuser.org/p/fo/st/post=90665#p90665
Readme:
http://www.datajett.com/windchill/wc_dev/ext.ACL_Windu2XML/readme.txt
zip with code, class, examples:
http://www.datajett.com/windchill/wc_dev/ACL_Windu_2_XML_TXT.zip
The method is to run WinDU & out domain policy text file & run class on that output folder. Its parses that text file & outputs:
1) separate copies of the large text file.
2) splits up that same txt file into smaller files (1 for each domain/container)
3) full xml for loadfromfile
4) separate domain/container xml's for each domain/container
One benefit is that the domain/container is set in xml, so the loadfromfile wont need a -CONT_PATH arg.
Another is that the output files are date_time stamped, so you can run 5 times a day/week/month.
Now I had read a few previous posts that covered this area. Deleting, over riding existing ACL.
It sounded as though some one had found or suggested a route to over right existing.
I might look over the posts & see if I can find those suggestions.
But they made it sound like they had tricks to over right, replace existing ACL's.
If anybody knows those tricks, or has their own method, please post to save me the pain of searching...ha..ha
I got the idea of using the Windu from "Prathap Yalavarthi"
http://portal.ptcuser.org/p/fo/st/post=64313#p64313
I tried the other routes suggested (query builder report & sql), but they didnt give me all the data I needed to create a complete loadfromfile xml file/format.
The WinDU DomainPolicyRule.txt file did. It was just in a hard ro read format & not in xml format. So I wrote the java to parse it, extract & write xml file.
L Jett
cadjett@aol.com;datajett@aol.com
