I used to have this neat little report that ran on a dashboard I have for my daily stuff that would report on the expiration dates of all my hosted plesk domains [Plesk 9]
It looked like this:
Very simple, I could just peek at it at the beginning of the month and the code I used to sort it and make human readable dates highlighted all the ones to be billed in the current month. Great.
I updated to Plesk 12, this is now broken as they seem to have changed the schema, for the life of me I can't seem to figure it out.
I've tried something like this:
This does not seem to work either, just taking a sample of the results, a few domains show the expiration to be -1, but viewing them in Plesk show expiration dates. [expiration dates that match my last billing]
Does anyone know how to query the psa database to get a list of all domains expiration dates?
-thanks
It looked like this:
Code:
select d.name, l.* from Limits l
left join domains d on l.id =d.id
where l.limit_name = "expiration" and d.name != ""
order by value
Very simple, I could just peek at it at the beginning of the month and the code I used to sort it and make human readable dates highlighted all the ones to be billed in the current month. Great.
I updated to Plesk 12, this is now broken as they seem to have changed the schema, for the life of me I can't seem to figure it out.
I've tried something like this:
Code:
select d.name, l.* from Limits l
left join clients c on c.pool_id = l.id
left join domains d on c.id = d.cl_id
where l.limit_name = "expiration" and d.name != ""
order by value ASC;
This does not seem to work either, just taking a sample of the results, a few domains show the expiration to be -1, but viewing them in Plesk show expiration dates. [expiration dates that match my last billing]
Does anyone know how to query the psa database to get a list of all domains expiration dates?
-thanks