Novell is now a part of Micro Focus

Removing Values from the Network Address Field

Novell Cool Solutions: Tip
By Lothar Haeger

Digg This - Slashdot This

Posted: 30 May 2007


A Forum reader recently asked:

"The "Network Address" field is usually cleared of the previous value, but it is not reliably removed. I'm thinking about using the WorkOrder driver to schedule a <remove-all-values/> for that particular attribute to happen some number of hours after they log in. I was thinking it'd be better if I could schedule it for some number of minutes or hours after they log out."

And here's the response from Lothar Haeger ...


Have you tried running a regular query for network addresses that have an attribute value timestamp older than xxx hours? You could use something like this:

<do-set-local-variable name="ExpireBefore" scope="policy">
    <token-xpath expression="round(jdate:getTime(jdate:new()) div 1000)-~GracePeriod~"/>
    <token-xpath expression='query:search($srcQueryProcessor, "~WksSearchScope~","","~WksSearchBase~","Workstation","Network Address","*","Network Address")[attr[@attr-name="Network Address"]/value/@timestamp<$ExpireBefore]'/>
    <do-clear-src-attr-value name="Network Address">
        <token-xpath expression="$current-node/@src-dn"/>

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates