7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am working with embedded system -Dell DCS management sub system. my question is as below:
currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies
2. Infrastructure Monitoring
Dear Champs,
I am new to unix, and need to configure linux server to send below traps to a SNMP server.
Monitoring TRAP Disk Space Low
Monitoring TRAP Memory Low
Monitoring TRAP CPU high
Monitoring TRAP Admin login/Logoff
Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies
3. IP Networking
I am having a problem with an SNMP event, and I am not sure where I should be looking to solve this problem.
Description:
There is an SNMP event in our system that for one reason or another is not getting sent out as an email because it is never getting to our SNMP agent.
I see where the... (0 Replies)
Discussion started by: broberts
0 Replies
4. Red Hat
Hi ,
Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies
5. IP Networking
Hi ,
Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies
6. Infrastructure Monitoring
Hey everyone!
First, thank you in advance for any help you can provide. I'm a fairly experienced linux user, and just getting my feet wet in solaris for a project here at the office. I am trying to use snmpget on a linux box to get information from a Solaris 10 system. The solaris 10 system has... (5 Replies)
Discussion started by: msarro
5 Replies
7. Infrastructure Monitoring
hello,
I am looking for Overall CPU usage info in net-snmp 5.1.2 on solaris
5.8. I didn't see hrProcessorLoad info from host-resource-mib. Is
there any other MIB I could look into?
Thanks (0 Replies)
Discussion started by: lamou23
0 Replies
Info::Layer2(3pm) User Contributed Perl Documentation Info::Layer2(3pm)
NAME
SNMP::Info::Layer2 - SNMP Interface to network devices serving Layer2 only.
AUTHOR
Max Baker
SYNOPSIS
# Let SNMP::Info determine the correct subclass for you.
my $l2 = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.
";
my $class = $l2->class();
print "SNMP::Info determined this device to fall under subclass : $class
";
# Let's get some basic Port information
my $interfaces = $l2->interfaces();
my $i_up = $l2->i_up();
my $i_speed = $l2->i_speed();
foreach my $iid (keys %$interfaces) {
my $port = $interfaces->{$iid};
my $up = $i_up->{$iid};
my $speed = $i_speed->{$iid}
print "Port $port is $up. Port runs at $speed.
";
}
DESCRIPTION
This class is usually used as a superclass for more specific device classes listed under SNMP::Info::Layer2::* Please read all docs under
SNMP::Info first.
Provides abstraction to the configuration information obtainable from a Layer2 device through SNMP. Information is stored in a number of
MIBs.
For speed or debugging purposes you can call the subclass directly, but not after determining a more specific class using the method above.
my $l2 = new SNMP::Info::Layer2(...);
Inherited Classes
SNMP::Info
SNMP::Info::Bridge
SNMP::Info::Entity
Required MIBs
Inherited Classes
MIBs required by the inherited classes listed above.
MIBs can be found in netdisco-mibs package.
GLOBALS
These are methods that return scalar value from SNMP
Overrides
$l2->model()
Cross references $l2->id() with product IDs in the Cisco MIBs.
For HP devices, removes 'hpswitch' from the name
For Cisco devices, removes c<'sysid'> from the name
$l2->vendor()
Tries to discover the vendor from $l2->model() and $l2->description()
$l2->serial()
Returns serial number if available through SNMP
Globals imported from SNMP::Info
See documentation in "GLOBALS" in SNMP::Info for details.
Globals imported from SNMP::Info::Bridge
See documentation in "GLOBALS" in SNMP::Info::Bridge for details.
Globals imported from SNMP::Info::Entity
See documentation in "GLOBALS" in SNMP::Info::Entity for details.
TABLE METHODS
These are methods that return tables of information in the form of a reference to a hash.
Overrides
$l2->interfaces()
Creates a map between the interface identifier (iid) and the physical port name.
Defaults to "ifDescr" but checks and overrides with "ifName"
$l2->i_ignore()
Returns reference to hash. Increments value of IID if port is to be ignored.
Ignores ports with "ifType" of loopback, propvirtual, other, and cpu
Table Methods imported from SNMP::Info
See documentation in "TABLE METHODS" in SNMP::Info for details.
Table Methods imported from SNMP::Info::Bridge
See documentation in "TABLE METHODS" in SNMP::Info::Bridge for details.
Table Methods imported from SNMP::Info::Entity
See documentation in "TABLE METHODS" in SNMP::Info::Entity for details.
perl v5.12.4 2011-09-28 Info::Layer2(3pm)