raja vankam | 3 Aug 21:30 2015
Picon

Re: Unable to send SNMP V3 Informs to multiple destinations

Hi Robert,

Thanks for your reply and sorry for the delayed response.

I had an error on my side due to which I was not interpreting the informs at the other end. Now I could test SNMP V3 informs with the same or multiple users to different destinations.

However I am seeing a behavior which I would like to know whether it is normal with V3?

I have configured two inform destinations but not started one of the destinations trap receiver or made the network to go down, at that time if I start the agent then agent is not functional. Agent is waiting for the second destination to be available until then I am not receiving cold start trap at either of the destinations. I see debug message Net-Snmp 5.7.3 comes only after all the destinations are available and takes few seconds after the above message to send the inform. From then onwards I am able to receive all the subsequent informs and acknowledgements.

Appreciate your help.

Thanks.

Raja.

On Fri, Jul 17, 2015 at 2:56 PM, Robert Story <rstory <at> freesnmp.com> wrote:
On Wed, 8 Jul 2015 17:03:09 -0500 raja wrote:
RV> If I try to send Informs to more than one destination with the
RV> same user or different user then just cold start trap is being
RV> delivered to all destinations but subsequent Informs are
RV> delivered to only the first destination in the snmpd.conf.

Hi Raja,

Something is definitely wrong. You should be able to send multiple
informs to different destinations. Try adding some debg tokens to
your snmpd command line: "-D trap,send,transport:send" to see
what's happening.

Robert

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Ulrich Windl | 3 Aug 10:21 2015
Picon

Strange side-effect of new NetSNMP::OID() call in AgentX subagent (Perl)

Hi!

I spent a whole day debugging a Perl AgentX subagent, and what I found iss as strange as can be -- can anybody explain?:

When I use "my $oid = new NetSNMP::OID($OID . '.' . $ar->[0]);" in some code before "$agent = new
NetSNMP::agent('Name' => $name, 'AgentX' => 1);", the agent fals to register later without any error
indication, but when the said line is executed AFTER "$agent = new NetSNMP::agent('Name' => $name,
'AgentX' => 1);", the agent registers successfully!

That line using new NetSNMP::OID() what inside a foreach loop when I had the problem, so there shouldn't be
any global side effect.

Regards,
Ulrich

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Vijay Nayani | 3 Aug 09:38 2015

Create MIB file with my PEN OID


Dear All,

I want to create MIB file with my PEN OID. Please find below requirement.

SNMP v2 along with MIN-II should return attributes.

1. Host Name
2. Mac Address
3. OS & its Version
     Manufacturer Name
     Model Number
     Serial Number

4. System Uptime
5. Cold start Trap
6. Warm start Trap

My Private Enterprise Number SNMP Tree 1.3.6.1.4.45053

We are using Fedora 15 Linux OS, This MIB file run on this os.

Can you help me to create above MIB file ?

Thanks,

Vijay Nayani | Linux Lab | Mo: +91 855-2800-066

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Ulrich Windl | 31 Jul 09:10 2015
Picon

Q: Extending the agent with Perl

Hi!

I have no success attempting to extend the SNMP agent with Perl in SLES11 SP3 (using a somewhat older version
and tools):

Whatever I try, my agent won't register. I also searched the Internet for tutorials, example code and
explanations, but I failed.

Mainly the reason for writing this is the lack of documentation, inconsitent documentation, and the
inability to get error details.

So first I tried to used the embed Perl variant with
	$agent->register($name, $OID, \&handler)

That never succeded, and there is not detailed error message (as it's available in $ <at>  when usinf the LDAP
module, for example).

Also the manual page of NetSNMP::agent says
	$agent->register("my_agent_name", ".1.3.6.1.4.1.8072.9999.9999.7375", \&myhandler);

while some code that is supposed to work uses "new NetSNMP::OID($OID)" instead of $OID

Further the snmpd.conf manual page says
	perl 'do /path/to/file.pl';
while the manual page of NetSNMP::agent says
	perl do /path/to/file.pl;
I also found the variant
	perl do "/path/to/file.pl";
Thinking about it I feel that
	perl "do '/path/to/file.pl';"
probably is correct. So what?

Despite of that questions remaining for the example in NetSNMP::agent and OID
".1.3.6.1.4.1.8072.9999.9999.7375" are:
Does the OID have to "join" a leaf of the OID tree, or do missing intermediate node come into existance
automagically? Can existing parts of the OID tree be replaced, or can only new branches be created?

So after having no success in running and debugging the embedded Perl, I tried the AgentX variant. Here also
I had no success, probable due to a missing configuration file. The manual page of NetSNMP::agent is
rather vague on that:
	$agent->register("my_agent_name", ".1.3.6.1.4.1.8072.9999.9999.7375", \&myhandler);
seems to imply that some "my_agent_name" configuration file must exist in some path. The manual page says:
	Name of the agent (optional, defaults to "perl") (The snmp library will read a NAME.conf snmp
configuration file based on this argument.)

