2008-01-15 14:50:27 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
2008-01-15 14:50:27 +00:00
B<regnotif> - Registers a Perl module or a command that will get called when changes occur in the desired xCAT database tables.
2008-08-02 16:18:07 +00:00
2008-01-15 14:50:27 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2008-01-15 14:50:27 +00:00
I<regnotif [-h| --help]>
I<regnotif [-v| --version]>
I<regnotif I<filename tablename>[,tablename]... [-o|--operation actions]>
=head1 DESCRIPTION
This command is used to register a Perl module or a command to the xCAT notification table. Once registered, the module or the command will get called when changes occur in the xCAT database tables indicated by tablename. The changes can be row addition, deletion and update which are specified by actions.
=head1 Parameters
2008-08-02 16:18:07 +00:00
I<filename> is the full path name of the Perl module or command to be registered.
I<tablename> is the name of the table that the user is interested in.
2008-01-15 14:50:27 +00:00
=head1 OPTIONS
B<-h | -help> Display usage message.
2008-08-02 16:18:07 +00:00
B<-v | -version > Command Version.
2008-01-15 14:50:27 +00:00
2008-08-02 16:18:07 +00:00
B<-V | -verbose> Verbose output.
2008-01-15 14:50:27 +00:00
2008-08-02 16:18:07 +00:00
B<-o | -operation> specifies the database table actions that the user is interested in. It is a comma separated list. 'a' for row addition, 'd' for row deletion and 'u' for row update.
2008-01-15 14:50:27 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
1. To register a Perl module that gets invoked when rows get added or deleted. in the nodelist and the nodehm tables, enter:
regnotif /opt/xcat/lib/perl/xCAT_monitoring/mycode.pm nodelist,nodhm -o a,d
2008-08-02 16:18:07 +00:00
2008-01-15 14:50:27 +00:00
2. To register a command that gets invoked when rows get updated in the switch table, enter:
regnotif /usr/bin/mycmd switch -o u
=head1 FILES
2008-08-02 16:18:07 +00:00
/opt/xcat/bin/regnotif
2008-01-15 14:50:27 +00:00
2008-08-02 16:18:07 +00:00
=head1 SEE ALSO
2008-01-15 14:50:27 +00:00
2008-08-02 16:18:07 +00:00
L<unregnotif(1)|unregnotif.1>
2008-01-15 14:50:27 +00:00