File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ nodes { certname ~ 'green' }
5353
5454***
5555
56- ### Querying for active nodes
56+ ### Querying for inactive nodes
5757
5858``` ruby
59- nodes {deactivated is null and expired is null }
59+ nodes { node_state = " inactive " }
6060```
6161
6262* Output:*
@@ -68,7 +68,7 @@ nodes {deactivated is null and expired is null}
6868 "catalog_environment" : " production" ,
6969 "catalog_timestamp" : " 2016-08-15T11:06:26.275Z" ,
7070 "certname" : " foo.com" ,
71- "deactivated" : null ,
71+ "deactivated" : " 2016-08-17T13:04:41.421Z " ,
7272 "expired" : null ,
7373 "facts_environment" : " production" ,
7474 "facts_timestamp" : " 2016-08-15T11:06:26.140Z" ,
@@ -321,8 +321,7 @@ inventory[certname] { facts.mcollective.server.collectives.match("\d+") = "dc1"
321321Show active nodes that have the profile class ` Profile::Remote_mgmt ` applied to it.
322322
323323``` ruby
324- nodes { resources { type = " Class" and title = " Profile::Remote_mgmt" }
325- and expired is null and deactivated is null}
324+ nodes { resources { type = " Class" and title = " Profile::Remote_mgmt" } }
326325```
327326
328327* Output:*
You can’t perform that action at this time.
0 commit comments