Using script to pull back agent end time

I am using script with the help of the C API to go out and get information on agents running on my application servers. I can get almost everything that I am looking for except the time that the agent finished running. Anyone have any success in finding this value? Thanks for any help or suggestions.

Subject: Using script to pull back agent end time

I think it might only be stored as text in the last line of the text part of the log object.

Subject: RE: Using script to pull back agent end time

Thanks Rod. Do you know if I should be able to pull in the text information of the log? I’m not finding any ways to actually grab that information. Thanks again!

Subject: RE: Using script to pull back agent end time

Use NSFItemInfo to read the $AssistRunInfo item, then OSLockObject to get a pointer to the item’s data, and read the ID of the data object from there. Then use NSFDbReadObject to read the data object, and OSLockObject again to get a pointer to the data in it. Then you can go looking for the information you need. I think I found that different agents have the information in slightly different formats, so I thought it would be difficult to write code that works in all cases. If you know that the log is in English you could look for the text “Done running agent”. Or you might find a way to predict the format. Maybe there is a version number near the start of the data.

Subject: RE: Using script to pull back agent end time

Thanks again Rod. I’ll give that a shot.