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

    [API] How get host id (or name) with mac address

    Scheduled Pinned Locked Moved
    General
    3
    4
    1.2k
    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.
    • ShiigehiroS
      Shiigehiro
      last edited by

      We can do this by listing all host, so we have ~3000 hosts and this is looooooong and heavy, then, do you have a
      solution to get host information with mac address with the api, this is a shell script.

      Fog version: 1.5 rc12

      Thanks you

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @Shiigehiro
        last edited by

        @shiigehiro Just so you know, I am looking at this and trying to find a solution. Please keep checking back.

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 1
        • Tom ElliottT
          Tom Elliott
          last edited by

          /fog/host/search/<stringtosearch> (can be hostname, mac address, anything the main pages allow you to search with)

          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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          ShiigehiroS 1 Reply Last reply Reply Quote 1
          • ShiigehiroS
            Shiigehiro @Tom Elliott
            last edited by Shiigehiro

            @tom-elliott How can i request to /fog/host/search/xx:xx:xx:xx:xx:xx ?
            I will have an error with this for illegal url chars can i send it with data ?

            And

            http://domain.com/fog/host/search/randomhostname
            

            return a white page (403 Forbidden error to get the search route)

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

            233

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project