I have Hp DeskJet 5550 , I would like to check printer status through the Host 
resources MIB. When I tried it doesn’t work it is just gave me all the time the 
same values.. how i can implement SNMP Agent on it ? i lost when i try to get 
in to HP website.
  What I should do? 


[EMAIL PROTECTED] wrote:  Send Net-snmp-coders mailing list submissions to
net-snmp-coders@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Net-snmp-coders digest..."


Today's Topics:

1. Re: trap tool problems in net-snmp 5.4 [patches for that and
a lot more] (Magnus Fromreide)


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

Message: 1
Date: Tue, 19 Dec 2006 00:32:18 +0100
From: Magnus Fromreide 
Subject: Re: trap tool problems in net-snmp 5.4 [patches for that and
a lot more]
To: net-snmp-coders@lists.sourceforge.net
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

On s?n, 2006-12-17 at 11:13 +0100, Magnus Fromreide wrote: 
> On l?r, 2006-12-16 at 16:28 +0100, Thomas Anders wrote:
> > Magnus Fromreide wrote:

> With the above said I have to admit that I am preparing a patch to give
> NETSNMP_DS_LIB_DEFAULT_PORT priority.

It was harder than I imagined to fix this properly. Attached is a pile
of patches that I think fixes the problem.

snmp_sess_add_ex-consistent-delete:
This adddresses that snmp_sess_add_ex is unclear regarding the
ownership of the transport argument. The patch clarifies the 
ownership issue to be that snmp_sess_add_ex takes ownership of the 
transport argument.
If the return on line 1574 or 1580 is taken then the transport stays
alive.
If the return on line 1600 is taken then the transport is deleted.
If the return on line 1606 is taken then the transport stays alive
and the newly created session is leaked.

snmp_sess_add_ex-clear-SNMP_FLAGS_DONT_PROBE:
_sess_open clears SNMP_FLAGS_DONT_PROBE after the probeing, that
was not done by snmp_sess_add_ex. This patch makes it do that.

_sess_open-by-snmp_sess_add:
This patch implements _sess_open by means of calling
snmp_sess_add since they have almost the same function. It can
also be seen as groundwork for a later reorganization of all
snmp_*_open* functions into a hierarchy similar to the
snmp_*_add* functions.
This patch doesn't correct any problem, it just removes some
code duplication.

give-NETSNMP_DS_LIB_DEFAULT_PORT-precedence:
This patch gives NETSNMP_DS_LIB_DEFAULT_PORT precedence over the
default_target argument to netsnmp_sockaddr_in2 and
netsnmp_sockaddr_in6_2 and additionally removes the setting of
it to 162 from _init_snmp in order to make the default_target
arguments have any use at all.

snmptrapd-wrong-port:
This patch removes the forced addition of :162 to the port
argument of snmptrapd, intead it uses the default domain from
netsnmp_transport_open_server("snmptrap", ...). The advantage is
that it makes it possible to configure other listen ports as
well as use other transports than the IP ones.

snmptrap_correct_port:
This patch removes the forced setting of
NETSNMP_DS_LIB_DEFAULT_PORT from snmptrap and replaces
snmp_open with netsnmp_transport_open_client followed by
snmp_add since a transport other than "snmp" is to be used for
traps (the original bug) In addition this have the same
advantages as explained for snmptrapd-wrong-port.

snmpUDPDomain-memory-leak:
netsnmp_udp_transport leaked an netsnmp_udp_addr_pair each time
it was called. Change that variable to be stack allocated as it
is local.

In addition there is a file, ALL that contains all the patches.

(How should I put a series of patches with interdependencies into the
patch tracker?)

/MF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp_sess_add_ex-consistent-delete
Type: text/x-patch
Size: 1662 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp_sess_add_ex-clear-SNMP_FLAGS_DONT_PROBE
Type: text/x-patch
Size: 413 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0001.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _sess_open-by-snmp_sess_add
Type: text/x-patch
Size: 3876 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0002.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: give-NETSNMP_DS_LIB_DEFAULT_PORT-precedence
Type: text/x-patch
Size: 4107 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0003.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmptrapd-wrong-port
Type: text/x-patch
Size: 1174 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0004.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmptrap_correct_port
Type: text/x-patch
Size: 1098 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0005.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmpUDPDomain-memory-leak
Type: text/x-patch
Size: 1918 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0006.bin
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ALL
Type: text/x-patch
Size: 13579 bytes
Desc: not available
Url : 
http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders/attachments/20061219/f604afb6/attachment-0007.bin
 

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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


End of Net-snmp-coders Digest, Vol 7, Issue 33
**********************************************



  Best regards,
                               Mrs. Kawthar Moria

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to