Ask Your Question
0

Facter factname command is showing blank output

asked 2016-11-07 01:26:29 -0500

Pramod Kumar gravatar image

updated 2016-11-09 22:14:58 -0500

ramindk gravatar image

While I am running command it is not giving any output. root# facter kernel.rb root#

I am running this from the default ruby load path which is /Library/Ruby/Site/facter. The facter version is

root# facter -v 2.4.4

on the other hand when I run facter -p command it provides me the output of whole system summary. I am not sure why I am not able to run the single fact.

I am setting up all these things locally. Can someone please help me on this?

~Regards, Pramod

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-11-07 14:17:51 -0500

lavaman gravatar image

You don't run facter against ruby files. Your command is looking for a fact named kernel.rb, which doesn't exist. Try facter kernel instead.

edit flag offensive delete link more
0

answered 2016-11-08 10:24:45 -0500

Kevin T gravatar image

if your on a unix system just run facter with zero arguments to see all the facts the system has. Check man facter and also you can see how facts can be extended and these facts can be used by scripts and puppet.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-11-07 01:26:29 -0500

Seen: 24 times

Last updated: Nov 08 '16