NAME
Siebel::Srvrmgr::ListParser::Output::Tabular::ListServers - subclass to parse list servers command
SYNOPSIS
See Siebel::Srvrmgr::ListParser::Output::Tabular for examples.
DESCRIPTION
This subclass of Siebel::Srvrmgr::ListParser::Output::Tabular parses the output of the command list servers
.
This class expectes the following order and configuration of fields from list servers
command:
srvrmgr> configure list servers
SBLSRVR_NAME (31): Siebel Server name
SBLSRVR_GROUP_NAME (46): Siebel server Group name
HOST_NAME (31): Host name of server machine
INSTALL_DIR (256): Server install directory name
SBLMGR_PID (16): O/S process/thread ID of Siebel Server Manager
SV_DISP_STATE (61): Server state (started, stopped, etc.)
SBLSRVR_STATE (31): Server state internal (started, stopped, etc.)
START_TIME (21): Time the server was started
END_TIME (21): Time the server was stopped
SBLSRVR_STATUS (101): Server status
Anything different from that will generate exceptions when parsing
ATTRIBUTES
All from parent class.
METHODS
All methods from superclass plus some additional ones described below.
get_data_parsed
The hash reference returned by get_data_parsed
will look like that:
siebfoobar' => HASH
'END_TIME' => ''
'HOST_NAME' => 'siebfoobar'
'INSTALL_DIR' => '/app/siebel/siebsrvr'
'SBLMGR_PID' => 20452
'SBLSRVR_GROUP_NAME' => ''
'SBLSRVR_STATE' => 'Running'
'SBLSRVR_STATUS' => '8.1.1.7 [21238] LANG_INDEPENDENT'
'START_TIME' => '2013-04-22 15:32:25'
'SV_DISP_STATE' => 'Running'
where the keys are the Siebel servers names, each one holding a reference to another hash with the keys shown above.
get_servers
Returns a iterator in a form of a sub reference.
Which dereference of anonymous sub reference will return a Siebel::Srvrmgr::ListParser::Output::ListServers::Server object until the list of servers is exausted. In this case the sub reference will return undef
.
SEE ALSO
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
COPYRIGHT AND LICENSE
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/.