Ubuntu Geek

Ubuntu Linux Tutorials,Howtos,Tips & News | Gutsy,Hardy,Intrepid

  • RSS Feed

    subscribe to the ubuntu Geek RSS feed

  • Follow Us on Twitter

  • Sponsor


  • Categories

  • Meta

  • Sponsor

  • Archives

  • Support Ubuntugeek

    Amount $:
    Website(Optional):


  • Favourite Sites

Get Ubuntu System facts with facter

Posted by admin on February 28th, 2008 Email This Post Email This Post

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

a library for retrieving facts from operating systems.A cross-platform Ruby library for retrieving facts from operating systems. Supports multiple resolution mechanisms, any of which can be restricted to working only on certain operating systems or environments. Facter is especially useful for retrieving things like operating system names, IP addresses, MAC addresses, and SSH keys.

It is easy to extend Facter to include your own custom facts or to include additional mechanisms for retrieving facts.

Install facter in Ubuntu

sudo apt-get install facter

This will complete the installation.

Using facter

factor syntax

factor OPTION

If you want to view your system facts just type the following command from your terminal

facter

Output looks like below


Share/Save/Bookmark

Related Articles

3 Responses to “Get Ubuntu System facts with facter”

  1. George Says:

    All I have to say is, “Wow”. This is just plain cool and will most likely make its way to all my servers.

    Thanks much

  2. Fabian Schlenz Says:

    Nice article, thanks.

    Just a small note, though: Erasing a part of the fqdn might be a good idea - but the values of hostname and domain are still visible…

  3. admin Says:

    thanks mate i updated the image

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>