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
61
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

    I currently have two Quatros running, one connect, one duo using OTA antennae, mostly UHF fringe area, mostly cat5 local network. Hauppauge card retired long ago. I have also retired very early SD units, the Quatros seem to work much better than the older units. Go to SD's support website and download and install the windows...
    I currently have two Quatros running, one connect, one duo using OTA antennae, mostly UHF fringe area, mostly cat5 local network...
    I am currently using a Hauppauge WinTV QuadHD PCIe card on MP1 (1.37) for DVB-T, but 2 of the tuners have died. Thinking about...
    Replies
    3
    Views
    1K
    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
    1K
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching live TV. I've now ticked the box to "Use EVR for LiveTV", with a default display refresh rate of 50Hz. In combination with tweaking some of the Nvidia 3D settings for the MP executable only, I now have a...
    After many hours of troubleshooting I've given up and accepted that it's just "one of these things" when using madVR for watching...
    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
    30
    Views
    7K
    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
    1K
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0 on Windows 7 SP1
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0...
    My TV PC is more a cast-off on older hardware (a 'Quiet PC' i5 4690, 16GB ram, 2xSSD 1xHDD, system graphics), mainly as a cheap way...
    Replies
    5
    Views
    1K
    Top Bottom