Get Facts ExampleΒΆ

This example illustrates how to gather facts about all the servers in the inventory.

python3 examples/get_facts/main.py

This code gets the currently running OS name from server.

from reemote.facts.server.get_os import Get_OS
print((yield Get_OS()).cp.stdout)