Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 1.38 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. bash-3.2# mc-rpc --agent yaml_store --action search --arg certname=qp6220ubv4m.huronhs.com --arg fact=hostname
  2. Determining the amount of hosts matching filter for 2 seconds .... 4
  3.  
  4.  * [ ==========================================================> ] 4 / 4
  5.  
  6.  
  7. helpdesk                                
  8.    Fact Information: hostname = lab07-hsart-hhs
  9. msreplica                                
  10.    Fact Information: That certname was not found.
  11. testing                                  
  12.    Fact Information: That certname was not found.
  13. wesreplica                              
  14.    Fact Information: That certname was not found.
  15.  
  16.  
  17. Finished processing 4 / 4 hosts in 708.20 ms
  18.  
  19.  
  20. ## The other way around
  21.  
  22.  
  23. bash-3.2# mc-rpc --agent yaml_store --action search --arg hostname=lab05-hsimaclab-hhs --arg fact=certname
  24. Determining the amount of hosts matching filter for 2 seconds .... 4
  25.  
  26.  * [ ==========================================================> ] 4 / 4
  27.  
  28.  
  29. testing                                  
  30.    Fact Information: That hostname was not found.
  31. wesreplica                              
  32.    Fact Information: That hostname was not found.
  33. helpdesk                                
  34.    Fact Information: certname = qp7220ahvuy.huronhs.com
  35. msreplica                                
  36.    Fact Information: That hostname was not found.
  37.  
  38.  
  39. Finished processing 4 / 4 hosts in 1605.66 ms