corosync-objctl.8 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .\"/*
  2. .\" * Copyright (c) 2008 Allied Telesis Labs NZ.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Angus Salkeld (angus.salkeld@alliedtelesis.co.nz)
  7. .\" *
  8. .\" * This software licensed under BSD license, the text of which follows:
  9. .\" *
  10. .\" * Redistribution and use in source and binary forms, with or without
  11. .\" * modification, are permitted provided that the following conditions are met:
  12. .\" *
  13. .\" * - Redistributions of source code must retain the above copyright notice,
  14. .\" * this list of conditions and the following disclaimer.
  15. .\" * - Redistributions in binary form must reproduce the above copyright notice,
  16. .\" * this list of conditions and the following disclaimer in the documentation
  17. .\" * and/or other materials provided with the distribution.
  18. .\" * - Neither the name of the MontaVista Software, Inc. nor the names of its
  19. .\" * contributors may be used to endorse or promote products derived from this
  20. .\" * software without specific prior written permission.
  21. .\" *
  22. .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. .\" * THE POSSIBILITY OF SUCH DAMAGE.
  33. .\" */
  34. .TH COROSYNC-OBJCTL 8 2008-07-29
  35. .SH NAME
  36. corosync-objctl \- Configure objects in the Object Database
  37. .SH SYNOPSIS
  38. .B "corosync-objctl [\-b] [\-c|\-w|\-d|\-a|\-t\-h] <OBJECT-SPEC>..."
  39. .SH DESCRIPTION
  40. .B corosync-objctl
  41. is used to configure objects within the object database at runtime.
  42. .SH OBJECT-SPEC
  43. .TP
  44. There are two types of entities
  45. .B Objects
  46. and
  47. .B Key=Value pairs
  48. .TP
  49. .B Objects
  50. Objects are container like entities that can hold other entities.
  51. They are specified as "objectA"."objectB".
  52. An example is logging.logger.
  53. .TP
  54. .B Key=Value pairs
  55. These are the entities that actually hold values (read database "fields").
  56. They are specified as object.key=value or just object.key if you are reading.
  57. .SH OPTIONS
  58. .TP
  59. .B -c
  60. Create a new object.
  61. .TP
  62. .B -d
  63. Delete an existing object.
  64. .TP
  65. .B -w
  66. Use this option when you want to write a new value to a key.
  67. .TP
  68. .B -a
  69. Display all values currently available.
  70. .TP
  71. .B -t
  72. Track changes to an object and it's children. As changes are made to the object
  73. they are printed out. this is kind of like a "tail -f" for the object database.
  74. .TP
  75. .B -h
  76. Print basic usage.
  77. .TP
  78. .B -b
  79. Display binary values in BASH backslash escape sequences format.
  80. .SH EXAMPLES
  81. .TP
  82. Print the objOne object (shouldn't exist yet).
  83. $ corosync-objctl objOne
  84. .TP
  85. Create the objOne object.
  86. $ corosync-objctl -c objOne
  87. .TP
  88. Print the objOne object (empty).
  89. $ corosync-objctl objOne
  90. .br
  91. objOne
  92. .TP
  93. Write two new keys to the objOne object.
  94. $ corosync-objctl -w objOne.max=3000 objOne.min=100
  95. .TP
  96. Print the objOne object (with the two new keys).
  97. $ corosync-objctl objOne
  98. .br
  99. objOne.min=100
  100. .br
  101. objOne.max=3000
  102. .TP
  103. Delete the objOne.min key
  104. $ corosync-objctl -d objOne.min=100
  105. .TP
  106. Prove that is gone.
  107. $ corosync-objctl objOne
  108. .br
  109. objOne.max=3000
  110. .TP
  111. Delete the whole objOne object.
  112. $ corosync-objctl -d objOne
  113. .TP
  114. Prove that is gone.
  115. $ corosync-objctl objOne
  116. .SH SEE ALSO
  117. .BR confdb_keys (8),
  118. .BR confdb_initialize (3)
  119. .SH AUTHOR
  120. Angus Salkeld
  121. .PP