Deep Ping (1 Viewer)

SquareEyes

Portal Member
August 16, 2007
14
0
Home Country
United Kingdom United Kingdom
Is it possible to deep ping the TVServer?
I would like to create a script that reboots my PC if the TVServer is not responding.
 

SquareEyes

Portal Member
August 16, 2007
14
0
Home Country
United Kingdom United Kingdom
Is it possible to deep ping the TVServer?
I would like to create a script that reboots my PC if the TVServer is not responding.
 

SquareEyes

Portal Member
August 16, 2007
14
0
Home Country
United Kingdom United Kingdom
A deep ping allow a remote client to check if the Server is running, not just at the process level but internally too.
I'm sure the TVClient is already using something similar.

I'm running a client server setup in my house and given all the problems with TVServer stability, I've written a script which helps keep things working.

If anything goes wrong (eg freeze), I hit the panic button on my remote and this kills and restarts the TVService on the server and also kills and restarts MediaPortal on the client. Girder is used to assign a remote button to this script. The restart takes about 10 seconds so is a fairly good workaround for me.

I would like to improve my script so it polls the TVService using a deep ping and therefore automatically restarts the components for me.

If anyone is interested in my current script let me know, I'm happy to share it.
 

BennieBoy

Portal Pro
April 22, 2005
134
6
60
Maastricht
Home Country
Netherlands Netherlands
Hi,

I am working on a small application to restart the TV-Server Service when it isn't responding anymore.
I'll keep the Forum posted.

Greetz,
Ben
 

SquareEyes

Portal Member
August 16, 2007
14
0
Home Country
United Kingdom United Kingdom
Look forward to seeing your tool.
Here is what I use to restart MP/TVServer when a problem occurs.


=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Reboot server
REM shutdown -r -t 0 -f -m \\myHostname

REM Reboot client
REM shutdown -r -t 0 -f

=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Kill and restart services

REM Stop local Mediaportal
taskkill /IM MediaPortal.exe
taskkill /F /IM MediaPortal.exe

REM Stop Remote TV service
sc \\myHostname stop TvService
taskkill /S \\myHostname /U myUser /P myPwd /F /IM TvService.exe

REM Start TVService
sc \\myHostname start TvService

REM Start Client
"C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe"

=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Remote list tasks
REM tasklist /s myHostname /U myUser /P myPwd

=================================================================

exit
 

SquareEyes

Portal Member
August 16, 2007
14
0
Home Country
United Kingdom United Kingdom
Here is what I use to restart MP/TVServer when a problem occurs.
Change the values of myHostname, myUser and myPwd and enjoy!


=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Reboot server
REM shutdown -r -t 0 -f -m \\myHostname

REM Reboot client
REM shutdown -r -t 0 -f

=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Kill and restart services

REM Stop local Mediaportal
taskkill /IM MediaPortal.exe
taskkill /F /IM MediaPortal.exe

REM Stop Remote TV service
sc \\myHostname stop TvService
taskkill /S \\myHostname /U myUser /P myPwd /F /IM TvService.exe

REM Start TVService
sc \\myHostname start TvService

REM Start Client
"C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe"

=================================================================
REM Useful commands prepared by SquareEyes
=================================================================

REM Remote list tasks
REM tasklist /s myHostname /U myUser /P myPwd

=================================================================

exit
 

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Please don't double post.

    If you want to draw attention to a reply you made in another thread that is relevent then link to it.

    Cheers,
     

    Users who are viewing this thread

    Similar threads

    MP1 MP2 Kodi Plugin DE
    Some MP2 installers contain three TV Servers: TVE3 TVE3.5 TvMosaic If the installer that you used offers you the choice of these three TV Servers, select TVE3. If you selected TVE3.5, run the installer again and select TVE3. The Kodi plugin is described as being intended for MP 2.5 and TVE3, so it should work. Unfortunately I do...
    Some MP2 installers contain three TV Servers: TVE3 TVE3.5 TvMosaic If the installer that you used offers you the choice of these...
    Hi, I have read some thread discussions but I still have not understood what is happening. I have MediaPortal 2.5. To use it...
    Replies
    2
    Views
    659
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
    Interesting. :coffee: I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
    Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
    Replies
    27
    Views
    3K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    777
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the stations but if I rescan it on the same card it just keeps updating the 1 channel. My brain is melting.........
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the...
    Having great fun with this still. I have a fairly good PC setup, Ryzen 5 8500g, Msi Pro 650M-P with 32GB of RAM with a TBS 6281 and...
    Replies
    2
    Views
    1K
    MP1 MP2 1.36 IPTV Support DE
    I've no idea if this is possible or in the works but I am wondering if the IPTV part of TVServer could be upgraded to support M3U8, HTTPS, HLS or whatever is needed for newer IPTV connections?
    I've no idea if this is possible or in the works but I am wondering if the IPTV part of TVServer could be upgraded to support M3U8...
    I've no idea if this is possible or in the works but I am wondering if the IPTV part of TVServer could be upgraded to support M3U8...
    Replies
    0
    Views
    1K
    Top Bottom