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 = CORBA::ORB_init(\@ARGV);

appears to work ok, but any subsequent SNMP request cause a strange error 
in my perl script as follows:

Your vendor has not defined NetSNMP::agent macro MODE_GET at cpan.pl line 
41.  Line 41 is the line:
if ($request_info->getMode() == MODE_GET) {


Code looks like the following:


use lib "R:/cots/perl";
use lib 'R:/cots/perl/opalORB';

use NetSNMP::OID (':all');
use NetSNMP::agent (':all');
use NetSNMP::ASN (':all');

use CORBA;
use CORBA::Exception;

my $orb = CORBA::ORB_init(\@ARGV);

my $value = "hello world";
sub myhandler 
{
        my ($handler, $registration_info, $request_info, $requests) = @_;
        my $request;

        for($request = $requests; $request; $request = $request->next()) 
        {
                my $oid = $request->getOID();

                if ($request_info->getMode() == MODE_GET) {


-----------------------------------------------
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 and solely for the purposes set forth therein.  
If you are not the intended recipient or have received this email in error 
please notify the sender by return, delete it from your system and destroy any 
local copies.  It is strictly forbidden to use the information in this email 
including any attachment or part thereof including copying, disclosing, 
distributing, amending or using for any other purpose.

In addition the sender excludes all liabilities (whether tortious or common 
law) for damage or breach arising or related to this email including but not 
limited to viruses and libel.
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
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

Reply via email to