I also want to install new handler for existing OIDs. E.g. for
.1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex).
I see that config is parsed OK:
trace: read_config(): read_config.c, 738:
read_config: /etc/snmp/snmpd.conf:462 examining: pass
I also want to install new handler for existing OIDs. E.g. for
.1.3.6.1.2.1.2.2.1.1 (interfaces.ifTable.ifEntry.ifIndex).
read_config: /etc/snmp/snmpd.conf:462 examining:
pass .1.3.6.1.2.1.2.2.1.1/usr/local/bstat/bstat
But when I walk there I get default output. That is list of
What does
snmpwalk nsModuleName | grep 1.3.6.1.2.1.2.2
show?
# snmpwalk -v 1 -c secret localhost nsModuleName | fgrep 1.3.6.1.2.1.2.2
nsModuleName..10.1.3.6.1.2.1.2.2.1.1.127 = STRING: mibII/interfaces
nsModuleName..10.1.3.6.1.2.1.2.2.1.2.127 = STRING: mibII/interfaces
No. Now it pass and my script returns the output!!! Now I can
configure
something or I'll have to run snmpd with this option?
a) You can run configure --with-out-mib-modules=mibII/interfaces
and recompile. But before doing that:
No. I'd rather run snmpd with -I-interfaces
How then to substitute my script for
system.sysUpTime (.1.3.6.1.2.1.1.3)?
Otherwise you may need to exclude mibII/system_mib as well.
-I-mibII/system_mib ?
No.
configure --with-out-mib-modules=mibII/system_mib
or
snmpd -I-system_mib
Thanks. It works
On 07/11/06, Mindaugas [EMAIL PROTECTED] wrote:
Nothing changes if I change .20 to .2.
[snip]
As you see snmpd finds pass directive. Now packet arrives:
[snip]
What is the exact command you are using to send this request?
What are the access control settings in the snmpd.conf file?
Nothing changes if I change .20 to .2.
[snip]
As you see snmpd finds pass directive. Now packet arrives:
[snip]
What is the exact command you are using to send this request?
snmpwalk ServerIP secret .2.3.6.1.2.1.31.1.1.1.18
What are the access control settings in the
On 07/11/06, Mindaugas [EMAIL PROTECTED] wrote:
What is the result of walking the vacmAccessTable and
vacmViewTreeFamilyTable?
Below.
vacmViewTreeFamilyMask.anonymousView000.1.1 = ΓΏ
Aha! That's significant.
With the relatively early releases that you're using, the rocommunity
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
On
[ First - *please* don't mail me privately, without copying
any responses to the mailing list. I don't have the time
or inclination to offer private, unpaid, SNMP consultancy.
Keep discussions to the list, where others can both learn
and offer advice. Thanks. ]
I
Hello,
I have such setup working on ucd-snmp-4.2.5 on Red Hat 7.3 Linux.
But now I'm trying to setup similar configuration with net-snmp-5.1.2
on CentOS4 (RHEL4) Linux and it does not work.
# uname -a
Linux server 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64
x86_64
On 06/11/06, Mindaugas [EMAIL PROTECTED] wrote:
But now I'm trying to setup similar configuration with net-snmp-5.1.2
on CentOS4 (RHEL4) Linux and it does not work.
That's a fairly old release now (and the 5.1.x line is no longer being
supported)
If you're installing a new configuration, it
But now I'm trying to setup similar configuration with net-snmp-5.1.2
on CentOS4 (RHEL4) Linux and it does not work.
That's a fairly old release now (and the 5.1.x line is no longer being
supported)
If you're installing a new configuration, it would be sensible to work
with 5.3.x
(or
On 06/11/06, Mindaugas [EMAIL PROTECTED] wrote:
pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat
snmpwalk server IP secret .20.3.6.1.4.1.9.2.2.1.1.20
D'oh!
I've only just spotted.
That's not a valid OID.
OIDs can *only* start with .0 .1 or .2
An OID starting with .20 is bogus.
pass .20.3.6.1.4.1.9.2.2.1.1.20 /usr/local/bstat/bstat
snmpwalk server IP secret .20.3.6.1.4.1.9.2.2.1.1.20
D'oh!
I've only just spotted.
That's not a valid OID.
OIDs can *only* start with .0 .1 or .2
An OID starting with .20 is bogus.
Nothing changes if I change .20 to .2.
15 matches
Mail list logo