
Untitled
By: a guest on
Jun 21st, 2012 | syntax:
None | size: 1.38 KB | hits: 11 | expires: Never
bash-3.2# mc-rpc --agent yaml_store --action search --arg certname=qp6220ubv4m.huronhs.com --arg fact=hostname
Determining the amount of hosts matching filter for 2 seconds .... 4
* [ ==========================================================> ] 4 / 4
helpdesk
Fact Information: hostname = lab07-hsart-hhs
msreplica
Fact Information: That certname was not found.
testing
Fact Information: That certname was not found.
wesreplica
Fact Information: That certname was not found.
Finished processing 4 / 4 hosts in 708.20 ms
## The other way around
bash-3.2# mc-rpc --agent yaml_store --action search --arg hostname=lab05-hsimaclab-hhs --arg fact=certname
Determining the amount of hosts matching filter for 2 seconds .... 4
* [ ==========================================================> ] 4 / 4
testing
Fact Information: That hostname was not found.
wesreplica
Fact Information: That hostname was not found.
helpdesk
Fact Information: certname = qp7220ahvuy.huronhs.com
msreplica
Fact Information: That hostname was not found.
Finished processing 4 / 4 hosts in 1605.66 ms