Overview over Server Virtual Hub

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Anno
Posts: 15
Joined: Sun May 12, 2019 5:40 pm

Overview over Server Virtual Hub

Post by Anno » Fri Mar 12, 2021 7:46 pm

I have a Softether Server running with 40 Virtual Hub

I am looking for a program or a way where I can have a overview over all the 40 Hub if any is connected to the Hub.

sky59
Posts: 449
Joined: Tue Sep 11, 2018 5:58 pm

Re: Overview over Server Virtual Hub

Post by sky59 » Fri Mar 12, 2021 8:47 pm

I adapted vpncmd sorce code, so I do not have to type in any info like IP, hub name, password... so I only star it in command window and I get result from command SessionList.
If you make 40 times compilation for different hub name, then just call 40 times your special vpncmd and you get list of all connections at once. If you redirect in filename then you get text file.

Anno
Posts: 15
Joined: Sun May 12, 2019 5:40 pm

Re: Overview over Server Virtual Hub

Post by Anno » Fri Mar 12, 2021 9:25 pm

Today I am running SE-VPN Server Manager (Tools) from a windows machine

and the Softether server is on another machine

I am looking for something where I from my windows can have an overview

sky59
Posts: 449
Joined: Tue Sep 11, 2018 5:58 pm

Re: Overview over Server Virtual Hub

Post by sky59 » Sat Mar 13, 2021 8:41 am

Of course it works also from another machine!

See my thread:

https://www.vpnusers.com/viewtopic.php?f=7&t=66431

solo
Posts: 59
Joined: Sun Feb 14, 2021 10:31 am

Re: Overview over Server Virtual Hub

Post by solo » Sat Mar 13, 2021 2:28 pm

Anno wrote:
Fri Mar 12, 2021 9:25 pm
I am looking for something where I from my windows can have an overview
No need to peruse the source code to compile a special version of vpncmd and then call it 40 times. Create these two files and fill-in your server's data:

Code: Select all

SoftEther.bat
-------------
vpncmd /server address:port /password:password /in:batch.txt > %tmp%\SoftEther.txt
start wordpad.exe %tmp%\SoftEther.txt

batch.txt
---------
hub hub1
SessionList
hub hub2
SessionList
...
...
...
hub hub40
SessionList
Double-click on SoftEther.bat and the script will display an overview of all your 40 hub's sessions in one window.

sky59
Posts: 449
Joined: Tue Sep 11, 2018 5:58 pm

Re: Overview over Server Virtual Hub

Post by sky59 » Sat Mar 13, 2021 3:18 pm

Password is visible

Anno
Posts: 15
Joined: Sun May 12, 2019 5:40 pm

Re: Overview over Server Virtual Hub

Post by Anno » Mon Mar 15, 2021 4:03 pm

Solo>>>>
If I create the Softether.bat file where to place it then?

You are talking about two files?

solo
Posts: 59
Joined: Sun Feb 14, 2021 10:31 am

Re: Overview over Server Virtual Hub

Post by solo » Mon Mar 15, 2021 9:43 pm

As vpncmd is in the system's path, you can place the two files (together) anywhere.

Refer to this doc if you have any doubts about the syntax.

Anno
Posts: 15
Joined: Sun May 12, 2019 5:40 pm

Re: Overview over Server Virtual Hub

Post by Anno » Fri Mar 19, 2021 9:24 pm

Solo>>>>>>>
I created Softether.bat and batch.txt and placed them on my windows desktop and started Softether.bat

But is is only showing again and again the patch to the Softether.bat file

solo
Posts: 59
Joined: Sun Feb 14, 2021 10:31 am

Re: Overview over Server Virtual Hub

Post by solo » Fri Mar 19, 2021 9:44 pm

Place both files on path without spaces, eg C:\SoftEther\SoftEther.bat

If still a problem, add "pause"...

Code: Select all

vpncmd /server address:port /password:password /in:batch.txt > %tmp%\SoftEther.txt
start wordpad.exe %tmp%\SoftEther.txt
pause
...and post the exact error message.

Anno
Posts: 15
Joined: Sun May 12, 2019 5:40 pm

Re: Overview over Server Virtual Hub

Post by Anno » Sun Mar 21, 2021 5:38 pm

solo>>>>

Still the same, even I put in the line pause

Showing the path where SoftEther.bat is placed again and again

solo
Posts: 59
Joined: Sun Feb 14, 2021 10:31 am

Re: Overview over Server Virtual Hub

Post by solo » Mon Mar 22, 2021 12:20 am

MS CLI issues are off-topic on this forum. Please refer to Windows CMD Shell How-to guides and examples or wait for someone to offer a point-and-click GUI app for an Overview over Server Virtual Hub.

Post Reply