Siebel::Srvrmgr::ListParser::Output::ListServers::Server - class that represents a Siebel Server return by a "list servers" command
use Siebel::Srvrmgr::ListParser::Output::ListServers::Server; # retrieved the hash reference from a "list servers" command output my $server = Siebel::Srvrmgr::ListParser::Output::ListServers::Server->new( name => $ref->{SBLSRVR_NAME}, group => $ref->{SBLSRVR_GROUP_NAME}, host => $ref->{HOST_NAME}, install_dir => $ref->{INSTALL_DIR}, disp_state => $ref->{SV_DISP_STATE}, state => $ref->{SBLSRVR_STATE}, start_datetime => $ref->{START_TIME}, end_datetime => $ref->{END_TIME}, status => $ref->{SBLSRVR_STATUS}, pid => $ref->{SBLMGR_PID} ); ($server->is_running) ? print $server->name . 'is still running' : $server->name ' was running for a period of ' . $server->duration;
This class is mean to be created by a Siebel::Srvrmgr::ListParser::Output::Tabular::ListServers object.
It represents a Siebel Server as returned by the list servers command from srvrmgr program.
list servers
srvrmgr
All attributes of the Moose Role Siebel::Srvrmgr::ListParser::Output::Duration are available.
A string representing the Siebel Server name (actually a "NotNullStr" type defined at Siebel::Srvrmgr::Types).
This attribute is read-only and required.
A string representingn the Siebel server Group name
This attribute is read-only.
A string representing the host name of server machine.
A string representing the Server install directory name
An integer of O/S process/thread ID of Siebel Server Manager.
It will return undef if the Siebel Server is not running anymore.
undef
A string representing the server state (started, stopped, etc.)
A string representing the server state internal (started, stopped, etc.)
A string representing the server status
A integer in the whole Siebel Enterprise that univocally describes a Siebel Server.
All methods of the Moose Role Siebel::Srvrmgr::ListParser::Output::Duration are available.
Invokes automatically the Siebel::Srvrmgr::ListParser::Output::Duration fix_endtime method during object creation.
fix_endtime
Siebel::Srvrmgr::Types
Siebel::Srvrmgr::ListParser::Output::Duration
Siebel::Srvrmgr::ListParser::Output::Tabular::ListServers
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This software is copyright (c) 2015 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.