eDirectory object timestamp tool

eDirectory object timestamp tool

So how do we setup something to use the web interface in a scripted fashion? There are actually a lot of ways. Something like SecureLogin could be used to "click" in predicable places over and over with a web browser. Other ways include using utilities that, at the command line, can get data from a webpage, parse it, and then act on it. This is the route Peter Lambrechsten took in his post here: http://forums.novell.com/showthread.php?t=393511

Taking the hard work he did and making a script out of it was fairly easy. The addition basically asks for parameters (machine to hit via port 8030 (iMonitor's HTTPS port), username in eDirectory DN format, and a password) and then lets the user choose which report to parse. The report in iMonitor must already exist and links to current documentation are included. Once a report is selected the script hits iMonitor once per object telling the system to timestamp the object. The EIDs that are being timestamped are returned as the script runs so progress can be monitored.

This was tested against eDirectory 8.8.5 FTF 1 x86_32 on SLES 10 SP2 x86_32. The result is a way, with no more work than iMonitor would require anyway, to timestamp all objects that show up in the iMonitor obituary report. It could even be set to be automated after an automated report was created in iMonitor to run once in a while and watch for old obituaries for you.

To use this script copy it to your system with 'bash' and 'wget' (both default on most *nix systems), make it executable (`chmod +x ./obitTimestamp.sh`) and then run it:

./obitTimestamp.sh machine.goes.here admin.context.goes.here passwordHere

Labels (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
3 of 3
Last update:
‎2020-03-10 17:30
Updated by:
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.