Skip to main content

Debug - Retrieve a computer’s PXE inventory

Procedure

Here are the steps to obtain an inventory generated by Davos. These actions must be performed on the imaging server.

  1. Stop the pulse2-register-pxe service
    systemctl stop pulse2-register-pxe
  2. Start registering a computer
  3. Enter its hostname (step performed on the computer)
  4. Go to /var/lib/pulse2/imaging/inventories/
    cd /var/lib/pulse2/imaging/inventories
  5. Copy the XML file outside of /var/lib/pulse2/imaging/inventories
    cp aa:bb:cc:dd:ee:ff.xml /tmp/inv.xml
  6. Restart the pulse2-register-pxe service
    systemctl restart pulse2-register-pxe

Why would you want to retrieve a Davos inventory?

In its normal operation, pulse2-register-pxe deletes the XML file once it has been sent. This can be a hindrance when you want to debug the feature. Without this step, you must:

  • reboot the computer in PXE mode
  • restart Davos
  • re-enter the hostname
  • wait for the inventory to be generated
  • wait for the computer to reboot with the saved menu (if successful), or return to the registration menu (if unsuccessful).

Once you have the inventory XML file, you can force the registration without going through the boot sequence.

What’s next?

Monitor the logs during the injection

  • Monitor the pulse2-package-server logs (relay:/var/log/mmc/pulse2-package-server.log)
  • Monitor the message-sender logs (relay:/var/log/pulse2/message-sender.log)
  • Monitor the mmc-agent logs (serveur:/var/log/mmc/mmc-agent.log)
  • Monitor the pulse-xmpp-master-substitut-inventory logs (server:/var/log/mmc/master-inv.log)

Copy the inventory to /var/lib/pulse2/imaging/inventories. This will trigger the injection process.