But where exactly is the file looked for, and what must be in it?

When trying to start my subagent, I get this:
Warning: Failed to connect to the agentx master agent ([NIL]):
Error registering
Argument "netSnmpPlaypen.7375" isn't numeric in subroutine entry at
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/NetSNMP/OID.pm line 152.

(The latter line is)
	    my $val = constant($constname,  <at> _ ? $_[0] : 0);b

For AgentX the snmpd.conf manual page says the option is named "agentXSocket", while "snmpd -H" lists it as "agentxsocket".

When I configured "agentx master", I saw a UNIX domain socket opened at /var/run/agentx/master. Then I
still get:
NET-SNMP version 5.4.2.1 AgentX subagent connected
Error registering
Argument "netSnmpPlaypen.7375" isn't numeric in subroutine entry at
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/NetSNMP/OID.pm line 152.

My Perl code modelled after the manual page looks like this (relevant part):
---
my $name = 'test_agent';
my $OID = '.1.3.6.1.4.1.8072.9999.9999.7375';
my $agent = new NetSNMP::agent('Name' => $name, 'AgentX' => 1);
if ($agent->register($name, new NetSNMP::OID($OID), \&handler) == 0) {
    my $run = 1;

    print $log "Registered $name for OID $OID\n";
    while ($run) {
        $agent->agent_check_and_process(1)
    }
    $agent->shutdown();
} else {
    print STDERR "Error registering\n";
    print $log "Error registering\n";
}
---

Any help appreciated.

Regards,
Ulrich

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Tien To Tran | 31 Jul 05:36 2015
Picon

Re: Snmpd blind scan on different subnet

More information, I can query the moved computer directly like this:
snmpwalk -v 1 -c public 192.168.1.4 sysUpTime

And have this result:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (528183) 1:28:01.83
But still can't discover the machine via
 snmpwalk -v 1 -c public localhost ip
What's wrong here?

Rgs
PS: Sorry for the duplicated messages, Jurkiewicz
, I forgot to reply to the mail list.

On Fri, Jul 31, 2015 at 10:34 AM, Tien To Tran <totrantien <at> gmail.com> wrote:
More information, I can query the moved computer directly like this:
snmpwalk -v 1 -c public 192.168.1.4 sysUpTime

And have this result:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (528183) 1:28:01.83
But still can't discover the machine via
 snmpwalk -v 1 -c public localhost ip
What's wrong here?

Rgs
Tien

On Thu, Jul 30, 2015 at 10:13 PM, Tien To Tran <totrantien <at> gmail.com> wrote:
Hi, I can ping the moved computer and firewall is off.

Rgs
Tien


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Tien To Tran | 30 Jul 13:03 2015
Picon

Snmpd blind scan on different subnet

I have snmpd installed on 3 computers on the same subnet and can discover the rest from any computer in that network.

The command I use is: snmpwalk -v 1 public ip

However, when I move one to different subnet, it disappears from the query result. Are there any options for me to blind scan that computer or I must provide network info of this one to snmpwalk?


Rgs

Tien

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Sangyeol Lee | 30 Jul 05:46 2015
Picon

[Help] How to compile net-snmp-5.0.8 with 64bit option on AIX(5.3.0).

Hello!

On AIX 5.3.0 server, I hava tried to build the net-snmp-5.0.8 with
64bit option as below, but failed!
I guess that I have used incorrect configuration option or the AiX
64bit version is not supported. Can I receive the guide or information
to solve the this error(64 bit compile error)?

[my build failure log]

1. configure

net-snmp-5.0.8/configure --with-cc=cc --with-cflags="-q64 -g"
--with-ar="ar -X64" --with-ldflag="-b64"

2. make
.....
cc -I../include -I../include -I . -I..  -I./.. -q64 -g -Daix5 -c
ucd_compat.c -DPIC
.....
generating sysmbol list for `libnetsnmp.la`
/usr/ccs/bin/nm -B snmp_client.o mib.o parse.o .....
0654-210 snmp_client.o is not valid in the current object file mode.
use the -X option to specify the desired object mode.

Thanks.

Sang-Yeol Lee
Mobile : +82-10-3338-5379
Phone : +82-070-8727-5379

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

pradeep p | 29 Jul 15:37 2015
Picon

i have problem in processing snmp set request in agentx

i see that the agentx keeps receiving get/set request's.
but the agentx takes more time to send a TestPDU to my application. between this set request and TestPDU, agentx processing get requests. So the get request always has the highest priority ? or this is a problem scenario in my agentx not sending immediate TestPDU on receiving the Set request?
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Ulrich Windl | 28 Jul 15:39 2015
Picon

Error im manual page snmpd.conf(5) at "storageUseNFS"

Hi!

I discovered this error in themanual page for snmpd.conf(5) in net-snmp-5.4.2.
Maybe the bug is fixed already, but I'll let you know:

