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

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

Scheduled Pinned Locked Moved General
4 Posts 3 Posters 1.4k Views
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
    Shiigehiro
    last edited by Feb 9, 2018, 4:00 PM

    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

    W 1 Reply Last reply Feb 9, 2018, 10:54 PM Reply Quote 0
    • W
      Wayne Workman @Shiigehiro
      last edited by Feb 9, 2018, 10:54 PM

      @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
      • T
        Tom Elliott
        last edited by Feb 10, 2018, 1:55 AM

        /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

        S 1 Reply Last reply Feb 12, 2018, 8:00 AM Reply Quote 1
        • S
          Shiigehiro @Tom Elliott
          last edited by Shiigehiro Feb 12, 2018, 2:37 AM Feb 12, 2018, 8:00 AM

          @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
          1 / 1
          • First post
            1/4
            Last post

          159

          Online

          12.3k

          Users

          17.4k

          Topics

          155.7k

          Posts
          Copyright © 2012-2025 FOG Project