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 the SNMP::Info::Layer3 manpage and its inherited classes.
These are methods that return scalar value from SNMP
vendor()
Returns 'netscreen'
os()
Returns 'screenos'
os_ver()
Extracts the OS version from the description string.
serial()
Returns serial number..
layers()
Returns 01001100. Device doesn't report layers properly, modified to reflect Layer3 functionality.
See GLOBALS in the SNMP::Info::Layer3 manpage for details.
These are methods that return tables of information in the form of a reference to a hash.
See TABLE METHODS in the SNMP::Info::Layer3 manpage for details.