Siebel::Srvrmgr::Manual - general instructions how to use this distribution
After some feedback from users of this distribution, I decided that only the Pod available is not enough, end users require some introductory guidance to know what to look for.
Assuming that the reader already knows what this distribution is about, for any interaction that you need to have with Siebel Server Manager (srvrmgr), you will need to use this general receipt:
Decide if you need to connect or not to the Siebel Enterprise.
If you want to connect, it is a matter of choice to use Siebel::Srvrmgr::Daemon::Heavy or Siebel::Srvrmgr::Daemon::Light. The later should be your initial choice if you're not really sure what to use.
If you already have a sample output file saved with spool command from srvrmgr, you might want to use Siebel::Srvrmgr::Daemon::Offline.
spool
Decide what data you need from srvrmgr.
For that, you must have clear definition of your objectives: do you want to check Siebel components state? Check how long tasks are taking to finish?
This will define the next step.
Knowing the desired data, you now have to decide what to do with it.
For each command you execute on srvrmgr (Siebel::Srvrmgr::Daemon::Command), you must define which action (Siebel::Srvrmgr::Daemon::Action) to execute with it's output.
There are plently of subclasses from Siebel::Srvrmgr::Daemon::Action already available, or you may want to write your own. In most cases you might start with Siebel::Srvrmgr::Daemon::ActionStash and later define if you can restrict your activities inside your own subclass.
Create an instance of a subclass of Siebel::Srvrmgr::Daemon (with your definitions from the steps above) and execute it (invoke the run method). For classes that require a connection, you will need to pass a instance of Siebel::Srvrmgr::Connection to the run method.
run
That's it. There are examples of implementations on the distribution unit tests if you want to check. There is also an integration test in the "xt" (extended) tests directory that you could use with your environment. Be sure to check those tests and read Test::Fixtures module under this directory.
There is also other distributions based on Siebel::Srvrmgr that you may want to check before start writing your own:
Siebel::Params::Checker
Siebel::Srvrmgr::Exporter
Siebel::Lbconfig
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
This file is part of Siebel Monitoring Tools.
Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.
To install Siebel::Srvrmgr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Siebel::Srvrmgr
CPAN shell
perl -MCPAN -e shell install Siebel::Srvrmgr
For more information on module installation, please visit the detailed CPAN module installation guide.