Re: [API]How to check how many IPs are available in guest network

2014-06-17 Thread Chiradeep Vittal
...@citrix.com>> Date: Tuesday, June 17, 2014 at 10:49 PM To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" mailto:dev@cloudstack.apache.org>> Subject: Re: [API]How to check how many IPs are available in guest network Not sure I understand. Would this be a

Re: [API]How to check how many IPs are available in guest network

2014-06-17 Thread Chiradeep Vittal
Tuesday, June 17, 2014 at 6:39 PM To: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" mailto:dev@cloudstack.apache.org>> Subject: Re: [API]How to check how many IPs are available in guest network Chiradeep, So i did a little more digging in your example, I als

Re: [API]How to check how many IPs are available in guest network

2014-06-17 Thread ilya musayev
27;{print $2}') space=${space%\",} let space="32 - $space" let space=³2**$space - 1² let avail="$space - $used -1² echo ³Available IPs = $avail" From: ilya musayev Reply-To: "dev@cloudstack.apache.org" Date: Monday, June 16, 2014 at 3:21 PM To: &

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread Wei ZHOU
}' | awk -F "/" '{print $2}') >>>> >>>> space=${space%\",} >>>> let space="32 - $space" >>>> let space=ł2**$space - 1˛ >>>> >>>> >>>> >>>> >>>> let avail="$s

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread ilya musayev
apache.org" Date: Monday, June 16, 2014 at 3:21 PM To: "dev@cloudstack.apache.org" Subject: [API]How to check how many IPs are available in guest network Is there a way to check how many guest IPs are available in specific guest network? Current cloudstack reporting is n

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread Chiradeep Vittal
7;) >> >> space=${space%\",} >> let space="32 - $space" >> let space=³2**$space - 1² >> >> >> >> let avail="$space - $used -1² >> echo ³Available IPs = $avail" >> >> >> >> >> From: ilya musayev >&g

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread ilya musayev
; '{print $2}') space=${space%\",} let space="32 - $space" let space=³2**$space - 1² let avail="$space - $used -1² echo ³Available IPs = $avail" From: ilya musayev Reply-To: "dev@cloudstack.apache.org" Date: Monday, June 16, 2014 at 3:21 PM T

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread Chiradeep Vittal
${space%\",} let space="32 - $space" let space=³2**$space - 1² let avail="$space - $used -1² echo ³Available IPs = $avail" From: ilya musayev Reply-To: "dev@cloudstack.apache.org" Date: Monday, June 16, 2014 at 3:21 PM To: "dev@cloudstack.apac

Re: [API]How to check how many IPs are available in guest network

2014-06-16 Thread Wei ZHOU
lisPublicIpAddresses can list all public ips in a shared network, or public ips used in isolated network. state=Free means the ip is available. 2014-06-16 21:21 GMT+02:00 ilya musayev : > Is there a way to check how many guest IPs are available in specific guest > network? > > Current cloudstac

[API]How to check how many IPs are available in guest network

2014-06-16 Thread ilya musayev
Is there a way to check how many guest IPs are available in specific guest network? Current cloudstack reporting is not granular enough, i could not find a command that says listAvailableIPs or something similar. Any help is appreciated. Thanks, ilya