IO::Socket::PortState::cPanel - Perl extension for checking if all the ports a cPanel server uses is open.
use IO::Socket::PortState::cPanel qw(check_inbound); my $hr = check_inbound($host,$timeout);
Simplify IO::Socket::PortState use with cPanel servers. (http://cpanel.net/)
Hashref of inbound ports suitable for use with IO::Socket::PortState::check_ports()
Hashref of outbound ports suitable for use with IO::Socket::PortState::check_ports()
This would only make sense if you were running this check on the server that you were checking outbound ports on and use a host that does have those ports open :)
Its IO::Socket::PortState::check_ports()
Shortcut to check_ports() but uses the $inbound for the hashref.
These are identicle:
my $hr = check_inbound($host, $timeout, [\&handler]); my $hr = check_ports($host, $timeout, $inbound, [\&handler]);
Shortcut to check_ports() but uses the $outbound for the hashref.
my $hr = check_outbound($host, $timeout, [\&handler]); my $hr = check_ports($host, $timeout, $outbound, [\&handler]);
None by default. check_inbound check_outbound check_ports $inbound $outbound are all exportable.
Directly from cPanel Inc Developers
This module should be used as a paradigm for creating similar modules so that their use will be consistent. Please use the source of this module as your template (changeing the hash contents, package, and POD to reflect your catagory) If you do please mention that your module is based on this one in the POD, in the "ABOUT THIS MODULE" section like so:
"This module is based on Daniel Muey's L<IO::Socket::PortState::cPanel> module."
The 5 exportable items in this module should be included in your module and any other hashref's you included should have a corresponding check_* function.
IO::Socket::PortState
Daniel Muey, http://drmuey.com/cpan_contact.pl
Copyright 2005 by Daniel Muey
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install IO::Socket::PortState::cPanel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IO::Socket::PortState::cPanel
CPAN shell
perl -MCPAN -e shell install IO::Socket::PortState::cPanel
For more information on module installation, please visit the detailed CPAN module installation guide.