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

    MP1 MP2 Recording length DE
    If you use "Manual Booking" (left side menu on the "Recording Schedule" panel), you can schedule a recording duration of up to 24 hours. However... That is using the "conventional" TV sources, i.e. a DVB-T tuner, a DVB-S tuner, or an analogue tuner. You stated in your other thread that you are using an IPTV source. Perhaps there is a...
    If you use "Manual Booking" (left side menu on the "Recording Schedule" panel), you can schedule a recording duration of up to 24...
    Is there a limit to recording length? My TVServer recordings all cut off at 3 hours but I can't find a setting anywhere to change...
    Replies
    1
    Views
    414
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its database". Anyway, I found a way to do this which was far from automated but relatively low effort. I found what looked like all the images (CD covers, DVD covers, backgrounds etc all lumped together in...
    Hi. I was probably being a bit fast and loose with my terminology. I meant "somewhere within the files that MP2 uses in its...
    I am in the process of setting up a legacy media player (Mede8er) which I happened to have laying around into my home cinema setup...
    Replies
    2
    Views
    410
    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
    2K
    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
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194 connections between 10:54 and 11:05 triggering a denial of service attack ban. The logs show it was lifted on 5/25, but I still see the entry in iptables. I reset fail2ban and hopefully you're working again." Weird...
    Got a reply from SD ... "Looks like your last successful download was on 5/23. On 5/24 for some reason we received 194...
    I'm using MediaPortal 1.38.1 x64 and have an SD-DD lineup account. In the last week, I have not been able to update my EPG, and...
    Replies
    3
    Views
    411
    Top Bottom