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

    driverinstall.sh won't get host info

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    1.0k
    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.
    • S
      Seb B
      last edited by

      Server
      • FOG Version: 1.4.3
      • OS: Debian 8.8
      Description

      Hi everyone,
      Not really sure if this is the right section but there goes:
      up to a few days/week ago, we had our modified version of driverinstall.sh copy the drivers according to the model of the host as seen in the fog inventory under system product.

      we used to get this info through a wget command in the script (found somewhere on this forum I think or maybe the wiki)

       wget -q -O /tmp/hinfo.sh "http://${web}service/hostinfo.php?mac=${mac}"
      

      Now it won’t return anything…

      I tried to run the command with a hard coded server and mac address

      http://myfogserver.mydomain/fog/service/hostinfo.php?mac=48:4d:7e:fa:XX:XX
      

      and the resulting hinfo.sh is an empty file. When I run this same command through a browser I get a “Cannot view from browser” message and that’s about it…

      I also tried replacing the driverinstall.sh script with a backup one from two month ago to no avail so I,m almost sure it’s not someone tinkering with the script.

      I’a at a loss here, I’m not sure if this is due to the last update as I don’t manage server updates here and can’t seem to remember when the las update was.

      Maybe upgrading to 1.4.4 will fix this, but as I said, I don’t manage the upgrades.

      Thanks and have a nice day.

      Seb

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @Seb B
        last edited by george1421

        @Seb-B said in driverinstall.sh won't get host info:

        wget -q -O /tmp/hinfo.sh “http://${web}service/hostinfo.php?mac=${mac}”

        This url has changed a bit. An additional security test has been put in place to keep random url requests to this script. You will need to modify your call to pass an empty user agent to get pass this check.

        wget -q -U '' -O /tmp/hinfo.sh "http://${web}service/hostinfo.php?mac=${mac}"

        This should work.

        FWIW: You can also use dmidecode to get target computer info too. There are updated scripts in the tutorials section that show how to use dmidecode.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        S 1 Reply Last reply Reply Quote 0
        • S
          Seb B @george1421
          last edited by

          @george1421

          Awesome! It works!

          Thanks a lot.

          I’ll have a look at dmidecode when things settle down a little thanks.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          174

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project