Hi there,
You asked :
1/ When i use one of my scripts to perfom some changes into the policy store i am not able to see those changes into the WAMUI even after using xpssweeper. What can i do to see those changes into the WAMUI?
Ujwol => Are you confident that your CLI routine ran successfully ?
Can you validate this from Policy server trace logs ?
Can you see if you can view them on XPSExplorer ?
Is it visible on WAMUI after PS restart ?
What I am trying to determine here is if it is only WAMUI which is unable to display the newly created object (through CLI call) or is the object not created at all.
2/ According to the siteminder perl management api documentation methods have a return value but if in my code i put them into a variable, methods always fails but works if i don't. Why is that so?
here is an example (It happens in many cases):
Ujwol =>
Not all methods have the same return type ..Different methods have different return type..You will need to refer to CLI reference guide ( $ Policy Server Install Directory$\CLI\docs\PolicyMgtAPI.html (or AgentAPI.htm) for this.
For instance,
You wrote :
my $result = $group->Add($agent); => Here if i assign the return value of add function to $result, add method automatically fails but if don't, it works! Why?
if ($result == undef) { die "Error: cannot add agent to agent gorup\n"; }
print "OK";
Here,
If you look at the CLI reference guide for this method :
*******************************************
Netegrity::PolicyMgtGroup->Add( newMember )
Adds an agent, response, rule, or nested group object to the group.
Arguments
newMember (objectType) -- The member to add to the group. objectType can be any of the following objects:
- PolicyMgtAgent
- PolicyMgtResponse
- PolicyMgtRule
- PolicyMgtGroup
Returns
0 on success or -1 on failure
*******************************************
As you could see above , the Add() method returns 0 or -1 not "undef"
Hope this helps.
Regards,
Ujwol Shrestha