Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Knowledge Partner
Knowledge Partner

Re: Invoke an external script from IDM

Hi Rajasekhar88,
Another available option is to use Java exec functionality.

Example taken from great IAM-related Jim Willeke blog:

<do-set-local-variable name="runtime-instance">
<arg-object>
<token-xpath expression="runtime:getRuntime()"/>
</arg-object>
</do-set-local-variable>
<do-set-local-variable name="cmd-line">
<arg-string>
<token-text xml:space="preserve">C:\WINDOWS\system32\cscript.exe</token-text>
<token-text xml:space="preserve"> </token-text>
<token-text xml:space="preserve">C:\scripts\Insert_Event.vbs</token-text>
<token-text xml:space="preserve"> </token-text>
<token-text xml:space="preserve">TIVOLI</token-text>
<token-text xml:space="preserve"> </token-text>
<token-attr name="arzBanknummer"/>
<token-text xml:space="preserve"> </token-text>
<token-attr name="arzHostId"/>
<token-text xml:space="preserve"> </token-text>
<token-attr name="Surname"/>
<token-text xml:space="preserve"> </token-text>
<token-attr name="Given Name"/>
<token-text xml:space="preserve"> </token-text>
<token-text xml:space="preserve">MODIFY</token-text>
<token-text xml:space="preserve"> </token-text>
<token-text xml:space="preserve">RESR</token-text>
<token-text xml:space="preserve"> </token-text>
<token-text xml:space="preserve">"Modifying user properties"</token-text>
</arg-string>
</do-set-local-variable>
<do-trace-message>
<arg-string>
<token-local-variable name="cmd-line"/>
</arg-string>
</do-trace-message>
<do-set-local-variable name="process">
<arg-object>
<token-xpath expression="runtime:exec($runtime-instance, $cmd-line)"/>
</arg-object>
</do-set-local-variable>


Note: You must declare the runtime namespace for the policy:
<policy xmlns:runtime="http://www.novell.com/nxsl/java/java.lang.Runtime">


Alex
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Invoke an external script from IDM

al b wrote:

>
> Hi Rajasekhar88,
> Another available option is to use *Java exec* functionality.
>
> Example taken from great IAM-related Jim Willeke blog:


I've had bad experiences with java exec and hanging engine.
Far better to put do this via a remote loader (even if the remote
loader runs on the engine server).
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.