Ashok,
I have now managed to get SNMPv3 with SHA authentication working. The
problem seems to have been that when I built Net-SNMP I had built it with
the following options. Changing the link type option from static to
dynamic fixed the problem - I don't know why this would work but it did.
I can send SNMPv2 traps succesfully and am now trying to send SNMPv3 traps
using Authentication and No Privac y with SHA being used for
Authentication. My code looks like the following:
my $host = '127.0.0.1';
my $agent = new NetSNMP::agent();
my $session = new
Hi,
I am trying to configure my Net-SNMP sub-agent to be an SNMPv3 agent with
SHA Authentication and no privacy. I have been succesfully running it as
an SNMPv2 agent up until now. My configuration is that I have a Master
Agent communicating with a Perl Sub Agent using AgentX and running on
Bart,
Using MD5 instead of SHA also gives me an Authentication Error.
Regards,
Ali
Please consider the environment before printing this email
---
This email and any attached files contains company confidential information
which may be legally
Bart,
I have now been able to get MD5 to work. I've just realised that when I
run the agent that a file is created in my installation directory which
is c:/net-snmp as follows:
c:/net-snmp/snmp/persist/snmpd.conf
This file contains information about the usmUser and the EngineId.
By deleting
Ashok,
rwuser guest authNoPriv
createUser guest SHA password
Even adding authNoPriv as above seems to make no difference. It works if
set to MD5 rather than SHA. I'm wondering if my OpenSSL has been
built/installed correctly as Net-SNMP needs openssl for SHA but not for
MD5.
Has anyone any
I am running a Perl Net-SNMP Sub Agent which communicates with a Master
Agent using the Agent X protocol.
I can indicate Snmp error conditions from Get, GetNext, Set requests using
the call to setError e.g:
$request-setError($request_info, SNMP_ERR_NOSUCHNAME);
However, I can't see any
Bart,
Thanks for that. The sysUpTime seems to be OK now.
Do you know if the two patches that you have sent to me will be contained
in any forthcoming releases?
Regards,
Ali
Please consider the environment before printing this email
---
This
Dave,
Sorry - Just realised that I've responded to your private e-mail address
by mistake and not the net-snmp-users list
Regards,
Ali
Please consider the environment before printing this email
- Forwarded by Ali Bruce/UKMAIN/MM1 on 04/10/2011 14:55 -
From:
Ali Bruce/UKMAIN/MM1
Bart,
Thanks for the patch. It seems to have solved the problem in sending
SNMPv2 traps which do not have any additional var-binds.
Only problem left is the sysUpTime issue.
Regards,
Ali
Please consider the environment before printing this email
I have some further questions/observations on this subject.
The reason that I have not been able to send my own Enterprise specific
trap is that it does not have any additional var-binds associated with the
trap i.e I want to send the trap with an empty associated var-bind list.
e.g Bart in
Fulko,
I understand your point that a LinkUp trap needs the additional ifIndex
varbind. I didn't understand why the example I had been given by Bart also
contained a sysDescr var-bind. My point is that I wish to send an
enterprise specific trap that contains no additional var-binds. How do I
Fulko,
I also tried to send my trap (oid 1.3.6.1.4.1.2257.11.1.1.0.0.9) without
any additional var-binds as an SNMPv1 trap and it worked. The problem
seems to be sending it as an SNMPv2 trap, SNMPv1 is OK.
As for the sysUpTime, each time I run the command the timeticks value has
incremented
Bart,
I don't believe that is the problem. The actual amount that the timeticks
increases between sending commands is correct, it's as if it's just not
been initialised correctly. It doesn't seem to be a case of dividing the
value by ten. Also, even rebooting my PC doesn't seem to have reset
I am trying to send an SNMPv2 trap from my SubAgent which can communicate
with an SNMP Manager via the Agent X master agent. I am running version
5.7.1 pre2 on Windows and trying to send traps to the snmptrapd daemon.
My code for sending the trap is as follows:
my $host = '127.0.0.1';
I have now managed to send out an SNMPv1 trap correctly using the
following code:
my $host = '10.50.80.197';
my $comm = 'public';
my $session= new SNMP::TrapSession(DestHost = $host, Community =
$comm, Port = 162, Version = 1);
Bart,
I'm definitely getting closer now. I can now send a linkUp trap from my
software using SNMPv2. My code looks like this:
my $host = '10.50.80.197';
my $session= new SNMP::TrapSession(DestHost = $host, Community =
public, Port = 162, Version = '2c');
$session-trap(oid = linkUp,
Bart,
Thanks. The patch seems to have fixed this problem.
Ali
---
This email and any attached files contains company confidential information
which may be legally privileged. it is intended only for the person(s) or
entity to which it is addressed
Bart,
Thanks. I have now managed to get a Perl subagent built with 5.7.1 pre1
running on windows.
One issue I have is that I am doing an SNMP-Get request on a table row
that does not exist. How can I indicate No Such Instance? There are
error codes defined for the NetSNMP::Agent but I cannot
Dave,
Thanks for that.
Your suggestion results in the snmpget request correctly indicating No
such instance currently exists at this OID.
The perl script (which is effectively the CPAN perl script slightly
modified) did output unknown var value type: 0 as a result of the
$varbind-setValue(
Hi,
I am getting a strange error when running my perl script.
I am attempting to initialise a Perl CORBA: Orb in order to access the
data to be managed by SNMP (which I can do succesfully using a standalone
perl script)
Adding the Corba Orb initialisation request
my $orb =
Bart,
I'm trying to understand the release strategy of Net-SNMP. Once 5.7 has
been released, I understand there will be a 5.7.1 release that includes
patches. Looking at the diff file that you have sent these seem to be 5.6
patches to be merged into 5-7 patches. Was 5.7 created and released
Bart,
Thanks for that. That patch stops the script locking up and completes the
installation.
I'm still trying to work out whether I can use Perl on windows. As you
stated earlier embedded Perl has not been ported to Windows.
Reading the Net-snmp Perl support documentation it states:
For the
Hi,
I should have said that I am using version 5.5 of Net-SNMP on Windows with
ActivePerl 5.12.4 Build 1205.
Also my previous text should have said that I reply with NONE and not
DONE in response to a get request where the instance does not exist.
Can anyone explain to me why I do not receive
Bart,
As an alternative method of using perl I am trying to do this using the
pass_persist mechanism to invoke an external Perl script rather than
using embedded perl. However I am having difficulty with Creating a new
row using this method. This is captured in another thread I have started
Sorry Bart,
Replied to your private address.
Ali
- Forwarded by Ali Bruce/UKMAIN/MM1 on 09/08/2011 08:54 -
Ali Bruce/UKMAIN/MM1
09/08/2011 08:53
To
Bart Van Assche bvanass...@acm.org
cc
Subject
Re: Fw: Unable to build Net-Snmp with embedded perl
Bart,
Thanks for that patch.That
Bart,
My understanding is that embedding Perl in Net-SNMP are the Perk SNMP
Extension modules from the CPAN website. Ideally I would have liked to
have used these, I hadn't realised they had not been ported to Windows.
However - even without the embedding Perl in Net-SNMP modules I should
Bart,
What exactly is embedding Perl in Net-SNMP if it's not the Perl
Extension files from CPAN?
Regards,
Ali
---
This email and any attached files contains company confidential information
which may be legally privileged. it is intended only for
Bart,
Looks like my understanding was wrong.
Is it possible to use Perl to implement my agent on windows (using the
CPAN Perl modules), without porting embedding Perl in Net-SNMP ?
Regards,
Ali
---
This email and any attached files contains
Bart,
I downloaded and built with the latest 5.7.1 pre release.
During the Perl tests it no longer crashed the snmpd.exe, however it still
locks up at the same point:
cd ..
cd ..
C:\PROGRA~1\MICROS~1.0\VC\BIN\nmake.exe test -nologo
C:\Perl\bin\perl.EXE
Bart,
I have upgraded Active Perl to version 5.12.4 Build 1205. However this
still gave the same Ipv6 error as before. As I do not need IPv6 I have
decided not to persue the option of correcting the IPv6 problem any
further.
I have tried to compile as follows:
1. OpenSSL support:
Bart,
There is company firewalls so they are probably blocking the git
connections.
Even though the perl tests fail to execute during the build process, files
are still created in my install path. The snmpd can execute without any
embedded perl in the snmpd.conf file (although does still give
Bart,
Can you repost the link to
net-snmp.git.sourceforge.net/gitroot/net-snmp/V5-7-patches as it seems to
be broken.
Thanks,
Ali
---
This email and any attached files contains company confidential information
which may be legally privileged. it
Bart,
Thanks again.I've installed git and Tortoise git on my pc and attempted to
clone the repository. Howeve I always get this error:
git.exe clone --progress -v
git://net-snmp.git.sourceforge.net/gitroot/net-snmp/net-snmp
C:\cloned_net_snmp
Cloning into C:\cloned_net_snmp...
Hello,
I am new to using Net-Snmp. I am trying to build Net-Snmp version 5.7 with
embedded-perl support using the Visual Studio C++ build option. I am using
the version perl5 (revision 5 version 10 subversion 0) of Perl from
ActivePerl.
To compile Net-Snmp I am using the Win32\build.bat
- Forwarded by Ali Bruce/UKMAIN/MM1 on 01/08/2011 17:05 -
Ali Bruce/UKMAIN/MM1
01/08/2011 15:15
To
bvanass...@acm.org
cc
Subject
Re: Unable to build Net-Snmp with embedded perl
Bart,
Thanks for the quick response. It looks like it has built now. What was
the perl/NetSNMP.xs file
36 matches
Mail list logo