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

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

    General
    3
    4
    773
    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.
    • Shiigehiro
      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 Workman 1 Reply Last reply Reply Quote 0
      • Shiigehiro
        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
        • Tom Elliott
          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

          Shiigehiro 1 Reply Last reply Reply Quote 1
          • Wayne Workman
            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
            • 1 / 1
            • First post
              Last post

            185
            Online

            10.4k
            Users

            16.4k
            Topics

            150.6k
            Posts

            Copyright © 2012-2023 FOG Project