You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Mosharaf Hossain <mo...@bol-online.com> on 2023/03/18 10:45:55 UTC
CloudStack VM search using IP
Hi
At the moment, I am unable to locate a VM using its IP address but I can
locate it using its name. Does anyone have any suggestions on how to search
for a VM using its IP?
Regards
Mosharaf Hossain
Manager, Product Development
IT Division
Bangladesh Export Import Company Ltd.
Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
Cell: +8801787680828, Email: mosharaf.hossain@bol-online.com, Web:
www.bol-online.com
<https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A>
Re: CloudStack VM search using IP
Posted by Wei ZHOU <us...@gmail.com>.
Hi,
It seems not possible via API now.
You could use mysql statement as workaround
// private IP search
SELECT * FROM user_vm_view WHERE ip_address = '??? GROUP BY id;
// public IP search
SELECT * FROM user_vm_view WHERE public_ip_address = '???' GROUP BY id;
Could you create a github issue ?
-Wei
On Tue, 21 Mar 2023 at 08:45, Mosharaf Hossain <
mosharaf.hossain@bol-online.com> wrote:
> Hello Wei
> It could have any IP address. I want to look up the instance using its
> assigned IP rather than its name or display name. In version 4.17.1.0, I am
> unable to do this.
>
>
>
>
> Regards
> Mosharaf Hossain
> Manager, Product Development
> IT Division
>
>
>
> On Tue, Mar 21, 2023 at 1:37 PM Wei ZHOU <us...@gmail.com> wrote:
>
> > Do you mean private IP or public IP address ?
> >
> > -Wei
> >
> > On Sat, 18 Mar 2023 at 11:47, Mosharaf Hossain <
> > mosharaf.hossain@bol-online.com> wrote:
> >
> > > Hi
> > > At the moment, I am unable to locate a VM using its IP address but I
> can
> > > locate it using its name. Does anyone have any suggestions on how to
> > search
> > > for a VM using its IP?
> > >
> > >
> > >
> > >
> > > Regards
> > > Mosharaf Hossain
> > > Manager, Product Development
> > > IT Division
> > >
> > > Bangladesh Export Import Company Ltd.
> > >
> > > Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
> > >
> > > Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2
> 9895757
> > >
> > > Cell: +8801787680828, Email: mosharaf.hossain@bol-online.com, Web:
> > > www.bol-online.com
> > > <
> > >
> >
> https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A
> > > >
> > >
> >
>
Re: CloudStack VM search using IP
Posted by Mosharaf Hossain <mo...@bol-online.com>.
Hello Wei
It could have any IP address. I want to look up the instance using its
assigned IP rather than its name or display name. In version 4.17.1.0, I am
unable to do this.
Regards
Mosharaf Hossain
Manager, Product Development
IT Division
On Tue, Mar 21, 2023 at 1:37 PM Wei ZHOU <us...@gmail.com> wrote:
> Do you mean private IP or public IP address ?
>
> -Wei
>
> On Sat, 18 Mar 2023 at 11:47, Mosharaf Hossain <
> mosharaf.hossain@bol-online.com> wrote:
>
> > Hi
> > At the moment, I am unable to locate a VM using its IP address but I can
> > locate it using its name. Does anyone have any suggestions on how to
> search
> > for a VM using its IP?
> >
> >
> >
> >
> > Regards
> > Mosharaf Hossain
> > Manager, Product Development
> > IT Division
> >
> > Bangladesh Export Import Company Ltd.
> >
> > Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
> >
> > Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
> >
> > Cell: +8801787680828, Email: mosharaf.hossain@bol-online.com, Web:
> > www.bol-online.com
> > <
> >
> https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A
> > >
> >
>
Re: CloudStack VM search using IP
Posted by Wei ZHOU <us...@gmail.com>.
Do you mean private IP or public IP address ?
-Wei
On Sat, 18 Mar 2023 at 11:47, Mosharaf Hossain <
mosharaf.hossain@bol-online.com> wrote:
> Hi
> At the moment, I am unable to locate a VM using its IP address but I can
> locate it using its name. Does anyone have any suggestions on how to search
> for a VM using its IP?
>
>
>
>
> Regards
> Mosharaf Hossain
> Manager, Product Development
> IT Division
>
> Bangladesh Export Import Company Ltd.
>
> Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
>
> Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
>
> Cell: +8801787680828, Email: mosharaf.hossain@bol-online.com, Web:
> www.bol-online.com
> <
> https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A
> >
>
Re: CloudStack VM search using IP
Posted by Rohit Yadav <ro...@shapeblue.com>.
Sounds indeed like a handy feature, you may log request at https://github.com/apache/cloudstack/issues
Regards.
________________________________
From: Mauro Ferraro - G2K Hosting <mf...@g2khosting.com>
Sent: Monday, March 20, 2023 5:53:28 PM
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>; Kiran Chavala <ki...@shapeblue.com>
Subject: Re: CloudStack VM search using IP
Hi, This can be a good and very useful feature, isnt it?
El 20/3/2023 a las 04:26, Kiran Chavala escribió:
> Hi Mosharaf
>
> Or query the database
>
> mysql> select instance_id from nics where ip4_address="<>" and state ="Allocated";
>
>
> Also, you can try to use this api call, it's usefull
>
> https://cloudstack.apache.org/api/apidocs-4.17/apis/listNics.html
>
> Regards
> Kiran
> ________________________________
> From: Mosharaf Hossain<mo...@bol-online.com>
> Sent: 18 March 2023 16:15
> To:users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: CloudStack VM search using IP
>
> Hi
> At the moment, I am unable to locate a VM using its IP address but I can
> locate it using its name. Does anyone have any suggestions on how to search
> for a VM using its IP?
>
>
>
>
> Regards
> Mosharaf Hossain
> Manager, Product Development
> IT Division
>
> Bangladesh Export Import Company Ltd.
>
> Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
>
> Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
>
> Cell: +8801787680828, Email:mosharaf.hossain@bol-online.com, Web:
> www.bol-online.com<http://www.bol-online.com>
> <https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A>
>
>
>
>
Re: CloudStack VM search using IP
Posted by Mauro Ferraro - G2K Hosting <mf...@g2khosting.com>.
Hi, This can be a good and very useful feature, isnt it?
El 20/3/2023 a las 04:26, Kiran Chavala escribió:
> Hi Mosharaf
>
> Or query the database
>
> mysql> select instance_id from nics where ip4_address="<>" and state ="Allocated";
>
>
> Also, you can try to use this api call, it's usefull
>
> https://cloudstack.apache.org/api/apidocs-4.17/apis/listNics.html
>
> Regards
> Kiran
> ________________________________
> From: Mosharaf Hossain<mo...@bol-online.com>
> Sent: 18 March 2023 16:15
> To:users@cloudstack.apache.org <us...@cloudstack.apache.org>
> Subject: CloudStack VM search using IP
>
> Hi
> At the moment, I am unable to locate a VM using its IP address but I can
> locate it using its name. Does anyone have any suggestions on how to search
> for a VM using its IP?
>
>
>
>
> Regards
> Mosharaf Hossain
> Manager, Product Development
> IT Division
>
> Bangladesh Export Import Company Ltd.
>
> Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
>
> Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
>
> Cell: +8801787680828, Email:mosharaf.hossain@bol-online.com, Web:
> www.bol-online.com<http://www.bol-online.com>
> <https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A>
>
>
>
>
Re: CloudStack VM search using IP
Posted by Kiran Chavala <ki...@shapeblue.com>.
Hi Mosharaf
Or query the database
mysql> select instance_id from nics where ip4_address="<>" and state ="Allocated";
Also, you can try to use this api call, it's usefull
https://cloudstack.apache.org/api/apidocs-4.17/apis/listNics.html
Regards
Kiran
________________________________
From: Mosharaf Hossain <mo...@bol-online.com>
Sent: 18 March 2023 16:15
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: CloudStack VM search using IP
Hi
At the moment, I am unable to locate a VM using its IP address but I can
locate it using its name. Does anyone have any suggestions on how to search
for a VM using its IP?
Regards
Mosharaf Hossain
Manager, Product Development
IT Division
Bangladesh Export Import Company Ltd.
Level-8, SAM Tower, Plot #4, Road #22, Gulshan-1, Dhaka-1212,Bangladesh
Tel: +880 9609 000 999, +880 2 5881 5559, Ext: 14191, Fax: +880 2 9895757
Cell: +8801787680828, Email: mosharaf.hossain@bol-online.com, Web:
www.bol-online.com<http://www.bol-online.com>
<https://www.google.com/url?q=http://www.bol-online.com&sa=D&source=hangouts&ust=1557908951423000&usg=AFQjCNGMxIuHSHsD3qO6y5JddpEZ0S592A>