From 0d90767a4683d6b8202e61bbc572b611cb4ef396 Mon Sep 17 00:00:00 2001 From: mellor Date: Tue, 29 Jul 2014 12:35:38 -0400 Subject: [PATCH] defect 4229 update xCAT-client spec and add man for rescanplugins in xCAT 2.9 only --- xCAT-client/pods/man8/rescanplugins.8.pod | 56 +++++++++++++++++++++++ xCAT-client/xCAT-client.spec | 1 + 2 files changed, 57 insertions(+) create mode 100644 xCAT-client/pods/man8/rescanplugins.8.pod diff --git a/xCAT-client/pods/man8/rescanplugins.8.pod b/xCAT-client/pods/man8/rescanplugins.8.pod new file mode 100644 index 000000000..2e29732a7 --- /dev/null +++ b/xCAT-client/pods/man8/rescanplugins.8.pod @@ -0,0 +1,56 @@ +=head1 NAME + +B - Notifies xcatd to rescan the plugin directory + +=head1 SYNOPSIS + +B + +B {B<-h>|B<--help>} + +B {B<-v>|B<--version>} + +B [B<-s>|B<--servicenodes>] + + +=head1 DESCRIPTION + +B notifies the xcatd daemon to rescan the plugin directory and update its internal command handlers hash. This command should be used when plugins have been added or removed from the xCAT plugin directory (/opt/xcat/lib/perl/xCAT_plugin) or if the contents of the handled_commands subroutine in an existing plugin has changed. + +If rescanplugins is called as a subrequest from another command, the xcatd command handlers hash changes will not be available to that command's process. Only subsequent command calls will see the updates. + +=head1 OPTIONS + +=over 6 + +=item B<-h|--help> + +Displays the usage message. + +=item B<-v|--version> + +Displays the release version of the code. + +=item B<-s|--servicenodes> + +Process the rescanplugins on the management node and on all service nodes. The rescanplugins command will be sent to the xcatd daemon on all nodes defined in the servicenode table. The default is to only run on the management node. + +=back + +=head1 EXAMPLES + +=over 2 + +=item * + +To rescan the plugins only on the xCAT Management Node: + +B + +=item * + +To rescan the plugins on the xCAT Management Node and on all service nodes: + +B + +=back diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index de9e92341..d507ea06b 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -238,6 +238,7 @@ ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodechprofile ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderegenips ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderefresh ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodechmac +ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/rescanplugins %clean