First the bug results in a sentence stopping in the middle:
---
       storageUseNFS [1|2]
              controls how NFS and NFS-like file systems should be reported
in
              the hrStorageTable.  as 'Network Disks' (1) or 'Fixed Disks'
(2)
              Historically, the Net-SNMP agent has reported such file 
systems
              as 'Fixed Disks', and this is still the default behaviour. 
Set-
              ting this directive to '1' reports such file systems
as<<<<<<<<<<HERE BUG!!!

   Process Monitoring
       The hrSWRun group of the Host Resources MIB provides information 
about
       individual  processes  running on the local system.  The prTable of
the
---

The source of the manual page looks rather OK:
---
.IP "storageUseNFS [1|2]"
controls how NFS and NFS-like file systems should be reported
in the hrStorageTable.
as 'Network Disks' (1) or 'Fixed Disks' (2)
Historically, the Net-SNMP agent has reported such file systems
as 'Fixed Disks', and this is still the default behaviour.
Setting this directive to '1' reports such file systems as
'Network Disks', as required by the Host Resources MIB.
.SS Process Monitoring
The \fChrSWRun\fR group of the Host Resources MIB provides
information about individual processes running on the local system.
---

The problem seems to be in groff(7):
---
       The roff language is line-oriented.  There are only two kinds of
lines,
       control lines and text lines.  The control lines start with  a 
control
       character,  by  default  a period “.”  or a single quote “'”;
all other
       lines are text lines.
---

So 'Network Disks' is interpreted as a command, I suspect.

Regards,
Ulrich

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
ganeshyellapu | 28 Jul 08:05 2015
Picon

snmptrapd.conf and unknown token: perl

Dear all,
 
System: windows 7 64-bit

As i could not succeed in creating the netsnmp.dll by defining the macro #define NETSNMP_USE_EMBEDDED_PERL 1,
i tried to build the netsnmp.dll using the build.bat file

For perl related, i followed the instructions in Readme file located in netsnmp-5.7.2/perl
[I put the gnu_regex.h, gnu_regex.dll, gnu_regex.lib into the respective folders]


my perltest.out contains the below summary:

Test Summary Report
-------------------
t/get.t     (Wstat: 1280 Tests: 1 Failed: 0)
  Non-zero exit status: 5
  Parse errors: Bad plan.  You planned 17 tests but ran 1.
t/getnext.t (Wstat: 0 Tests: 1 Failed: 0)
  Parse errors: Bad plan.  You planned 9 tests but ran 1.
t/mib.t     (Wstat: 1280 Tests: 23 Failed: 0)
  Non-zero exit status: 5
  Parse errors: Bad plan.  You planned 35 tests but ran 23.
t/notify.t  (Wstat: 1280 Tests: 1 Failed: 0)
  Non-zero exit status: 5
  Parse errors: Bad plan.  You planned 11 tests but ran 1.
t/set.t     (Wstat: 1280 Tests: 1 Failed: 0)
  Non-zero exit status: 5
  Parse errors: Bad plan.  You planned 7 tests but ran 1.
Files=10, Tests=83, 395 wallclock secs ( 0.13 usr +  0.01 sys =  0.14 CPU)
Result: FAIL
Failed 5/10 test programs. 0/83 subtests failed.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.EXE' : return code '0x5'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\BIN\nmake.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.


I put the file mytrapd.pl [Ref: NetSNMP.chm Document] in c:usr/share/snmp/mytrapd.pl

and

In snmptrapd.conf file, I put the below  two lines as it was told:

 
perl NetSNMP::TrapReceiver::register("all", \&myfunc); 
 
perl do "C:/usr/share/snmp/mytrapd.pl";

Now when i start the snmptrapd process as c:/snmptrapd -f -Le
i am getting unknown token perl in snmptrapd.conf file

How to overcome this problem to enable trap handlers.

Looking forward to the valuable reply.

regards,

Ganesh Y
 
 



Every Sheets of paper is made from a tree.. Save trees... Conserve Trees.... Go Green .... Don't print this email or any Files unless you really need to!!!!
Confidentiality Notice
The information contained in this electronic message and any attachments to this
message are intended for the exclusive use of the addressee(s) and may contain
confidential or privileged information. If you are not the intended recipient,
please notify the sender at Bharat Electronics or support <at> bel.co.in
immediately and destroy all copies of this message and any attachments.
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Marcin Głuc | 22 Jul 16:03 2015
Picon

stenio, please add me to your LinkedIn network

 
 
Hi stenio,
I'd like to connect with you on LinkedIn.
Marcin Głuc
Administrator at KEI.PL
Accept
View Profile
You are receiving Invitation emails. Unsubscribe
This email was intended for stenio guzman (--). Learn why we included this.
If you need assistance or have questions, please contact LinkedIn Customer Service.
© 2015, LinkedIn Corporation. 2029 Stierlin Ct. Mountain View, CA 94043, USA
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Gmane