Target - Gets information regarding a target type
use DBI; use Target;
my $dbh = DBI->connect(...); my $target = new Target( dbHandle=>$dbh, targetType=>'Cisco-7200-Router' );
my @targets = $target->identifyTargets
print $target->id
print $target->interface
print $target->targetType
print $target->filename
print $target->ds
print $target->MIB
print $target->plugin
Target is a class made to connect the various target types and the plugins that are responsible for installing these target types
new() - create a new target type object dbHandle - database handle id - unique identification number of the target
identifyTargets() - returns an array of all the ID from the targets table
id() - returns the ID of the target
interface() - returns the interface of the target
targetType() - returns the name of target type
filename() - returns the filename corresponding to the target
ds() - returns the DS numbers of the target type
MIB() - returns the MIB objects of the target type plugin() - returns the name of the plugin that installed this target type
TargetType is supported as part of the core Pawikan distribution. Please send bug report to <netapps@pregi.net> or use the bugzilla.
Edwin Viñas <edwinv@asti.dost.gov.ph>
Jerremeo Raynier Gabás <ren@asti.dost.gov.ph>
René Mendoza <renem@asti.dost.gov.ph>
Rey Vincent Babilonia <rvincent@asti.dost.gov.ph>
Paul Afroilan <paula@asti.dost.gov.ph>
Copyright (c) 2004 Philippine Research, Education and Government Information Network. All rights reserved. This program is part of the Pawikan distribution; you can redistribute it and/or modify it under the same terms as Pawikan itself.