• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

List domains by expiration date

J

JaimeG

Guest
Hi all,

Is there any way in Plesk 9.2 to see a list of all the domains hosted which also shows their expiration date? I want to be able to see which is the next domain to expire... I know I can be notified by email, but showing a list is sometimes more handy.

Pretty much the same question as this unreplied thread from six months ago: http://forum.parallels.com/showthread.php?t=89229
 
Hello

You can use command line utility:
# /usr/local/psa/bin/domain_pref -i plesk90.centos5.plesk.ru | grep -i expir
Expiration date: Jan 23, 2022

You can write a script (for example), which will show it for all domains. The list of domains can be taken from the database:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select * from domains"
 
I've used the following:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select name from domains where status<256" | awk '$1!="name"{print $1}' | xargs -i /usr/local/psa/bin/domain_pref -i {} | egrep "limits\:|Expiration" | awk 'BEGIN{x=0};{if(x==1){x=0;print y" "$3","$4$5}else{y=$2;x++;}}'

enjoy.
 
i've used the following:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e"select name from domains where status<256" | awk '$1!="name"{print $1}' | xargs -i /usr/local/psa/bin/domain_pref -i {} | egrep "limits\:|Expiration" | awk 'BEGIN{x=0};{if(x==1){x=0;print y" "$3","$4$5}else{y=$2;x++;}}'

enjoy.
 
Back
Top