From fc5f16fb01ec96f4e285c71a1ecb006bc2795804 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 28 Mar 2019 11:12:36 -0400 Subject: [PATCH] Add wildcard documentation to nodeattrib/nodelist --- confluent_client/doc/man/nodeattrib.ronn | 9 +++++++++ confluent_client/doc/man/nodelist.ronn | 3 +++ 2 files changed, 12 insertions(+) diff --git a/confluent_client/doc/man/nodeattrib.ronn b/confluent_client/doc/man/nodeattrib.ronn index 67606ced..ca7b81e4 100644 --- a/confluent_client/doc/man/nodeattrib.ronn +++ b/confluent_client/doc/man/nodeattrib.ronn @@ -23,6 +23,9 @@ For a full list of attributes, run `nodeattrib all` against a node. If `-c` is specified, this will set the nodeattribute to a null value. This is different from setting the value to an empty string. +Attributes may be specified by wildcard, for example `net.*switch` will report +all attributes that begin with `net.` and end with `switch`. + If the word all is specified, then all available attributes are given. Omitting any attribute name or the word 'all' will display only attributes that are currently set. @@ -88,6 +91,12 @@ See nodegroupattrib(8) command on how to manage attributes on a group level. `n1: console.method: ` `n2: console.method: ` +* List all switches that a node is described as connected to: + `# nodeattrib d1 net.*switch` + `d1: net.mgt.switch: mgtswitch1` + `d1: net.pxe.switch: pxeswitch1` + `d1: net.switch:` + ## SEE ALSO nodegroupattrib(8), nodeattribexpressions(5) diff --git a/confluent_client/doc/man/nodelist.ronn b/confluent_client/doc/man/nodelist.ronn index e78c3713..d2fc5ff5 100644 --- a/confluent_client/doc/man/nodelist.ronn +++ b/confluent_client/doc/man/nodelist.ronn @@ -17,6 +17,9 @@ displayed. If `-b` is specified, it will also display information on how inherited and expression based attributes are defined. There is more information on node attributes in nodeattributes(5) man page. +Attributes may be specified by wildcard, for example `net.*switch` will report +all attributes that begin with `net.` and end with `switch`. + ## OPTIONS * `-b`, `--blame`: