You're interacting with a higher level mco application, the puppet
application, which wraps around calling the agent. You probably want to
query the agent directly, using the rpc application.
try:
mco rpc puppet status -F myvar=something --json
On 22/10/13 17:31, Jayesh Mahajan wrote:
Greeting everyone,
I'm trying to get the output of mco result in json format. However it
looks like it doesnt work for the command which has statistics in it.
I'm not sure if I'm missing something.
e.g. *#mco puppet status -F myvar=SOMETHING -j *
--> The output is not json format
same for summery and count. i.e. mco puppet summery -F
myvar=SOMETHING -j #etc
However, runonce shows the output in json format.
*#mco puppet runonce -F myvar=SOMETHING -j*
Do any one know how can we convert the result of status,summery and
count into json format?
Thanks,
Jayesh
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.