| 1 |
package Classes::Lexmark; |
| 2 |
our @ISA = qw(Classes::Device); |
| 3 |
use strict; |
| 4 |
|
| 5 |
sub init { |
| 6 |
my $self = shift; |
| 7 |
if ($self->mode =~ /device::hardware::health/) { |
| 8 |
$self->analyze_and_check_lxprinter_subsystem('Classes::Lexmark::Component::PrinterSubsystem'); |
| 9 |
if (! $self->check_errors()) { |
| 10 |
# ...kontrolle ist besser. |
| 11 |
$self->analyze_and_check_printer_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); |
| 12 |
} |
| 13 |
$self->reduce_messages_short('hardware working fine'); |
| 14 |
} elsif ($self->mode =~ /device::printer::consumables/) { |
| 15 |
$self->analyze_and_check_consumables_subsystem('Classes::Lexmark::Component::ConsumablesSubsystem'); |
| 16 |
$self->analyze_and_check_consumables_subsystem('Classes::PRINTERMIB::Component::PrinterSubsystem'); |
| 17 |
$self->reduce_messages_short('supplies status is fine'); |
| 18 |
} else { |
| 19 |
$self->no_such_mode(); |
| 20 |
} |
| 21 |
} |
| 22 |
|