Monitor your Internet service and provider

    Information and Support

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    OutagesIO Support Forums

    Information, Support, and FAQ relating to OutagesIO. Monitor your Internet service and provider with optional alerts to connection issues or downtime. For home, small businesses, IT companies, and enterprises. Tracks Internet and provider reliability with useful proof. For Windows, Linux, ARM (Raspberry, Tinker Board, etc).

    Learn more by visiting www.outagesio.com

    What is /deviceid ?

    Linux
    2
    7
    1988
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kjellgrb last edited by

      Hi

      In updater_linux_ocp.sh for Ubuntu in line 8
      > echo "$devid" >$filesetc/deviceid
      This line create an empty file /deviceid

      What is the purpose for /deviceid ?

      Regards,

      Benny

      1 Reply Last reply Reply Quote 0
      • OutagesIO_Support
        OutagesIO_Support Moderator last edited by

        Hi,

        When we build a firmware, we add an ID and a date to this file which represents the manufacturer/model of the device this firmware is running on.

        When the starter script starts, it can look up which version of the agent it needs to download and if it's an embedded device, it can know if it needs to upgrade itself, things like that.

        We maintain and test a fair number of makes/models for the hardware agents we use and we are trying to get to unified scripts that can work on everything we have. Some will use some things in the scripts, some won't.

        So the answer is that for the Linux download, this is not used but the script is a common one that we use and some hardware devices would use the /etc/deviceid.

        Hope this helps.

        Regards,
        OutagesIO Support

        Search engines favor deep pockets and popularity making it difficult to find services like OutagesIO.
        Would you please take a moment to leave a Google review, it could help improve our chances of being found.

        1 Reply Last reply Reply Quote 0
        • K
          kjellgrb last edited by

          Hi,

          I fully understand that you want to have unified scripts.

          Perhaps you can change the line

          if [[ -n "${devid}" ]]; then
            echo "${devid}" >${filesetc}/deviceid
          fi
          
          

          Then you avoid to create empty/unused files but still have a unified script.

          1 Reply Last reply Reply Quote 0
          • OutagesIO_Support
            OutagesIO_Support Moderator last edited by

            Thank you for the suggestion. I'll pass this on to the developers.

            I hope you'll find OutagesIO useful.

            Regards,
            OutagesIO Support

            Search engines favor deep pockets and popularity making it difficult to find services like OutagesIO.
            Would you please take a moment to leave a Google review, it could help improve our chances of being found.

            1 Reply Last reply Reply Quote 0
            • OutagesIO_Support
              OutagesIO_Support Moderator last edited by

              Hi,

              Can you let me know which version of the starter script you have? I believe it is 1.0.1.

              In that version, that section looks like this.

              #Version 1.0.1

              Enter the full path where you will be placing the starter_linux_otm.sh script into.

              Our example shows '/agent', change this to what ever your path is.

              start="/agent"

              #echo "$devid" >$filesetc/deviceid

              And, I'm not sure why that line is there. It was probably left over from some testing and is not being used for the Linux version.

              Regards,
              OutagesIO Support

              Search engines favor deep pockets and popularity making it difficult to find services like OutagesIO.
              Would you please take a moment to leave a Google review, it could help improve our chances of being found.

              1 Reply Last reply Reply Quote 0
              • K
                kjellgrb last edited by

                > Can you let me know which version of the starter script you have?

                # fgrep Version /agent/updater_linux_ocp.sh 
                #Version 1.0.1 
                #
                
                

                I created a new software agent for Ubuntu (id 126425) and the first lines of the script in installation procedure is :

                #!/bin/bash 
                
                #Version 1.0.1 
                
                # Enter the full path where you will be placing the starter_linux_otm.sh script into.
                # Our example shows '/agent', change this to what ever your path is.
                start="/agent"
                echo "$devid" >$filesetc/deviceid 
                
                echo "Make sure to create /etc/agentid with credentials before starting this script"
                
                
                1 Reply Last reply Reply Quote 0
                • OutagesIO_Support
                  OutagesIO_Support Moderator last edited by

                  It turns out that line is not needed for Linux based installations and was left over from some testing.

                  All of those scripts have been updated. No need to download it again, simply remove that line.

                  Thanks for catching that and letting us know.

                  Regards,
                  OutagesIO Support

                  Search engines favor deep pockets and popularity making it difficult to find services like OutagesIO.
                  Would you please take a moment to leave a Google review, it could help improve our chances of being found.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB | Contributors