Advertisement
cyberkov

Untitled

Dec 12th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. root@avl2101p:/etc/puppet/bin (master)# hammer host list
  2. ---------------------------------------------------------------------------
  3. NAME                 | OPERATING SYSTEM ID | MAC | IP | ID  | HOST GROUP ID
  4. ---------------------------------------------------------------------------
  5. av1l622p.it.internal |                     |     |    | 345 |              
  6. av2l005p.it.internal | 3                   |     |    | 32  | 5            
  7.  
  8.  
  9. root@avl2101p:/etc/puppet/bin (master)# hammer host list --search 'status.pending = 1 and status.enabled = true and hostgroup_fullname !~ Oracle' --per-page 500
  10. ---------------------------------------------------------------------------
  11. HOST GROUP ID | MAC | IP | ID  | OPERATING SYSTEM ID | NAME                
  12. ---------------------------------------------------------------------------
  13. 13            |     |    | 217 | 2                   | av2l073p.it.internal
  14. 13            |     |    | 235 | 3                   | av2l104p.it.internal
  15.  
  16. root@avl2101p:/etc/puppet/bin (master)# hammer --output csv host list --search 'status.pending = 1 and status.enabled = true and hostgroup_fullname !~ Oracle' --per-page 500
  17. Id,Name,Operating System Id,Host Group Id,IP,MAC
  18. 217,av2l073p.it.internal,2,13,"",""
  19. 235,av2l104p.it.internal,3,13,"",""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement