Page 1 of 1

Overview over Server Virtual Hub

Posted: Fri Mar 12, 2021 7:46 pm
by Anno
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.

Re: Overview over Server Virtual Hub

Posted: Fri Mar 12, 2021 8:47 pm
by sky59
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.

Re: Overview over Server Virtual Hub

Posted: Fri Mar 12, 2021 9:25 pm
by Anno
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

Re: Overview over Server Virtual Hub

Posted: Sat Mar 13, 2021 8:41 am
by sky59
Of course it works also from another machine!

See my thread:

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

Re: Overview over Server Virtual Hub

Posted: Sat Mar 13, 2021 2:28 pm
by solo
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.

Re: Overview over Server Virtual Hub

Posted: Sat Mar 13, 2021 3:18 pm
by sky59
Password is visible

Re: Overview over Server Virtual Hub

Posted: Mon Mar 15, 2021 4:03 pm
by Anno
Solo>>>>
If I create the Softether.bat file where to place it then?

You are talking about two files?

Re: Overview over Server Virtual Hub

Posted: Mon Mar 15, 2021 9:43 pm
by solo
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.

Re: Overview over Server Virtual Hub

Posted: Fri Mar 19, 2021 9:24 pm
by Anno
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

Re: Overview over Server Virtual Hub

Posted: Fri Mar 19, 2021 9:44 pm
by solo
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.

Re: Overview over Server Virtual Hub

Posted: Sun Mar 21, 2021 5:38 pm
by Anno
solo>>>>

Still the same, even I put in the line pause

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

Re: Overview over Server Virtual Hub

Posted: Mon Mar 22, 2021 12:20 am
by solo
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.