Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Monitor your Internet service and provider

Information and Support

  1. Home
  2. Categories
  3. Support forums
  4. Linux
  5. What is /deviceid ?
Automatically monitor your Internet service and provider with alerts to problems
Track Internet disconnections, provider outages with historical data, and automated speed testing.
For Windows, Linux, ARM64, ARMa7. Learn more by visiting www.outagesio.com
Notice: If you created an account on app.outagesio.com, simply use the same credentials to log in here.

What is /deviceid ?

Scheduled Pinned Locked Moved Solved Linux
7 Posts 2 Posters 2.4k Views
  • 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 Offline
    K Offline
    kjellgrb
    wrote on last edited by
    #1

    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
    0
    • OutagesIO_SupportO Offline
      OutagesIO_SupportO Offline
      OutagesIO_Support
      wrote on last edited by
      #2

      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 making it difficult to find services like OutagesIO.
      To help us, you could leave a Google review, or share your reports in forums, or social media.
      You could mention us in articles, and perhaps someone would review us.
      We count on satisfied members spreading the word!

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kjellgrb
        wrote on last edited by
        #3

        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
        0
        • OutagesIO_SupportO Offline
          OutagesIO_SupportO Offline
          OutagesIO_Support
          wrote on last edited by
          #4

          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 making it difficult to find services like OutagesIO.
          To help us, you could leave a Google review, or share your reports in forums, or social media.
          You could mention us in articles, and perhaps someone would review us.
          We count on satisfied members spreading the word!

          1 Reply Last reply
          0
          • OutagesIO_SupportO Offline
            OutagesIO_SupportO Offline
            OutagesIO_Support
            wrote on last edited by
            #5

            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 making it difficult to find services like OutagesIO.
            To help us, you could leave a Google review, or share your reports in forums, or social media.
            You could mention us in articles, and perhaps someone would review us.
            We count on satisfied members spreading the word!

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kjellgrb
              wrote on last edited by
              #6

              > 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
              0
              • OutagesIO_SupportO Offline
                OutagesIO_SupportO Offline
                OutagesIO_Support
                wrote on last edited by
                #7

                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 making it difficult to find services like OutagesIO.
                To help us, you could leave a Google review, or share your reports in forums, or social media.
                You could mention us in articles, and perhaps someone would review us.
                We count on satisfied members spreading the word!

                1 Reply Last reply
                0
                • OutagesIO_SupportO OutagesIO_Support marked this topic as a question on
                • OutagesIO_SupportO OutagesIO_Support has marked this topic as solved on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups