Oscam Scripts To Check Client Timeout & Auto Restart

There are 6 replies in this Thread which was already clicked 15,302 times. The last Post () by thuram.

  • Here is a script to check if a user gets a high ecm say over 1000ms and it will restart Oscam automatically:
    Set the clientimeout to "lets say 1000 ms".


    The scipt i use on debian:
    Dont forget to change
    SIZE=
    LOG=,
    STARTSCRIPT=



    and change the crontab !!!



    Credit to klapancius

  • sunlight786; sometimes Oscam get high ecm over 1000ms - without any reason ....
    so you need to check up your whole oscam conf or even change version to latest one;
    meanwhile you use this script .....


    I can confirm script is working perfect on ubuntu .

  • I use to get high ecm because of one peer who was making to much trafic, because of him the card was not working corect, not even for myself.
    It was showing timeout 5000ms ecm. After i delete him everything went back to normal.

  • I've copied and pasted it to gedit. called the file oscamcheck.sh . Ive Set the chmod 755
    were do i put the path of the file to "/etc/init.d/oscamcheck.sh ????
    etc/crontab what the command in crontab to restart the script????

  • @Rockett1 will make it more simple; let assume the following:
    1- you oscam folder are /oscam1/
    2- You named the above check script as oscamtimeout.sh
    3- Create another script (On path /oscam1/) to start - stop and restart oscam and u called o


    Then chmod 755 o script
    So basically the terminal commands for o script are:

    Quote

    o start # to start oscam
    o stop #to stop oscam
    o restart #to restart oscam


    4- Now replace the code on the oscamtimeout.sh with following


    5- To set crontab from terminal:

    Quote

    crontab -e


    and add the below line

    Quote

    */5 * * * * /oscam1/oscamtimeout.sh


    #The oscamtimeout.sh script wl run every 5 minutes
    Done

  • To edit it with the timeout at 3500 ms how would it be done?

    Could it be done by just Reload Readers, without a complete OSCAM restart?


    Thanks.

    Edited 2 times, last by thuram ().

Your resource for OSCam softcam

Find configs, downloads, tutorials, and support for setting up and optimizing this open-source card server with wide protocol compatibility. Master the versatile OSCam softcam. Access support, configs, tutorials, and downloads for open-source card sharing and multi-protocol server management.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!