SNMP::Info::Layer3::Netscreen - SNMP Interface to Juniper Netscreen Devices
Kent Hamilton
#Let SNMP::Info determine the correct subclass for you. my $netscreen = new SNMP::Info( AutoSpecify => 1, Debug => 1, DestHost => 'myswitch', Community => 'public', Version => 2 ) or die "Can't connect to DestHost.\n"; my $class = $netscreen->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
Provides abstraction to the configuration information obtainable from a Netscreen device through SNMP. See inherited classes' documentation for inherited methods.
my $netscreen = new SNMP::Info::Layer3::Netscreen(...);
See "Required MIBs" in SNMP::Info::Layer3 and its inherited classes.
These are methods that return scalar value from SNMP
Returns 'netscreen'
Returns 'screenos'
'screenos'
Extracts the OS version from the description string.
Returns serial number..
Returns 01001100. Device doesn't report layers properly, modified to reflect Layer3 functionality.
See "GLOBALS" in SNMP::Info::Layer3 for details.
These are methods that return tables of information in the form of a reference to a hash.
See "TABLE METHODS" in SNMP::Info::Layer3 for details.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.