Home
TeamSite
Getting Date of Last Deploy
drossign
Is it possible to programmatically determine when the last deploy happened without parsing a large log file? There are such CLTs as iwlasted which would give me the name of the last edition but I can't seem to find anything that would easily tell me when a certain deploy last happened. Using TeamSite 5.5.2 and OpenDeploy 5.6 both for sparc solaris.
Any help is appreciated.
Thanks,
Dave
Find more posts tagged with
Comments
Adam Stoller
To some degree you could just look at the timestamp on the ODHOME/log/*_odbase.log - which will tell you when the last deployment activity was registered for that Base Server - but somehow I don't think that will really provide you the information you're looking for.
You could go a step further and look for the specific deployment's log within the same directory (src.deployment-name.log) though if you're using the '-inst' flag I think you need to incorporate the instance name in there somewhere too. Again, just doing a simple 'stat()' on the file should allow you to access the last modified timestamp of the file.
Otherwise - no - you'll have to parse the log files to find the information you're looking for --- OR --- have all your deployments run a DNR script to update a centrally maintained file with this information --- OR -- you might be able to extract that data (and more) from the deployment reporting DB (if you have it configured for use).
But there's no OOTB CLT for providing this information.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
drossign
fish,
Thanks for the response. Using the timestamp for the specific deployment log will work just fine. Now all I have to do is change that timestamp so it is a PST time instead of an EST time. The users want everything displayed as PST even though the machine is set for EST. In theory it should just be a simple subtraction but nothing ever works out that easy for me. (-:
Thanks again for the help.
Dave
Adam Stoller
If you're writing code in Perl - you might want to take a look at Date::Manip (Date_ConvTZ($date, $from, $to)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
drossign
Thanks for the suggestion. I was going to do some searching for a good way to do it and that worked most wonderfully.