Device-ISDN-OCLM
view release on metacpan or search on metacpan
bin/oclm.PL view on Meta::CPAN
=over 4
=item -lanmodem <hostname[:port]>
Specify the hostname (and optionally port) of your LanModem. By default,
the value of the B<OCLM_LANMODEM> environment variable is used; or, if that
is not set, then the value I<3com.oc.lanmodem>.
=item -password <password>
Specify the password needed to access your locked LanModem. By default,
the value of the B<OCLM_PASSWORD> environment variable is used. This is
not needed if either your LanModem is not password protected, or if
manual calling is accessible and you only use the B<connect>, B<disconnect>,
B<status> and B<manual> commands.
=back
The commands are:
=over 4
lib/Device/ISDN/OCLM.pm view on Meta::CPAN
This module can be used to control the 3com OfficeConnect LanModem, an
ISDN TA/router. Device statistics can be queried and manual connections
can be brought up and taken down. Support is provided for setting the
clock if the device is power-cycled, and for automatically entering the
password if the device is password-protected.
All operations that access the device return a status code indicating
whether the operation was successful or not; and, if not, why. For
example, if you attempt to query device statistics and the device is
locked then the status code will indicate this fact, allowing you to enter
the password and retry the operation. Hence the loop in the above
synopsis.
This module does not perform these loops internally in an effort to allow
it to be embedded within a controlling application such as the B<oclm>
Perl command-line application, and a GNOME/GTK graphical user interface
that is available separately.
This module has a few warts; some are mandated by the device itself and
some are the fault of the author.
lib/Device/ISDN/OCLM.pm view on Meta::CPAN
The command succeeded.
=item 'CLOCK'
The device clock is unset (probably because of a power cycle). You should
call B<setClock()> to set the clock and then repeat your original command.
=item 'PASSWORD'
The device is password locked. You should call B<enterPassword()> to enter
the password and then repeat your original command.
=item 'BAD HTML'
The device returned and unexpected HTML page. This is either because of
a bug in this module or because your firmware is different from mine.
Probably best to contact me and we can work out the problem.
=item 'BAD HTTP'
( run in 1.021 second using v1.01-cache-2.11-cpan-49f99fa48dc )