Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

How to find list sites with ip

Questions regarding the API
Application Programming Interface
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
zlodey
Posts: 8
Joined: Wed Oct 22, 2014 11:08 am

How to find list sites with ip
  • Quote

Post by zlodey » Tue Apr 16, 2019 3:00 pm

HI!For find sites wiyhout ip i use command : v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash | awk '{ print $1}'
I need format: site ip
Please help
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How to find list sites with ip
  • Quote

Post by skurudo » Tue Apr 16, 2019 3:13 pm

You can do it like this

Code: Select all

v-list-users | tail -n +3 | awk '{print "v-list-web-domains "$1" | tail -n +3"}' | bash | awk '{ print $1 " "  $2}'
Top

zlodey
Posts: 8
Joined: Wed Oct 22, 2014 11:08 am

Re: How to find list sites with ip
  • Quote

Post by zlodey » Tue Apr 16, 2019 3:23 pm

Sound good my birds, we very well stuff
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password