Re: Set function in c/c++

2019-08-02 Thread Ashutosh Kumar
Hi Ryan,

I'd recommend you to go through the implementation of apps/snmpset.c
that provides
the CLI functionality. Had a similar requirement for a project I was
working on around a year ago, and going through the CLI implementation
helped a lot .

Thanks,

Ashutosh

On Fri, Aug 2, 2019 at 10:29 PM Ryan Frost  wrote:

> Good morning,
>
> I’m not sure if this is the right email for this but I’m in need of help
> on a project. I have been using this library and am familiar with all the
> CLI commands but need to put it into code. The example and read_objid
> function is working and gets the status I want. Now I would like to set
> this objid value to something different, is there a function similar to
> read_objid that sets an OID value? If this is the wrong email could you
> please point me to the right one.
>
> Thanks,
>
> Ryan Frost
> ___
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: snmpd log file

2018-04-06 Thread Ashutosh Kumar
Hi Simon,

Hope you're doing well.

These weird looking messages are actually representation of the data that
is sent from an snmpd agent to a sub-agent or vice versa.

Generally, when I'm starting my snmpd agent's binary I use the following
command:

*./snmpd -d -Lo -f -c /{Path_to_snmp.conf}/snmpd.conf*

Note the flag -d which indicates that debug mode is on, and the agent will
log/print all the incoming or outgoing packets byte by byte.

To disable these debug messages, you can skip the -d flag and instead use
the following command:

*./snmpd -Lo -f -c /{Path_to_snmp.conf}/snmpd.conf*

Hope it solves your problem.
(By the way, I'm just a beginner with SNMP protocol and net-snmp library.
So pardon me for some mistakes, which might be there in my understanding.
@snmp devs: please correct me, if I've misinterpret something.)

Thanks & Regards,

Ashutosh Kumar

On Fri, Apr 6, 2018 at 1:52 AM, Simon Chamlian 
wrote:

> Hi,
>
> I am seeing some weird messages in the log file generated by snmpd.
>
> Example:
>
> Sending 194 bytes to UDP: [172.27.37.227]:60682->[172.27.42.214]:161
> : 30 81 BF 02  01 03 30 0D  02 01 0A 02  02 05 C0 04
>  0.0.
> 0016: 01 01 02 01  03 04 2E 30  2C 04 0D 80  00 1F 88 80
>  ...0,...
> 0032: 23 29 E6 83  5A C5 2C 68  02 01 0A 02  01 48 04 05
>  #)..Z.,h.H..
> 0048: 41 64 6D 69  6E 04 0C 8D  14 AF 4A EF  E3 C7 E0 13
> hello.J.
> 0064: 8D 33 96 04  00 30 7B 04  0D 80 00 1F  88 80 23 29
>  .3...0{...#)
> 0080: E6 83 5A C5  2C 68 04 00  A2 68 02 01  0A 02 01 00
>  ..Z.,h...h..
> 0096: 02 01 00 30  5D 30 17 06  0F 2B 06 01  04 01 A2 70
>  ...0]0...+.p
> 0112: 02 03 04 01  01 01 02 08  40 04 C0 03  01 FD 30 17
>  @.0.
> 0128: 06 0F 2B 06  01 04 01 A2  70 02 03 04  01 01 01 02
>  ..+.p...
> 0144: 08 40 04 C0  03 01 FD 30  13 06 0F 2B  06 01 04 01
>  .@.0...+
> 0160: A2 70 02 03  04 01 01 01  03 08 04 00  30 14 06 0F
>  .p..0...
> 0176: 2B 06 01 04  01 A2 70 02  03 04 01 01  01 04 08 02
>  +.p.
> 0192: 01 02 ..
>
>
> Received 192 byte packet from UDP: [172.27.37.227]:60682->[172.27.42.214]:161
>
> 
>
>
> How can I disable these messages?
>
> I cannot even find them in source code to comment them out.
>
> Thanks,
> S
>
>
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


Re: IRC chat to help our new guard get on board?

2018-04-04 Thread Ashutosh Kumar
Hi Eric, Keith and All,

I am Ashutosh, and I work as a junior software developer. I got to know
about net-snmp thanks to my previous project.
I have just covered the basic source code as of now, (like snmpget.c,
snmpset.c, snmptable.c, etc.)  but would like to get involved and
contribute to the project to best of my abilities.

I'm willing to attend and any time between 1:30 AM to 3:30 AM UTC and 12:30
PM to 17:30 PM UTC would be fine by me, if that works for other developers.

Thanks,
Ashutosh

On Wed, Apr 4, 2018 at 6:24 AM, Eric S. Raymond  wrote:

> ICEI has a #newguard channel on freenode where its "new guard" -
> programmers who want to get involved in infrastructure work - hang
> out.
>
> Some of them are interested in contributing to net-snmp. Joining Ian
> on the bug triage would be an obvious way to on-board them, but that
> will work better if they have more sense of the scope and direction of
> the project and feel like they know its key people.
>
> We'd like to set up a time for a short IRC conference for them to get
> to know your project's senior devs and vice-versa. Ian and Keith and I
> will be there, of course. We can talk about what needs to be done and
> recruit you some more help.
>
> We'd like to especially invite your project owner and release manager
> and tech lead (understanding that those might be the same person) but
> any net-snmp dev would be welcome and the more the better
>
> If you're willing to attend, please respond with your name, your
> project role, and some indication of when you could be free for a
> 45-minute IRC chat within the next ten days.
> --
> http://www.catb.org/~esr/";>Eric S. Raymond
>
> It would be thought a hard government that should tax its people one tenth
> part.   -- Benjamin Franklin
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders