Jump to content

HyperVM module doesn't get IP


emeric

Recommended Posts

Hello Matt,

 

I tested your module for Hypervm.

 

VPS is created with no problem by whmcs but the problem is that into whmcs the ips of the news vps is not present.

 

So we got welcome email like:

VPS- Budget

 

Main IP:

Root user: root

Root pass: 2840

 

IP address allocation:

 

 

ServerName: host.batman.com

Link to comment
Share on other sites

Hypervm doesn't return it.. whmcs just passes the username and adds .vm.

 

Hypervm is still kinda a work in progress-- if enough people say we need it returned I think they will add it to their api.

 

Once this email goes out-- I get responses saying what is my ip(s).

 

I guess for now I can just say login to hypervm and you can view your ips there.-- not ideal at all.

 

Thanks,

Adam

Link to comment
Share on other sites

  • 5 months later...
This is not a bug. It is not possible to find out the IP of the new VPS. The HyperVM does not return it as far as I am aware.

 

Matt

 

It appears that HpyerVM will now return the IP addresses as per their wiki site at:

http://wiki.lxlabs.com/tiki-index.php?page=getting+properies+from+an+object

 

It also looks like their API will return disk usage, bandwidth, etc. These would all be really nice information to have pulled into WHMCS. I am thinking this can be done via the whmcs cron, but then again, I am not a programmer.

 

To get the ipaddresses of a vps, use v-coma_vmipaddress_a, which will return a coma separated list of all the ipaddresses configured on that vps.

 

 

 

action = getproperty

class = vps

name = vps.vm

v-coma_vmipaddress_a = null

 

 

 

 

 

$json = lxlabs_get_via_json("action=getproperty&class=vps&name=vps.vm&v-coma_vmipaddress_a=");

if (lxlabs_if_error($json)) {

print("Got error: server said: $json->message");

} else {

$iplist = explode(",", $json->result['v-coma_vmipaddress_a']];

print("The ips are:");

foreach($iplist as $ip) {

print("$ip\n");

}

}

 

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated