Add informations about --replace-touch parameter in README file and help message

This commit is contained in:
Benjamin Renard 2013-12-19 18:42:57 +01:00
parent e9b1f0f26f
commit 78538bc48b
2 changed files with 10 additions and 1 deletions

5
README
View file

@ -20,6 +20,10 @@ value to an attribute of this object and remove it just after. The
touched attribute is specify by parameter --touch. Of course, couple of touched attribute is specify by parameter --touch. Of course, couple of
DN and password provided, must have write right on this attribute. DN and password provided, must have write right on this attribute.
If your prefer, you can use --replace-touch parameter to replace value
of touched attribute instead of adding the touched value. Use-ful in
case of single-value attribute.
To use this script as Nagios plugin, use -n argument To use this script as Nagios plugin, use -n argument
Requirement Requirement
@ -66,6 +70,7 @@ Usage
will be add to this attribute and remove after. The will be add to this attribute and remove after. The
user use to connect to the LDAP directory must have user use to connect to the LDAP directory must have
write permission on this attribute on each object. write permission on this attribute on each object.
--replace-touch In touch mode, replace value instead of adding.
Copyright Copyright

View file

@ -20,6 +20,10 @@
# touched attribute is specify by parameter --touch. Of course, couple of # touched attribute is specify by parameter --touch. Of course, couple of
# DN and password provided, must have write right on this attribute. # DN and password provided, must have write right on this attribute.
# #
# If your prefer, you can use --replace-touch parameter to replace value
# of touched attribute instead of adding the touched value. Use-ful in
# case of single-value attribute.
#
# This script could be use as Nagios plugin (-n argument) # This script could be use as Nagios plugin (-n argument)
# #
# Requirement : # Requirement :
@ -132,7 +136,7 @@ parser.add_option( "--touch",
parser.add_option( "--replace-touch", parser.add_option( "--replace-touch",
dest="replacetouch", dest="replacetouch",
action="store_true", action="store_true",
help="In touche mode, replace value instead of adding.", help="In touch mode, replace value instead of adding.",
default=False) default=False)
(options, args) = parser.parse_args() (options, args) = parser.parse_args()