.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16. .TH PACEMAKER "8" "January 2021" "Pacemaker 2.0.5" "System Administration Utilities" .SH NAME Pacemaker \- Part of the Pacemaker cluster resource manager .SH SYNOPSIS .B crm_attribute \fI\,-n \/\fR[\fI\,options\/\fR] .SH DESCRIPTION crm_attribute \- query and update Pacemaker cluster options and node attributes .SH OPTIONS .TP \-?, \fB\-\-help\fR This text .TP \-$, \fB\-\-version\fR Version information .TP \fB\-V\fR, \fB\-\-verbose\fR Increase debug output .TP \fB\-q\fR, \fB\-\-quiet\fR Print only the value on stdout .TP \fB\-n\fR, \fB\-\-name\fR=\fI\,value\/\fR Name of the attribute/option to operate on .TP \fB\-P\fR, \fB\-\-pattern\fR=\fI\,value\/\fR Pattern matching names of attributes (only with \fB\-v\fR/\-D and \fB\-l\fR reboot) .SS "Commands:" .TP \fB\-G\fR, \fB\-\-query\fR Query the current value of the attribute/option .TP \fB\-v\fR, \fB\-\-update\fR=\fI\,value\/\fR Update the value of the attribute/option .TP \fB\-D\fR, \fB\-\-delete\fR Delete the attribute/option .SS "Additional Options:" .TP \fB\-N\fR, \fB\-\-node\fR=\fI\,value\/\fR Set a node attribute for named node (instead of a cluster option). See also: \fB\-l\fR .TP \fB\-t\fR, \fB\-\-type\fR=\fI\,value\/\fR Which part of the configuration to update/delete/query the option in Valid values: crm_config, rsc_defaults, op_defaults, tickets .TP \fB\-l\fR, \fB\-\-lifetime\fR=\fI\,value\/\fR Lifetime of the node attribute Valid values: reboot, forever .TP \fB\-z\fR, \fB\-\-utilization\fR Set an utilization attribute for the node. .TP \fB\-s\fR, \fB\-\-set\-name\fR=\fI\,value\/\fR (Advanced) The attribute set in which to place the value .TP \fB\-i\fR, \fB\-\-id\fR=\fI\,value\/\fR (Advanced) The ID used to identify the attribute .TP \fB\-d\fR, \fB\-\-default\fR=\fI\,value\/\fR (Advanced) Default value to display if none is found in configuration .SH EXAMPLES Add new node attribute called 'location' with the value of 'office' for host 'myhost': .IP # crm_attribute \-\-node myhost \-\-name location \-\-update office .PP Query the value of the 'location' node attribute for host 'myhost': .IP # crm_attribute \-\-node myhost \-\-name location \-\-query .PP Change the value of the 'location' node attribute for host 'myhost': .IP # crm_attribute \-\-node myhost \-\-name location \-\-update backoffice .PP Delete the 'location' node attribute for host 'myhost': .IP # crm_attribute \-\-node myhost \-\-name location \-\-delete .PP Query the value of the cluster\-delay cluster option: .IP # crm_attribute \-\-type crm_config \-\-name cluster\-delay \-\-query .PP Query value of the "cluster\-delay" cluster option and print only the value: .IP # crm_attribute \-\-type crm_config \-\-name cluster\-delay \-\-query \-\-quiet .SH AUTHOR Written by Andrew Beekhof .SH "REPORTING BUGS" Report bugs to users@clusterlabs.org