Re: Hi.... I need ur help..Please help me

2005-03-08 Thread Robert Story
On Thu, 24 Feb 2005 01:45:19 -0800 Chenna wrote:
C>   I could send the traps usgin "snmptrap" command. But my requirement
C> is to use the api. like snmp_easy_trap...like that.
C> 
C>I tried to use the mib2c to generate the stubs. But it asked to
C> load the PERL module. I got some info for doing it in Solaris but I
C> could not make it done properly.

Did you follow the instructions in README.solaris?

You might also try generating the source on another machine, if you have access
to one.

C>net-snmp-config --compile-subagent iAgent nstAgentSubagentObject.c
C> 
C> But I got the error like /usr/local/bin/net-snmp-config : cannot shift.

Hmmm... try running the script with debug (sh -x net-snmp-config), or modifing
the script to add unique 'echo' statements to determing which shift in the
script is failing.

-- 
Robert Story; NET-SNMP Junkie
Support:    
Archive: 

You are lost in a twisty maze of little standards, all different. 


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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


Hi.... I need ur help..Please help me

2005-02-24 Thread Chenna
Hi Robert,
   Im using Net-SNMP 5.1.2. My requirement is to write a simple piece
of code send traps from my application. For e.g. If my process is
running somewhere, I have send the traps with respect to the
performance of that process.

  So please tell me what all the steps I have to follow make it done.

  I could send the traps usgin "snmptrap" command. But my requirement
is to use the api. like snmp_easy_trap...like that.

   I tried to use the mib2c to generate the stubs. But it asked to
load the PERL module. I got some info for doing it in Solaris but I
could not make it done properly.

The Procedure was: #perl MCPAN -e shell
   -- This way I could not succeeded.

   I tried to compile some sample application (nstAgenSubagentObject)
into master agent using the command

   net-snmp-config --compile-subagent iAgent nstAgentSubagentObject.c

But I got the error like /usr/local/bin/net-snmp-config : cannot shift.

   Please give me proper direction to make done. Its very urgent for
me. I have been trying from a long back.

   I hope I will get the information soon.

   Thanks in advance.

-- 
Thanks and Regards
Chenna


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
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