From 9f168aee7302412f91aaa297000645b4f02162fe Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 10:28:16 -0400 Subject: [PATCH 1/7] docs- batch file systax --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index b1330198..927ce5ae 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -61,7 +61,9 @@ to a blank value will allow masking a group defined attribute with an empty valu or environment variables. * `-s`, `--set`: - Set attributes using a batch file + Set attributes using a batch file rather than the command line. The attributes in the batch file + can be one line of key=value pairs or each attribute can be in its own line. Lines that start with + # sign will be read as commend. See EXAMPLES for batch file syntax. * `-m MAXNODES`, `--maxnodes=MAXNODES`: Prompt if trying to set attributes on more than @@ -120,6 +122,25 @@ to a blank value will allow masking a group defined attribute with an empty valu `d1: net.pxe.switch: pxeswitch1` `d1: net.switch:` +* Setting Attributes using a batch file with syntax similar to command line: + `# cat nodeattributes.batch` + `# power` + `power.psu1.outlet=3 power.psu1.pdu=pdu2` + `# nodeattrib n41 -s nodeattributes.batch` + `n41: 3` + `n41: pdu2` + +* Setting Attributes using a batch file with syntax where each attribute is in its own line: + `# cat nodeattributes.batch` + `# management` + `custom.mgt.switch=switch_main` + `custom.mgt.switch.port=swp4` + `# nodeattrib n41 -s nodeattributes.batch` + `n41: switch_main` + `n41: swp4` + + + ## SEE ALSO nodegroupattrib(8), nodeattribexpressions(5) From d299db3442f3341f348c4e560397c7a493f9eaf7 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 10:31:24 -0400 Subject: [PATCH 2/7] doc --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index 927ce5ae..28e37a5c 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -122,7 +122,7 @@ to a blank value will allow masking a group defined attribute with an empty valu `d1: net.pxe.switch: pxeswitch1` `d1: net.switch:` -* Setting Attributes using a batch file with syntax similar to command line: +* Setting attributes using a batch file with syntax similar to command line: `# cat nodeattributes.batch` `# power` `power.psu1.outlet=3 power.psu1.pdu=pdu2` @@ -130,7 +130,7 @@ to a blank value will allow masking a group defined attribute with an empty valu `n41: 3` `n41: pdu2` -* Setting Attributes using a batch file with syntax where each attribute is in its own line: +* Setting attributes using a batch file with syntax where each attribute is in its own line: `# cat nodeattributes.batch` `# management` `custom.mgt.switch=switch_main` From c8094276d0f9dc5129c740b32285adf66746cd11 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 10:34:07 -0400 Subject: [PATCH 3/7] typ0_fix --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index 28e37a5c..cacfc80f 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -62,8 +62,9 @@ to a blank value will allow masking a group defined attribute with an empty valu * `-s`, `--set`: Set attributes using a batch file rather than the command line. The attributes in the batch file - can be one line of key=value pairs or each attribute can be in its own line. Lines that start with - # sign will be read as commend. See EXAMPLES for batch file syntax. + can be specified as one line of key=value pairs line command line or each attribute can be in + its own line. Lines that start with # sign will be read as a comment. See EXAMPLES for batch + file syntax. * `-m MAXNODES`, `--maxnodes=MAXNODES`: Prompt if trying to set attributes on more than From ba90609f3b4893f258ac8f66b83edcd166dccaba Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 10:36:58 -0400 Subject: [PATCH 4/7] documentation for nodeattrib -s --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index cacfc80f..3d66a65f 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -62,8 +62,8 @@ to a blank value will allow masking a group defined attribute with an empty valu * `-s`, `--set`: Set attributes using a batch file rather than the command line. The attributes in the batch file - can be specified as one line of key=value pairs line command line or each attribute can be in - its own line. Lines that start with # sign will be read as a comment. See EXAMPLES for batch + can be specified as one line of key=value pairs simmilar to command line or each attribute can + be in its own line. Lines that start with # sign will be read as a comment. See EXAMPLES for batch file syntax. * `-m MAXNODES`, `--maxnodes=MAXNODES`: From eca1854d563e718c0bc4030d7b0076c22d12bcf1 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 10:37:41 -0400 Subject: [PATCH 5/7] fix to env doc --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index 3d66a65f..c71e59e7 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -54,7 +54,7 @@ to a blank value will allow masking a group defined attribute with an empty valu * `-e`, `--environment`: Set specified attributes based on exported environment variable of matching name. Environment variable names may be lower case or all upper case. - Replace . with _ as needed (e.g. info.note may be specified as either $info_note or $INFO_NOTE + Replace . with _ as needed (e.g. info.note may be specified as either $info_note or $INFO_NOTE) * `-p`, `--prompt`: Request interactive prompting to provide values rather than the command line From 67f607a8f16bb534ecc1a001611b112cb55c7cf7 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 16:26:20 -0400 Subject: [PATCH 6/7] fix to synopsis --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index c71e59e7..c0316a7d 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -8,7 +8,7 @@ nodeattrib(8) -- List or change confluent nodes attributes `nodeattrib -c ...` `nodeattrib -e ...` `nodeattrib -p ...` -`nodeattrib -s ` +`nodeattrib -s ...` ## DESCRIPTION From 2e84c73baaa05cfd3840d3f18afc78926bb55bfd Mon Sep 17 00:00:00 2001 From: tkucherera Date: Wed, 4 Oct 2023 16:27:05 -0400 Subject: [PATCH 7/7] '' --- confluent_client/doc/man/nodeattrib.ronn.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/doc/man/nodeattrib.ronn.tmpl b/confluent_client/doc/man/nodeattrib.ronn.tmpl index c0316a7d..c8127ad8 100644 --- a/confluent_client/doc/man/nodeattrib.ronn.tmpl +++ b/confluent_client/doc/man/nodeattrib.ronn.tmpl @@ -7,7 +7,7 @@ nodeattrib(8) -- List or change confluent nodes attributes `nodeattrib [ ...]` `nodeattrib -c ...` `nodeattrib -e ...` -`nodeattrib -p ...` +`nodeattrib -p ...` `nodeattrib -s ...` ## DESCRIPTION