How to get all domain-alias by command 'list_domains' ??

10 posts / 0 new
Last post
#1 Tue, 05/05/2015 - 09:30
leon05

How to get all domain-alias by command 'list_domains' ??

Hey experts,

In a script sh I would like to get all domains alias servers for a specific domain name... I've tried this without success :

virtualmin list-domains --alias --domain example.com

I've got an empty table like that :

Domain                         Username        Description                  
------------------------------ --------------- ------------------------------

Can someone help me ? THANKS!!!

Mon, 05/11/2015 - 14:16
leon05

anybody to help me ? my question isn't clear enough ? #sorry for my limited english...

Mon, 05/11/2015 - 15:10
andreychek

Howdy,

I'm actually not quite sure -- you did it the same way I would have.

I asked Jamie for some further input, hopefully he'll know how to do that :-)

-Eric

Mon, 05/11/2015 - 18:48
JamieCameron

Unfortunately there is no way to do this - the --alias flag limits the output to alias domains, but will show ALL of them. I will add an option for this in the next release though.

''

Tue, 05/12/2015 - 02:05 (Reply to #4)
leon05

Thanks for your answer. Awaiting the nee release so ;-)

For your information : I'd like to iterate over all domains, then on each alias to run specific command on my Drupal sites. To order to schedule maintenance operations via SH script.

Thanks Jamie.

Mon, 06/08/2015 - 14:58 (Reply to #5)
leon05

I will add an option for this in the next release though. Hi Jamie, do you have any release date in mind ? Currently my system is on 1.750, I think it the latest release so far. thanks for your update.

Mon, 06/08/2015 - 16:02
andreychek

Howdy,

Look for that feature in the next Virtualmin release... the last release was 4.17, which was released in early May. The feature Jamie is referring to would be in the next release, which should be coming out in the next few weeks.

-Eric

Sun, 08/23/2015 - 04:49
leon05

Hello,

I've got the 4.18 version, but this command do not seems to work better :

virtualmin list-domains --alias --domain example.com

Could you help ? ;-)

Tue, 11/24/2015 - 18:44
leon05

any help? :-(

Tue, 11/24/2015 - 19:59 (Reply to #9)
JamieCameron

You need to use something like virtualmin list-domains --alias example.com

''

Topic locked