Anonymous_User Absent Member.
Absent Member.
212 views

Unable to publish with scripting driver pwshell


Hello,

I can query and submit events to adir with my scripting driver
powershell, but I have still a problem to publish.

My Poll.ps1 test script is :

# *****************************************
# * Add implementation-specific code here *
# *****************************************

$cn = "idm7test7"
$description= "testscripting"
if ($cn -eq "") {
idm_statuserror "Poll event: nothing to do cn= $cn description =
$description"
}
else {
idm_publishinit "MODIFY"
idm_publishvalue "CN" $cn
idm_publishvalue "DESCRIPTION" $description
idm_publish
idm_statussuccess "Publish event processed - cn = $cn"
}

I can read the idm_statussuccess message in the log, but the event is
missing informations :

<nds dtdversion="1.1" ndsversion="8.6">
<source>
<product build="Apr 13 2012 11:56:57" version="4.0.1"/>
<contact/>
</source>
<input>
<modify event-id="20121010143638Z#0000800000"/>
</input>
</nds>


I do not find any working example in the documentation...

Thanks for your help.

Sylvain


--
sma
------------------------------------------------------------------------
sma's Profile: https://forums.netiq.com/member.php?userid=174
View this thread: https://forums.netiq.com/showthread.php?t=42725

Labels (1)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Unable to publish with scripting driver pwshell

On 10.10.2012 16:54, sma wrote:
>
> Hello,
>
> I can query and submit events to adir with my scripting driver
> powershell, but I have still a problem to publish.
>
> My Poll.ps1 test script is :
>
> # *****************************************
> # * Add implementation-specific code here *
> # *****************************************
>
> $cn = "idm7test7"
> $description= "testscripting"
> if ($cn -eq "") {
> idm_statuserror "Poll event: nothing to do cn= $cn description =
> $description"
> }
> else {
> idm_publishinit "MODIFY"
> idm_publishvalue "CN" $cn
> idm_publishvalue "DESCRIPTION" $description
> idm_publish
> idm_statussuccess "Publish event processed - cn = $cn"
> }
>
> I can read the idm_statussuccess message in the log, but the event is
> missing informations :
>
> <nds dtdversion="1.1" ndsversion="8.6">
> <source>
> <product build="Apr 13 2012 11:56:57" version="4.0.1"/>
> <contact/>
> </source>
> <input>
> <modify event-id="20121010143638Z#0000800000"/>
> </input>
> </nds>
>
>


1. Make sure publisher isn't disabled. This is set in the Driver
Properties in iManager. This option may not be listed and if it is
absent, the publisher is enabled.

2. An Association value is required when the modify is an event
notification from the PublicationShim.

3. You need to prefix the attribute name with ADD_ or REMOVE_ to
indicate whether a value is to be added or removed.

So based on that:

Try - for example:
(assuming you are using CN as association)

idm_publishinit "MODIFY"
idm_publishvalue "Association" $CN
idm_publishvalue "ADD_DESCRIPTION" $description
idm_publish
idm_statussuccess "Publish event processed - cn = $cn"


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Unable to publish with scripting driver pwshell


Off course, it works with Association and ADD_DESCRIPTION.

Thanks a lot.

Sylvain
alexmchugh;202318 Wrote:
> On 10.10.2012 16:54, sma wrote:
> >
> > Hello,
> >
> > I can query and submit events to adir with my scripting driver
> > powershell, but I have still a problem to publish.
> >
> > My Poll.ps1 test script is :
> >
> > # *****************************************
> > # * Add implementation-specific code here *
> > # *****************************************
> >
> > $cn = "idm7test7"
> > $description= "testscripting"
> > if ($cn -eq "") {
> > idm_statuserror "Poll event: nothing to do cn= $cn description =
> > $description"
> > }
> > else {
> > idm_publishinit "MODIFY"
> > idm_publishvalue "CN" $cn
> > idm_publishvalue "DESCRIPTION" $description
> > idm_publish
> > idm_statussuccess "Publish event processed - cn = $cn"
> > }
> >
> > I can read the idm_statussuccess message in the log, but the event

> is
> > missing informations :
> >
> > <nds dtdversion="1.1" ndsversion="8.6">
> > <source>
> > <product build="Apr 13 2012 11:56:57" version="4.0.1"/>
> > <contact/>
> > </source>
> > <input>
> > <modify event-id="20121010143638Z#0000800000"/>
> > </input>
> > </nds>
> >
> >

>
> 1. Make sure publisher isn't disabled. This is set in the Driver
> Properties in iManager. This option may not be listed and if it is
> absent, the publisher is enabled.
>
> 2. An Association value is required when the modify is an event
> notification from the PublicationShim.
>
> 3. You need to prefix the attribute name with ADD_ or REMOVE_ to
> indicate whether a value is to be added or removed.
>
> So based on that:
>
> Try - for example:
> (assuming you are using CN as association)
>
> idm_publishinit "MODIFY"
> idm_publishvalue "Association" $CN
> idm_publishvalue "ADD_DESCRIPTION" $description
> idm_publish
> idm_statussuccess "Publish event processed - cn = $cn"



--
sma
------------------------------------------------------------------------
sma's Profile: https://forums.netiq.com/member.php?userid=174
View this thread: https://forums.netiq.com/showthread.php?t=42725

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.