Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

mgcamd and telnet logging?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kontoni
    Senior Member
    • Aug 2012
    • 152

    mgcamd and telnet logging?

    hello friends

    i am using mgcamd on one of my boxes (azbox me) and i am facing random drop of emu during intensive zapping.

    i have tried various versions (1.30. 135. 1.38) but still not perfect result achieved .

    so my question has two parts.

    1. does replace.list file will make any difference if modified?



    2. on mg_cfg has a Log option

    HTML Code:
    L: { 03 } 172.16.1.1 28007 /tmp/mgcamd.log
    how can i activate logging mgcamd function on telnet console please?


    kind regards
  • gianni253
    Experienced Board Member
    • Nov 2012
    • 903

    #2
    Re: mgcamd and telnet logging?

    No, I don't think that replace.list tweaks will fix your problem.
    About logging, just omit log file name and run mgcamd from telnet session.

    Comment

    • aplok
      Experienced Board Member
      • Jun 2013
      • 1155

      #3
      Re: mgcamd and telnet logging?

      Originally posted by kontoni
      how can i activate logging mgcamd function on telnet console please?
      you can also try to activate de various debug options
      start mgcamd with the command, in a telnet console,

      /var/script/mgcamd_aaa.sh stop
      /var/script/mgcamd_aaa.sh start


      an read them in real time

      Comment

      • KVF1966
        Board Senior Member
        • Dec 2012
        • 279

        #4
        Re: mgcamd and telnet logging?

        i use the emulator mgcamd in your satellite receiver but replace.list never corrected and I have all worked without any problems, we can conclude that replace.list don't need

        Comment

        • kontoni
          Senior Member
          • Aug 2012
          • 152

          #5
          Re: mgcamd and telnet logging?

          Originally posted by gianni253
          No, I don't think that replace.list tweaks will fix your problem.
          About logging, just omit log file name and run mgcamd from telnet session.
          how do i run mgcamd from telnet session?

          simply as aplok wrote or alternatively should i modify something on mg_cfg L line and then on telnet start it ?

          also what could cause this stopping of emu sometimes?

          Comment

          • gianni253
            Experienced Board Member
            • Nov 2012
            • 903

            #6
            Re: mgcamd and telnet logging?

            Originally posted by kontoni
            how do i run mgcamd from telnet session?

            simply as aplok wrote or alternatively should i modify something on mg_cfg L line and then on telnet start it ?

            also what could cause this stopping of emu sometimes?
            Just simply as aplok wrote but remember to kill it before launching !

            Sometimes emus can crash for ecms whose processing goes bad (there is nothing you can do about that)

            Comment

            • aplok
              Experienced Board Member
              • Jun 2013
              • 1155

              #7
              Re: mgcamd and telnet logging?

              Originally posted by gianni253
              ...Sometimes emus can crash ... (there is nothing you can do about that)
              yes, you can pray Tux
              to resurrect mgcamd when he went away:

              while [ . ]; do ps aux |grep -v grep |grep mgcamd || /var/script/mgcamd_1.38_cam.sh start; sleep 5; done

              Comment

              • kontoni
                Senior Member
                • Aug 2012
                • 152

                #8
                Re: mgcamd and telnet logging?

                Originally posted by aplok
                to resurrect mgcamd when he went away:

                while [ . ]; do ps aux |grep -v grep |grep mgcamd || /var/script/mgcamd_1.38_cam.sh start; sleep 5; done



                dear aplok is this a telnet command to manually restore emu?

                if yes i think it is easier to do it from menu of softcam manager.


                anyway problem now is that with

                /var/script/mgcamd_aaa.sh stop
                /var/script/mgcamd_aaa.sh start

                you have to be very lucky so within this period of telnet session you will have a dropout of emu since it is somehow random.


                i wonder if i can see more details for mgcamd status on telnet when exactly this random disfunction occurs.

                by searching i found these commands

                ps|grep mgcam

                ps -e | grep -i MgCamd

                does anybody know what they do and if they can show me status and possible problem of emu when executed exactly after it has already happened this malfunction?

                Comment

                • aplok
                  Experienced Board Member
                  • Jun 2013
                  • 1155

                  #9
                  Re: mgcamd and telnet logging?

                  Originally posted by kontoni
                  if they can show me status and possible problem of emu when executed exactly after it has already happened this malfunction?
                  try to log the debug message:

                  1. activate various debug option in /var/keys/mg_cfg

                  2. choose this # 01 + 02 -> 03
                  # --- log
                  # Log option, summ of:
                  # 00 off
                  # 01 network udp log
                  # 02 log to console
                  # 04 file, appended ! delete it by yourself, before it eat all your hdd
                  # + IP udp-port log-file-name
                  #L: { 03 } 172.16.1.1 28007 /tmp/mgcamd.log
                  L: { 03 }

                  3. /var/script/mgcamd_aaa.sh stop

                  4. /var/script/mgcamd_aaa.sh start

                  5. zap until mgcamd drop down

                  6. read the log

                  7. to restart mgcamd
                  /var/script/mgcamd_aaa.sh start

                  8. to restart automatically mgcamd:
                  while [ . ]; do ps aux |grep -v grep |grep mgcamd || /var/script/mgcamd_1.38_cam.sh start; sleep 5; done

                  Comment

                  • gianni253
                    Experienced Board Member
                    • Nov 2012
                    • 903

                    #10
                    Re: mgcamd and telnet logging?

                    Originally posted by aplok
                    yes, you can pray Tux
                    to resurrect mgcamd when he went away:

                    while [ . ]; do ps aux |grep -v grep |grep mgcamd || /var/script/mgcamd_1.38_cam.sh start; sleep 5; done

                    Or put this check in crontab.

                    Anyway, as a matter of fact, I have found that having processes running to check that all is fine can sometimes result in cpu peaks that, in their turn, result is occasional freezes.
                    So my question is: is it really worth ?
                    When I have black screen the first thing I do is restarting emu and it takes 3 second with remote control ...

                    Comment

                    • aplok
                      Experienced Board Member
                      • Jun 2013
                      • 1155

                      #11
                      Re: mgcamd and telnet logging?

                      Originally posted by gianni253
                      Or put this check in crontab.
                      ... restarting emu and it takes 3 second with remote control ...
                      yes,

                      here is a nice illustration of the power, the flex and the smartness of Linux :

                      1 question, various best solutions according to the needs of the moment

                      manu
                      clicware : ... restarting emu and it takes 3 second with remote control ...
                      manu: ( command )

                      auto
                      deamon.auto: ... or put this check in crontab
                      deamon.manu: ( command ) &

                      by the way, is it possible to juggle this way with android ?

                      Comment

                      • gianni253
                        Experienced Board Member
                        • Nov 2012
                        • 903

                        #12
                        Re: mgcamd and telnet logging?

                        Originally posted by aplok
                        ... by the way, is it possible to juggle this way with android ?
                        I can't say it for direct experience, but I would say yes because, after all, android is another linux distro.

                        Comment

                        • aplok
                          Experienced Board Member
                          • Jun 2013
                          • 1155

                          #13
                          Re: mgcamd and telnet logging?

                          Originally posted by gianni253
                          ... because, after all, android is another linux
                          distro.
                          ... dedicated to click-interfaced-like portable device


                          and without keyboard how to you talk to Tux ?

                          Comment

                          • kontoni
                            Senior Member
                            • Aug 2012
                            • 152

                            #14
                            Re: mgcamd and telnet logging?

                            ok guys just one more thing about mgcamd supervision i want to ask .

                            my query is that on cccam we can access its data and control them with web interface

                            using internal ip of box + port 16001

                            is it possible to have a similar access to mgcam ?

                            Comment

                            • gianni253
                              Experienced Board Member
                              • Nov 2012
                              • 903

                              #15
                              Re: mgcamd and telnet logging?

                              Originally posted by aplok
                              ... dedicated to click-interfaced-like portable device


                              and without keyboard how to you talk to Tux ?
                              You can connect via ssh or telnet and use your pc's keyboard.
                              Also, usb keyboards can be connected directly to the device.

                              Comment

                              Working...