Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

How to get Virtual IP address list? #8

Open
birkanozer opened this issue Feb 24, 2017 · 0 comments
Open

How to get Virtual IP address list? #8

birkanozer opened this issue Feb 24, 2017 · 0 comments

Comments

@birkanozer
Copy link

Hi,

I want to list users with their hubs, virtual IP's and online status. To obtain hubs i use "enum_hubs"method. For online status and vietual IP's i use "enum_session" and parse users according their username. But the IP that shown in "enum_sessions" is like: [1996662976]. I also tried "get_session_status" method, SessionStatus_ClientIp and ClientIpAddress also equals [1996662976]. When i run "enum_ip_table" the IP key gives [3247570601, 4278190047] value considered there is only one client connected to the server. If i try offical vpncmd interface or remote server manager i can see IP addresses without issue. Why this is happening?

Also i want to ask that what is the purpose of "key" kwarg in this method?

def enum_ip_table(self, hub_name=None, **key=None**):
        payload = {
            'HubName': ('string', [hub_name]),
            **'Key': ('int', [key])**
        }

        return self.call_method('EnumIpTable', payload)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant