[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    snmptrapd.conf and unknown token: perl
From:       ganeshyellapu () bel ! co ! in
Date:       2015-07-28 6:17:28
Message-ID: a0380ee932d3fb227f7b99ed502a1c7f.squirrel () mail ! bel ! co ! in
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@bel.co.in
immediately and destroy all copies of this message and any attachments.


[Attachment #5 (text/html)]

Dear all,<br />&nbsp;<br />System: windows 7 64-bit<br /><br />As i could not succeed \
in creating the netsnmp.dll by defining the macro #define NETSNMP_USE_EMBEDDED_PERL \
1,<br />i tried to build the netsnmp.dll using the build.bat file <br /><br />For \
perl related, i followed the instructions in Readme file located in \
netsnmp-5.7.2/perl<br />[I put the gnu_regex.h, gnu_regex.dll, gnu_regex.lib into the \
respective folders]<br /><br /><br />my perltest.out contains the below summary:<br \
/><br />Test Summary Report <br />-------------------
<br />t/get.t&nbsp;&nbsp;&nbsp;&nbsp; (Wstat: 1280 Tests: 1 Failed: 0)
<br />&nbsp; Non-zero exit status: 5
<br />&nbsp; Parse errors: Bad plan.&nbsp; You planned 17 tests but ran 1.
<br />t/getnext.t (Wstat: 0 Tests: 1 Failed: 0)
<br />&nbsp; Parse errors: Bad plan.&nbsp; You planned 9 tests but ran 1.
<br />t/mib.t&nbsp;&nbsp;&nbsp;&nbsp; (Wstat: 1280 Tests: 23 Failed: 0)
<br />&nbsp; Non-zero exit status: 5
<br />&nbsp; Parse errors: Bad plan.&nbsp; You planned 35 tests but ran 23.
<br />t/notify.t&nbsp; (Wstat: 1280 Tests: 1 Failed: 0)
<br />&nbsp; Non-zero exit status: 5
<br />&nbsp; Parse errors: Bad plan.&nbsp; You planned 11 tests but ran 1.
<br />t/set.t&nbsp;&nbsp;&nbsp;&nbsp; (Wstat: 1280 Tests: 1 Failed: 0)
<br />&nbsp; Non-zero exit status: 5
<br />&nbsp; Parse errors: Bad plan.&nbsp; You planned 7 tests but ran 1.
<br />Files=10, Tests=83, 395 wallclock secs ( 0.13 usr +&nbsp; 0.01 sys =&nbsp; 0.14 \
CPU) <br />Result: FAIL
<br />Failed 5/10 test programs. 0/83 subtests failed.
<br />NMAKE : fatal error U1077: 'C:\Perl\bin\perl.EXE' : return code '0x5'
<br />Stop.
<br />NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\BIN\nmake.exe' : return \
code '0x2' <br />Stop.
<br />NMAKE : fatal error U1077: '&quot;C:\Program Files (x86)\Microsoft Visual \
Studio 9.0\VC\BIN\nmake.EXE&quot;' : return code '0x2'
<br />Stop.<br /><br /><br />I put the file mytrapd.pl [Ref: NetSNMP.chm Document] in
c:usr/share/snmp/mytrapd.pl<br /><br />and <br /><br />In snmptrapd.conf file, I put \
the below&nbsp; two lines as it was told:<br /><br />&nbsp;<br />perl
NetSNMP::TrapReceiver::register(&quot;all&quot;, \&amp;myfunc);&nbsp;
<br />&nbsp;<br />perl do &quot;C:/usr/share/snmp/mytrapd.pl&quot;;
<br /><br />Now when i start the snmptrapd process as c:/snmptrapd -f -Le<br />i am \
getting unknown token perl in snmptrapd.conf file<br /><br />How to overcome this \
problem to enable trap handlers.<br /><br />Looking forward to the valuable reply.<br \
/><br />regards,<br /><br />Ganesh Y<br />&nbsp;<br />&nbsp;<br /><br />
<br /><br /><hr /><b><font color ='Green'><font size='4'>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!!!!  </font></font></b><br /><hr \
/><b><font color ='Red'>Confidentiality Notice </font></b><br />The information \
contained in this electronic message and any attachments to this <br />message are \
intended for the exclusive use of the addressee(s) and may contain <br />confidential \
or privileged information. If  you are not the intended recipient, <br /> please \
notify the sender at Bharat Electronics  or support@bel.co.in <br />immediately and \
destroy all copies of this message and any attachments. <br />



------------------------------------------------------------------------------


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic