IF -MIB set problem

2010-10-27 Thread sanjaykumar

HI All,
I am doing set for if mib
I am getting following error
could someone help me out
snmpset -v 2c -c private 172.16.8.83  .1.3.6.1.2.1.2.2.1.7.9 i 2

Error in packet.
Reason: resourceUnavailable (This is likely a out-of-memory failure 
within the agent)

Failed object: IF-MIB::ifAdminStatus.9

Rgds,
Sanjay

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev___
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


authentication[md5-hmac/sha-hmac] of snmp message

2010-09-15 Thread sanjaykumar
Hi All,
   Could anyone tell me authentication[md5-hmac/sha-hmac] of 
snmp message done
only on scoped pdu or complete snmp Packet ?


Rgds,
sanjay

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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


snmpTrapOID having extra .0

2010-09-13 Thread sanjaykumar
Hi All,

snmp v2 trap consists of:
 sysUpTime   // {1.3.6.1.2.1.1.3.0}
 snmpTrapOID // {1.3.6.1.6.3.1.1.4.1.0}
 varList // optional, I can attach anyone variable or more

As snmpTrapOID is 1.3.6.1.6.3.1.1.4.1 but if look at the packet of 
snmptrap snmpTrapOID is 1.3.6.1.6.3.1.1.4.1.0
Can someone have idea of what .0 signify in snmpTrapOID

Rgds,
sanjay

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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


netsnmp_udp_create_XXX Api

2010-08-26 Thread sanjaykumar


Hi All,

Could anyone explain under what condition below API will called:

1. netsnmp_udp_create_tstring

2. netsnmp_udp_create_ostring

Rgds,
Sanjay
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d___
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


netsnmp_udp6_parse_security and snmpCommunityTable

2010-08-16 Thread sanjaykumar

Hi All,
As net-snmp5.4.2.1 doesn't have implementation on 
snmpCommunityTable so
I am using the available patch under the net-snmp 1779503 
http://sourceforge.net/tracker/index.php?func=detailatid=312694group_id=12694aid=1779503 
/2007-08-22/ snmpCommunityTable implementation


But I am facing problem in IPv6
As there in no support snmpCommunityTable IPv6  hence  I am using 
netsnmp_udp6_parse_security function.

But again I am facing other issues.

could someone has modified the snmpCommunityTable code for IPv6 or any 
other version of net-snmp does support the same.



Rgds,
sanjay

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
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


Localized key and master key

2010-07-12 Thread sanjaykumar

Hi All,
Could somebody explain what is difference between
master authentication  and encryption keys (-3m and -3M respectively) and
the localized authentication and encryption keys (-3k and -3K 
respectively). 
As for get/set operatin we use localized key.   when does we use master 
key ??


Rgds,
Sanjay

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
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


Does net-snmp support IPv4 and IPv6 at a time ?

2010-07-07 Thread sanjaykumar
Does net-snmp support IPv4 and IPv6 at a time ?
If we configure the net-snmp-5.4.2.1 with option   --enable-ipv6
Then it will support only ipv6 or both(ipv4 and ipv6)

[  --enable-ipv6   Generate IPv6 ready version.]

Rgds,
Sanjay


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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


Re: Does net-snmp support IPv4 and IPv6 at a time ?

2010-07-07 Thread sanjaykumar

Dave Shield wrote:

On 7 July 2010 08:22, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  

Does net-snmp support IPv4 and IPv6 at a time ?



Yes.

  

If we configure the net-snmp-5.4.2.1 with option   --enable-ipv6
Then it will support only ipv6 or both(ipv4 and ipv6)



Both.

Dave

  

Hi Dave ,

What will be value of macro NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE in 
following structure


typedef struct netsnmp_arp_s {

  netsnmp_index oid_index;  /* MUST BE FIRST!! for container use */
  oid   ns_arp_index;  /* arbitrary index */
  int   flags; /* for net-snmp use */
  oid   if_index;
  u_chararp_physaddress[NETSNMP_ACCESS_ARP_PHYSADDR_BUF_SIZE];
  u_chararp_ipaddress[NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE];
  u_chararp_physaddress_len;/* phys address len, 6 */
  u_chararp_ipaddress_len;  /* ip address len, 4 | 16 */
  u_chararp_type;   /* inetNetToMediaType 1-5 */
  u_chararp_state;  /* inetNetToMediaState 1-7 */

} netsnmp_arp_entry;

As this macro depends on version of ip address as defined in 
include/data_access/arp.h


#if defined( NETSNMP_ENABLE_IPV6 )
#   define NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE 16
#else
#   define NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE 4
#endif

_/As macro are compile time entities./_

There are other structure also available which has similar macro for 
size of IP Address.


Rgds,
Sanjay



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
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


Configure the snmp in IPv6 mode at RUN time

2010-07-06 Thread sanjaykumar

Hi All,
   I have configure the net-snmp-5.4.2.1 in IPv6 mode.
As the default configuration snmp will run into ipv6 mode only if it is 
configure in IPv6 mode

i.e. based on following macro : #define NETSNMP_ENABLE_IPV6 1
Am I right ???

What are the changes are required if I need to configure the snmp in 
different IP-mode(Ipv4 or Ipv6).


Rgds,
Sanjay


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
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


snmp alarm and cache concept

2010-05-21 Thread sanjaykumar
Hi All,
   What is snmp alarm and cache concept  ??

How they are inter-related ??///


Rgds,
Sanjay

--

___
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


Master Agent and Sub Agent(s)

2010-05-14 Thread sanjaykumar

Hi All,
 I am going through the /_Master Agent and  Sub Agent(s)._/
I have some doubt  regarding the above concept.
How does it works ?
How does the communication established between them ?
Does both receive the snmp request on snmp port 161 or some other port ???

Rgds,
Sanjay
--

___
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


Re: Memory Leak in netsnmp-5.4.2.1

2010-04-25 Thread sanjaykumar

Mike Ayers wrote:

From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
Sent: Friday, April 23, 2010 3:21 AM



  

I am using the netsnmp-5.4.2.1
I run the valgrind on this, I find lot of Merory Leaks.
Could someone help me out regarding this :
Does any patches are available to fix the memory leak for 5.4.2.1
version ???



Do the leaks appear during execution, or upon termination?


Thanks,

Mike
/*
*/

/*_duing the execution_
some of memory leak example:*/

==10240== 
==10240== 20 bytes in 1 blocks are indirectly lost in loss record 60 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x827293F: initialize_table_snmpTargetAddrExtTable 
(snmpTargetAddrExtTable.c:51)
==10240==by 0x8272902: init_snmpTargetAddrExtTable 
(snmpTargetAddrExtTable.c:26)
==10240==by 0x8257754: init_mib_modules (mib_module_inits.h:170)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)


==10240== 
==10240== 20 bytes in 1 blocks are still reachable in loss record 61 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x8259007: init_vacm_context (vacm_context.c:104)
==10240==by 0x82575F6: init_mib_modules (mib_module_inits.h:145)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
==10240== 
==10240== 
==10240== 20 bytes in 1 blocks are still reachable in loss record 62 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x825EC01: init_tcpTable (tcpTable.c:156)
==10240==by 0x82575DD: init_mib_modules (mib_module_inits.h:143)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)

==10240== 
==10240== 5 bytes in 1 blocks are still reachable in loss record 4 of 134

==10240==at 0x4022799: malloc (vg_replace_malloc.c:207)
==10240==by 0x834BA94: snmp_clone_mem (snmp_client.c:318)
==10240==by 0x833523D: build_oid (mib.c:3742)
==10240==by 0x832928B: _netsnmp_tdata_generate_index_oid (table_tdata.c:62)
==10240==by 0x83296AD: netsnmp_tdata_add_row (table_tdata.c:206)
==10240==by 0x82735E3: snmpCommunityTable_createEntry 
(snmpCommunityTable.c:181)
==10240==by 0x8273ECF: snmpCommunityTable_parse_com2sec 
(snmpCommunityTable.c:496)
==10240==by 0x824CBFF: create_community_user (snmp_init.c:976)
==10240==by 0x824C867: snmp_create_user_new (snmp_init.c:895)
==10240==by 0x824C617: snmp_create_v2c_user (snmp_init.c:836)
==10240==by 0x824C559: snmp_create_v2cuser_multiple_source (snmp_init.c:787)
==10240==by 0x824C25F: snmp_create_user (snmp_init.c:700)



==10240== 
==10240== 8 bytes in 1 blocks are still reachable in loss record 9 of 134

==10240==at 0x40218C9: calloc (vg_replace_malloc.c:397)
==10240==by 0x835BDB1: atime_newMarker (tools.c:810)
==10240==by 0x831FE9D: _cache_load (cache_handler.c:570)
==10240==by 0x831F881: netsnmp_cache_handler_get (cache_handler.c:274)
==10240==by 0x831821E: _ifTable_initialize_interface 
(ifTable_interface.c:361)
==10240==by 0x8285107: initialize_table_ifTable (ifTable.c:155)
==10240==by 0x82850B0: init_ifTable (ifTable.c:99)
==10240==by 0x8257641: init_mib_modules (mib_module_inits.h:148)
==10240==by 0x824EFD4: snmpd (snmpd.c:1039)
==10240==by 0x40471B2: start_thread (in /lib/libpthread-2.5.so)
==10240==by 0x42E303D: clone (in /lib/libc-2.5.so)
==10240== 



Rgds,
Sanjay
--
___
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


Memory Leak in netsnmp-5.4.2.1

2010-04-23 Thread sanjaykumar
Hi All,
I am using the netsnmp-5.4.2.1
I run the valgrind on this, I find lot of Merory Leaks.
Could someone help me out regarding this :
Does any patches are available to fix the memory leak for 5.4.2.1 
version ???


Rgds,
Sanjay

--
___
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


Modification required in function static struct session_list * _sess_copy(netsnmp_session * in_session) in snmp_api.c

2010-04-19 Thread sanjaykumar




Hi Dave and Wes,

I have a doubt regarding function "static struct session_list
* _sess_copy(netsnmp_session * in_session)" in snmp_api.c

In this function DEFAULT auth protocol and priv protocol are assigned
without varifying the security level e.g.
" if(session-securityLevel  SNMP_SEC_LEVEL_AUTHNOPRIV) "

Is this done purposely [Have a particular reason] ??

I feel this is a BUG to look into.

Modified CODE:

if(session-securityLevel 
SNMP_SEC_LEVEL_NOAUTH)
 {
 if (in_session-securityAuthProtoLen  0) {
 session-securityAuthProto =

snmp_duplicate_objid(in_session-securityAuthProto,

in_session-securityAuthProtoLen);
 if (session-securityAuthProto == NULL) {
 snmp_sess_close(slp);
 in_session-s_snmp_errno =
SNMPERR_MALLOC;
 return (NULL);
 }
 } else if (get_default_authtype(i) != NULL) {
 session-securityAuthProto =

snmp_duplicate_objid(get_default_authtype(NULL), i);
 session-securityAuthProtoLen = i;
 }
 }
 if(session-securityLevel 
SNMP_SEC_LEVEL_AUTHNOPRIV)
 {
 if (in_session-securityPrivProtoLen  0) {
 session-securityPrivProto =

snmp_duplicate_objid(in_session-securityPrivProto,

in_session-securityPrivProtoLen);
 if (session-securityPrivProto == NULL) {
 snmp_sess_close(slp);
 in_session-s_snmp_errno =
SNMPERR_MALLOC;
 return (NULL);
 }
 } else if (get_default_privtype(i) != NULL) {
 session-securityPrivProto =

snmp_duplicate_objid(get_default_privtype(NULL), i);
 session-securityPrivProtoLen = i;
 }
 }



Rgds,
Sanjay




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Disabling the snmp log

2010-04-14 Thread sanjaykumar




Hi ALL, 

I am trying to disable snmp log.
I have disable the init function of log in "init_snmp" 
that is "init_snmp_logging();"

Even then i am getting log both in /var/log/snmpd.log and and on
terminal[screen].

Could somebody help me out to disable it ?

Rgds,
Sanjay



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Re: Engine ID discovery

2010-04-07 Thread sanjaykumar




Hi Dave and Wes,
 So do I conclude my requirement as follow:
Requirement: As I do the discovery to send
the inform request

Conclusion:
1. I will send the inform request for
engine ID probeing
2. Inform request will be framed as describe in RFC 3414
"This may be accomplished by generating a Request message with a
securityLevel of noAuthNoPriv,
a msgUserName of zero-length, a msgAuthoritativeEngineID value of zero
length, and the varBindList left empty." [as per rfc 3414 section 4]

Please add your comments.

Rgds,
Sanjay


Wes Hardaker wrote:

  

  

  
On Tue, 6 Apr 2010 11:17:21 +0100, Dave Shield d.t.shi...@liverpool.ac.uk said:

  

  

  
  
  
  

  Approach 1. If we send get request with engine id NULL(engine id discovery
process) , then no response will come. Lets assume our retry is 3, then we
will send 3 get request for engine id discovery. As response has not come,
we will not send the snmp inform
  

  
  
If you read RFC3414 section 4 you'll see, by the way, that an empty
engineID is indeed the right thing to send.  The agent should respond
to any incorrect engineID the same way, but I'd stick with the empty
value as the "correct" way just to be sure.

DS What I'm not 100% sure about is what happens if snmptrapd *is* running.
DS It would reject a GET request anyway, since it's a trap receiver, not an
DS SNMP agent.   But you'd need to work through the SNMPv3 Elements of
DS Procedure very carefully to check whether the engineID probe handling
DS is done before the invalid PDU is rejected, or not.

It's supposed to be handled in the SNMP engine itself and, again,
RFC3414 says to use "a Request message" which could be either a trap or
an inform.  Within Net-SNMP we'll accept either as it's caught long
before the application is hit.  That being said, it might be safest to
send the type of packet you expect to eventually send to ensure other
trap receiving implementations that behave differently don't throw out
the packet because it's a GET (they shouldn't be, but.)

  
  

  Approach 2: If we send snmp inform with wrong engine id(complete snmp
inform with all varbinds like device status, time etc), then also no
response will come. Lets assume our retry is 3, then we will send
snmp inform(with wrong engine id and complete varbinds details) 3
times.
  

  
  
DS This feels safer - you're sending a probe request that would be
DS accepted as valid by the receiving engine.

If there is an implementation out there that is being very strict about
engineID probing it could drop this message because it wasn't following
the letter of the text which says "and the varBindList left empty".
It'd be safest to send *ONLY* what RFC3414 section 4 describes if you
want to talk to any SNMPv3 implementations that exist.  I would use an
INFORM instead of a GET as discussed above, but both should be legal.

Some other things to note:

1) make sure you understand the difference in engineIDs for traps vs
   informs ( http://www.net-snmp.org/wiki/index.php/TUT:snmptrap_SNMPv3)

2) make sure you understand the security ramifications of even using
   engineID discovery in the first place:

   http://pontifications.hardakers.net/computers/limitations-of-snmpv3usm-when-combined-with-engineid-discovery/
  





--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Engine ID discovery

2010-04-06 Thread sanjaykumar
Hi All,
I am going through the Engine ID discovery code.
Could someone explain me about this concept ??
When does it Required ??
How does Engine ID discovery process take place ?
Does it is standard or implementation dependent ???

Rgds,
Sanjay

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


Re: Engine ID discovery

2010-04-06 Thread sanjaykumar




Dave Shield wrote:

  On 6 April 2010 07:04, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  
  
 I am going through the "Engine ID discovery" code.
Could someone explain me about this concept ??

  
  
In order to use SNMPv3, it's necessary to know the "engineID" of the
agent (or strictly speaking, the "authoritative SNMP engine" - which is
the agent for GET* and SET requests).

One way to do this is to specify the engine ID explicitly
(e.g. via the -e command line option).   A number of other
SNMP toolkits work this way.

But the Net-SNMP code attempts to probe the remote agent
to discover this value, by sending a request without the engineID
in place.This request will fail, but the response that comes back
includes the engine ID (and possibly the boot count/uptime values
as well).
   The client can then re-send the request including this information,
and hopefully the request should then succeed.


Dave

  

Hi Dave,

I am trying to send the snmp-inform to different SNMP-Manager.
But initially Engine ID is unavailable.
So we are sending the inform with WRONG engine ID, once we receive the
REPORT then we update the required data-structure 
then RESENT the inform request and it is working fine. Does it correct approach ???
or is there any standard violation ??

Or i need to discover the engine ID, first by sending the
GET request , Then send the inform request.

rgds,
Sanjay




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Re: Engine ID discovery

2010-04-06 Thread sanjaykumar




Hi,
  I have a real time situation.
Suppose I have to send inform to an ip addr. On that ip addr, snmptrapd
is not running.  

Approach 1. If we send get request with engine id NULL(engine id
discovery process) , then no response will come. Lets assume our retry
is 3, then we will send 3 get request for engine id discovery. As
response has not come, we will not send the snmp inform  

Approach 2: If we send snmp inform with wrong engine id(complete snmp
inform with all varbinds like device status, time etc), then also no
response will come. Lets assume our retry is 3, then we will send snmp
inform(with wrong engine id and complete varbinds details) 3 times. 

So my question is, if we follow approach
2, then is it valid as per the SNMP standard ??

Regard's
Sanjay 


Dave Shield wrote:

  On 6 April 2010 10:09, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  
  
So we are sending the inform with WRONG engine ID,
once we receive the REPORT then we update the required data-structure
then RESENT the inform request and it is working fine. Does it correct
approach ???

  
  
That's essentially the same approach as I described earlier.


  
  
Or i need to discover the engine ID, first by sending the GET request ,
Then send the inform request.

  
  
It makes no difference whether you send a GET request
or an INFORM request - the message will be rejected in
either case (because it doesn't have the correct engineID).

Each approach will then process the rejection report in
exactly the same way (extracting the engineID and boot
count/uptime values).   So it really doesn't matter whether
you send a GET probe or an INFORM probe - either will
work, and either is valid.

Dave

  






--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


set command in IPv6

2010-04-01 Thread sanjaykumar




Hi All,
   I am trying to give the set command in IPv6 like 
snmpset -v 2c -c private
udp6:[2001:db8:100:f101:2e0:4cff:fe36:12a9]:161
.1.3.6.1.2.1.140.1.2.9.0 s tftp://[172.16.8.128]/coexist_test.bin

but I am getting the the following ERROR 

snmpset: Unknown host
(udp6:[2001:db8:100:f101:2e0:4cff:fe36:12a9]:161) (No such file or
directory)

Could anybody help me out ???

Rgds,
Sanjay




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Re: How to add EtherLike-MIB to net-snmp?

2010-03-23 Thread sanjaykumar




Does net-snmp-5.4.1 version code have the 
"EtherLike-MIB" implementation ??
find out in PATH "agent/mibgroup/EtherLike-MIB"

If not try "net-snmp-5.5" it has  "EtherLike-MIB" implementation.

Rgds,
Sanjay

Kavita Raghunathan wrote:

  
  How to add EtherLike-MIB to net-snmp?
  Hello,
I’ve tried various things to add EtherLike-MIB to net-snmp and have
also been googling real hard but cannot find the answer. I’m using
net-snmp-5.4.1
  
  
I did export MIBS = ALL followed by
./configure as well as make, make install but it pulled in everything
except EtherLike MIB into the mibgroups directory under agent. Note,
EtherLike-MIB.txt is under mibs directory, and I’m able to smistrip it
to generate EtherLike-MIB.
  
I did export MIBS = +EtherLike-MIB and still
does not show up under mibgroups.
  
I viewed the README.agent-mibs, and this is
what the EtherLike MIB line looks like
  
  
  --
EtherLike-MIB
 *    
-
  
  
What am I missing. How can I add this MIB .c and .h files? NOTE: I have
enclosed net-snmp-config for your viewing. Let me know if I can provide
any other information to better inform you and I appreciate your help
in advance.
  
Regards,
Kavita
  

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
  

___
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
  





--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


path of snmpd.conf

2010-03-18 Thread sanjaykumar
Hi All,

 If we run the snmpd it takes the config file from the different 
location
like :
 /etc/snmp/snmp.conf
/usr/share/snmp/mibs/
/var/snmp/snmpd.conf


We can also specified the path of config file with options -c

1. What if config file is present at all the place ???

2. By default which file will be read by snmpd first ??

3. and what will be order in which snmpd read the config file if one 
is absent ???


rgds,
Sanjay


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
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


issues with IP-MIB::ipDefaultRouterTable

2010-02-17 Thread sanjaykumar
/Hi All,
 I have included the //ipDefaultRouterTable  with 
net-snmp-5.4.2.1 from //net-snmp-5.5
I am doing walk for this table
It shows the following Error:
//IP-MIB::ipDefaultRouterTable = No Such Object available on this agent 
at this OID

Could anybody help me out for above.
What could be REASON ???


Rgds,
Sanjay
/

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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


Re: issues with IP-MIB::ipDefaultRouterTable

2010-02-17 Thread sanjaykumar




Dave Shield wrote:

  On 17 February 2010 13:21, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  
  
  I have included the //ipDefaultRouterTable with
net-snmp-5.4.2.1 from //net-snmp-5.5
I am doing walk for this table
It shows the following Error:
//IP-MIB::ipDefaultRouterTable = No Such Object available on this agent
at this OID

Could anybody help me out for above.
What could be REASON ???

  
  

One possibility might be that the underlying system doesn't
have a default route, as Tarun suggests.  Personally, I find
that somewhat unlikely.

Another possibility is that the access control is configured
too tightly, so that you're not allowed to access this table.
Try walking other parts of the MIB tree - how much can you
access?

A third possibility is that you made an error when copying
the ipDefaultRouterTable code from the 5.5 source tree back
into the 5.4 one.
   But you haven't given *any* details about how you did
this - what files you copied, how you re-compiled the agent,
or anything - it's impossible to tell.

If you require assistance, you *must* give us something to
work with.   Saying "it doesn't work" without some hint as to
what you've done, is worse than useless.

Dave

  

Thanks Dave 
I have come up with more information 
Now I am able to get the data w r t IP-MIB::ipDefaultRouterTable 
As this Macro was not define "HAVE_LINUX_RTNETLINK_H"
so I define it in net-snmp-config.h
That was a reason.

Now I have another doubt :
As there is are lot of code has been added in 
agent/mibgroup/ip-mib/data_access/arp_linux.c:18
under macro "HAVE_LINUX_RTNETLINK_H" in net-snmp-5.5
and I am porting this Table to net-snmp-5.4.2.1.
Hence
Does this part of are required for IP-MIB::ipDefaultRouterTable or for
some USE ???



Rgds,
Sanjay



--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
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


Re: EngineID

2010-01-29 Thread sanjaykumar




Hi Dave,

 As in case of net-snmp EngineId generated based on random
number and current time. 
Hence every time system will reboot both the above DATA will change.
Hence EngineId will change ? 
Am I right ?

 /*
 * Here we've desigend our own ENGINEID that is not based on
 * an address which may change and may even become
conflicting
 * in the future like most of the default v3 engineID types
 * suffer from.
 * 
 * Ours is built from 2 fairly random elements: a random
number and
 * the current time in seconds. This method suffers from
boxes
 * that may not have a correct clock setting and random
number
 * seed at startup, but few OSes should have that problem.
 */

Rgds,
Sanjay

Dave Shield wrote:

  On 29 January 2010 06:22, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  
  
Now as every time device reboot EngineID is Changing, Hence the engine
Time reset to "zero[0]" and Engine Boot to "1".
Does it correct that EngineID should also Change ?
Or it should change only in case of Power OFF ?

  
  
The engine ID uniquely identifies an SNMP engine, and
should be persistent - not only across reboots, but also
when power is removed and restored.

From the definition of the snmpEngineID MIB object

  This information SHOULD be stored in non-volatile
 storage so that it remains constant across
 re-initializations of the SNMP engine.

(RFC3411 - p49)

Dave

  





--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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


Re: What these means: int majorID, int minorID, void *serverarg, void *clientarg

2010-01-28 Thread sanjaykumar




Thank U Dave
-sanjay

Dave Shield wrote:

  On 28 January 2010 06:45, sanjaykumar sanjay.ku...@globaledgesoft.com wrote:
  
  
 I am not able to understand the meaning of following parameters.
As there numerous function in net-snmp-5.4.2.1 having following parameter.
Could someone explain the meaning of these parameters in DETAILS.
1. int majorID
2. int minorID
3. void *serverarg
4. void *clientarg
As in function: int snmpv3_store(int majorID, int minorID, void
*serverarg, void *clientarg)

  
  

These parameters are related to how the "callback" mechanism operates.

The first two parameters (major, minor) match those used when registering
the callback. (see snmpNotifyTable).  These are used to control when this
particular callback routine will be invoked, and are passed to the callback
routine in case it needs to distinguish between different possible invocations.

It is also possible to supply some arbitrary data as part of this registration
(using the final parameter of the registration call).   This is then passed to
the callback routine as the 'clientarg' parameter.


The code that triggers the callback (snmp_call_callbacks) can also provide
some arbitrary data, which is passed to the callback routine as 'serverarg'.
This is used by (e.g.) the access control callbacks, or those concerned with
registering MIB modules.


If you search the code for mention of SNMP_CALLBACK, you'll find examples
of both registration of such callbacks (snmp_register_callback), and where
these are callbacks are invoked (snmp_call_callbacks).

This mechanism is used both within the Net-SNMP library (when majorID is
SNMP_CALLBACK_LIBRARY), and the agent (SNMP_CALLBACK_APPLICATION)


Dave

  





--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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


EngineID

2010-01-28 Thread sanjaykumar
Hi All,
I have a doubt regarding the EngineID.
As I have Ported the Net-SNMP-5.4.2.1 as a thread.
Now as every time device reboot EngineID is Changing, Hence the engine 
Time reset to zero[0] and Engine Boot to 1.
Does it correct that  EngineID should also Change  ?
Or  it should  change only in case of  Power OFF ?


Rgds,
Sanjay

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
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


What these means: int majorID, int minorID, void *serverarg, void *clientarg

2010-01-27 Thread sanjaykumar




Hi All, 
 I am not able to understand the meaning of following
parameters. 
As there numerous function in net-snmp-5.4.2.1 having following
parameter.
Could someone explain the meaning of
these parameters in DETAILS.
1. int majorID
2. int minorID
3. void *serverarg
4. void *clientarg
As in function: int snmpv3_store(int majorID, int minorID, void
*serverarg, void *clientarg)

Rgds,
Sanjay





--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com___
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


Doubt regarding IF-MIB

2010-01-19 Thread sanjaykumar
Hi All,
   I have a doubt regarding IF-MIB.
As I found that We get the data for if Table
from structure ifTable_data  data; an member of structure 
ifTable_rowreq_ctx * rowreq_ctx 
but what I observe that most of the member of  structure 
ifTable_datadata; has been commented .
Then How does the If Table is getting updated ?

Rgds,
Sanjay

--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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


Re: Doubt regarding IF-MIB

2010-01-19 Thread sanjaykumar




Hi Dave,

But In below function and other similar function, 
data are not access from below Pointer but try to access the other
element of "fTable_data data;" which are commented.

	/ * some data kept externally
 */
netsnmp_interface_entry *ifentry;


int
ifMtu_get(ifTable_rowreq_ctx * rowreq_ctx, long *ifMtu_val_ptr)
{
 /** we should have a non-NULL pointer */
 netsnmp_assert(NULL != ifMtu_val_ptr);


 DEBUGMSGTL(("verbose:ifTable:ifMtu_get", "called\n"));

 netsnmp_assert(NULL != rowreq_ctx);

 /*
 * TODO:231:o: |- Extract the current value of the ifMtu data.
 * copy (* ifMtu_val_ptr ) from rowreq_ctx-data
 */
 (*ifMtu_val_ptr) =
rowreq_ctx-data.ifMtu; /*my doubt is here and in other similar
function in

"if-mib/ifTable/ifTable.c" */

 return MFD_SUCCESS;
} /* ifMtu_get */


Rgds,
Sanjay

Dave Shield wrote:

  2010/1/19 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
 I have a doubt regarding IF-MIB.
As I found that We get the data for if Table
from structure "ifTable_data data;" an member of structure
"ifTable_rowreq_ctx * rowreq_ctx"
but what I observe that most of the member of structure
"ifTable_data  data; "has been commented .
Then How does the If Table is getting updated ?

  
  
From the final field of the ifTable_data structure:

/*
 * some data kept externally
 */
netsnmp_interface_entry *ifentry;

This structure is defined in the header file net-snmp/data_access/interface.h
and populated by the routines under if-mib/data_access

Dave

  





--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev___
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


Re: Doubt regarding IF-MIB

2010-01-19 Thread sanjaykumar
Thanks you... Dave

sanjay


Dave Shield wrote:
 2010/1/19 sanjaykumar sanjay.ku...@globaledgesoft.com:
   
 But In below function and other similar function,
 data are not access from below Pointer but try to access the other element
 of fTable_data  data;
 

 Please take a look at the file 'ifTable/ifTable_defs.h'

 Dave

   


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
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


IF-MIB requirement and modification

2010-01-08 Thread sanjaykumar
Hi All,
   I have a specific requirement regarding the IF-MIB.
 As per code base Net-SNMP-5.4.2.1  I have come to know that IF mib 
display all interface present on the Machine.
Like loopback [lo]   as index -1
ethernet0 [eth0]   as index -2
   ethernet1 [eth1]as index -3

As per my requirement I need to read only ONE interface eth0 as index 
1 and this change should reflect in IP MIB available with net-snmp-5.4.2.1

Does anyone could suggest what and  where (if possible), Does I need to 
change ?
Any suggestion would Great Help for Me.

Rgds,
Sanjay

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
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


query regarding udpHCInDatagrams and udpHCOutDatagrams

2009-12-01 Thread sanjaykumar





Hi All, 
 I have a doubt regaring udp mib w r t MIBII and rfc4113
As net-snmp5.4.2.1 does not support the following object:
udpHCInDatagrams and udpHCOutDatagrams but 
it is supporting udpInDatagrams and udpOutDatagrams

I found that in above object interpret set data but difference is only
data type [counter32 and counter64]. Am I right 
If I am right then we I can update the udpHCInDatagrams and
udpHCOutDatagrams, once size will be greater than (2^32-1) 

Rgds,
Sanjay



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev___
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


major changes of net-snmp 5.5 over net-snmp 5.4.2.1

2009-11-30 Thread sanjaykumar
Hi All,
 I am using net-snmp 5.4.2.1,  could anybody list the 
Major changes w r t net-snmp 5.5

What are the advantage of using 5.5 over 5.4.2.1

Rgds,
Sanjay

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Ipv4InterfaceTable and Ipv6InterfaceTable in IP-MIB

2009-11-19 Thread sanjaykumar




Hi All,
 I am going through the IP-MIB, net-snmp-5.4.2.1
As per my requirement I need to populate the "Ipv4InterfaceTable"
and "Ipv6InterfaceTable".
But the function referring two table are protected under the macro 
"USING_IP_MIB_IPV4INTERFACETABLE_IPV4INTERFACETABLE_MODULE"
[ipv4InterfaceTable_check_entry_for_updates]
"USING_IP_MIB_IPV6INTERFACETABLE_IPV6INTERFACETABLE_MODULE"
[ipv6InterfaceTable_check_entry_for_updates]

Above macro are not defined. Once I defined it it crashing.
Somebody could help me regarding the above.

Backtrace is :

warning: Missing the matching library file:
/usr/lib/debug/.build-id/ac/2eeb206486bb7315d6ac4cd64de0cb50838ff6

warning: Missing the matching library file:
/usr/lib/debug/.build-id/07/b722c2a7fed5b96cf4b40ce0f2a06eb0f8d2fc
Core was generated by `./prov_process '.
Program terminated with signal 11, Segmentation fault.
#0 0x08297125 in ipv4InterfaceTable_check_entry_for_updates
(ift_rrc=0x84faa10, entry=0x84fa7a0)
 at
ip-mib/ipv4InterfaceTable/ipv4InterfaceTable_data_access.c:138
138 ip4if_rrc = CONTAINER_FIND(c, ift_rrc);
(gdb) bt
#0 0x08297125 in ipv4InterfaceTable_check_entry_for_updates
(ift_rrc=0x84faa10, entry=0x84fa7a0)
 at ip-mib/ipv4InterfaceTable/ipv4InterfaceTable_data_access.c:138
#1 0x08224652 in _add_new_interface (ifentry=0x84fa7a0,
container=0x84fa0f8) at if-mib/ifTable/ifTable_data_access.c:307
#2 0x082e33ac in netsnmp_binary_array_for_each (c=0x84fa520,
fe=0x82245d2 _add_new_interface, context=0x84fa0f8, sort=1)
 at container_binary_array.c:326
#3 0x082e3358 in _ba_for_each (container=0x84fa520, f=0x82245d2
_add_new_interface, context=0x84fa0f8)
 at container_binary_array.c:524
#4 0x08224858 in ifTable_container_load (container=0x84fa0f8) at
if-mib/ifTable/ifTable_data_access.c:421
#5 0x0822388f in _cache_load (cache=0x84fa098, vmagic=0x84fa0f8) at
if-mib/ifTable/ifTable_interface.c:1847
#6 0x0829e7b1 in _cache_load (cache=0x84fa098) at cache_handler.c:548
#7 0x0829e212 in netsnmp_cache_handler_get (cache=0x84fa098) at
cache_handler.c:274
#8 0x0822230e in _ifTable_initialize_interface (reg_ptr=0x84fa070,
flags=0) at if-mib/ifTable/ifTable_interface.c:361
#9 0x08223bbd in initialize_table_ifTable () at
if-mib/ifTable/ifTable.c:155
#10 0x08223b60 in init_ifTable () at if-mib/ifTable/ifTable.c:99
#11 0x081ee0ee in init_mib_modules () at ./mib_module_inits.h:74
#12 0x081e6a64 in snmpd (args=0x84a76f0) at snmpd.c:1034
#13 0x0079950b in start_thread () from /lib/libpthread.so.0
#14 0x006dab2e in clone () from /lib/libc.so.6
(gdb) 



Rgds,
Sanjay




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


Re: Fwd: Need information to retrieve etherStatsTable parameters from the linux kernel.

2009-11-19 Thread sanjaykumar
Hi,
  see the man page of  ethtool,  google the ethtool for 
more information.
  You can also download the source code for the same.
  I hope this will help you.

Rgds,
Sanjay

srivardhan hebbar wrote:
 Hi All,

 I am trying to implement etherStatsTable of the Rmon mib. I am using 
 Net-SNMP 5.4.2.1. I am implementing it on linux kernel. I can get the 
 values of some parameters from /proc/net/dev. The following are the 
 parameters for which I could not find from where to get the values 
 from the system. Can you guys help me out in this. I would be very 
 greatfull. Thank you in advance.

1. etherStatsDropEvents: The total number of events in which
   packets were dropped by the probe due to lack of resources. Note
   that this number is not necessarily the number of packets
   dropped; it is just the number of times this condition has been
   detected.
2. etherStatsOctets: The total number of octets of data
   (including those in bad packets) received on the network
   (excluding framing bits but including FCS octets).
3. etherStatsBroadcastPkts: The total number of good packets
   received that were directed to the broadcast address.  Note that
   this does not include multicast packets.
4. etherStatsCRCAlignErrors: The total number of packets received
   that had a length (excluding framing bits, but including FCS
   octets) of between 64 and 1518 octets, inclusive, but but had
   either a bad Frame Check Sequence (FCS) with an integral number
   of octets (FCS Error) or a bad FCS with a non-integral number of
   octets (Alignment Error).
5. etherStatsUndersizePkts: The total number of packets received
   that were less than 64 octets long (excluding framing bits, but
   including FCS octets) and were otherwise well formed.
6. etherStatsOversizePkts: The total number of packets received
   that were longer than 1518 octets (excluding framing bits, but
   including FCS octets) and were otherwise well formed.
7. etherStatsFragments: The total number of packets received that
   were less than 64 octets in length (excluding framing bits
   but including FCS octets) and had either a bad Frame Check
   Sequence (FCS) with an integral number of octets (FCS Error) or
   a bad FCS with a non-integral number of octets (Alignment Error).
8. etherStatsJabbers: The total number of packets received that
   were longer than 1518 octets (excluding framing bits, but
   including FCS octets), and had either a bad Frame Check Sequence
   (FCS) with an integral number of octets (FCS Error) or a bad FCS
   with a non-integral number of octets (Alignment Error).
9. etherStatsPkts64Octets: The total number of packets (including
   bad packets) received that were 64 octets in length (excluding
   framing bits but including FCS octets).
   10. etherStatsPkts65to127Octets: The total number of packets
   (including bad packets) received that were between 65 and 127
   octets in length inclusive (excluding framing bits but including
   FCS octets).
   11. etherStatsPkts128to255Octets: The total number of packets
   (including bad packets) received that were between 128 and 255
   octets in length inclusive (excluding framing bits but including
   FCS octets).
   12. etherStatsPkts256to511Octets:
   13. etherStatsPkts512to1023Octets:
   14. etherStatsPkts1024to1518Octets:

 Thank you in advance.

 Srivardhan

 

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
 trial. Simplify your report design, integration and deployment - and focus on 
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 

 ___
 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
   


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


If-Mib modification

2009-11-16 Thread sanjaykumar




Hi All,
 I need to modify the if-mib the way it is implemented.

1. I need to read the "eth0" as index "1" in instead of index "2"
[Usually index "1" is loopback interface in /proc/net/dev" ]
2. other interface should start with index "9" for if_type "
IANAIFTYPE_VOICEOVERCABLE 198",
 [Index 2 to 8 is treaded as reserve]
3. Could anybody has done any modification like that.
Or could you give some idea how I need to proceed ?

Regards,
Sanjay



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


clarification on engine time and engine boots.

2009-10-26 Thread sanjaykumar




Hi All,
 I need a clarification on engine time and engine boots. 
I have situation like this: 
1. I need to send the many[more the one in sequence] inform request
without waiting for response.
2. Each inform request have CURRENT engine time and engine boots.

Question:
 Does snmp manager STORE the current "engine time" and "engine boots".
for every Agent.
If yes then Manager will have "engine time" and "engine
boots" for the REQUESTED AGENT as per the LAST inform request 


Rgds,
Sanjay

 




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


Re: Writing MIB for SNMPv2

2009-10-20 Thread sanjaykumar




Look at SMIv1 and SMIv2 to change the MIB from SNMPv1
to SNMPv2

Tanisha Kashyap wrote:

  
  
  
  
  Hi,
  
  Incase I wish to extend the support from
SNMPv1 to SNMPv2, then do I have to rework my MIB as well?
  In other words, is there a difference in the
MIB for SNMPv1, v2 and v3
  
  Thanks.
  
  
  
  "DISCLAIMER: This message is
proprietary to Aricent and is intended solely for the use of the
individual to whom it is addressed. It may contain privileged or
confidential information and should not be circulated or used for any
purpose other than for what it is intended. If you have received this
message in error,please notify the originator immediately. If you are
not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of
this message. Aricent accepts no responsibility for loss or damage
arising from the use of the information transmitted by this email
including damage from virus."
  
  

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
  

___
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
  





--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


Re: Writing MIB for SNMPv2

2009-10-20 Thread sanjaykumar




Not really 
But SMIv2 is getting used for write the MIB
If your MIB has defined as per SMIv1 standard then I think u should
modify
otherwise not required 
SNMP version amd MIB version two different concept.


Tanisha Kashyap wrote:

  
  

  
  
  Does this
imply that MIB is SNMP version specific?
  

NO

  
  
  
  
  
  
  From:
sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com] 
  Sent: Tuesday, October
20, 2009 12:48 PM
  To: Tanisha Kashyap
  Cc: Net-snmp-users@lists.sourceforge.net
  Subject: Re: Writing
MIB for SNMPv2
  
  
  Look at SMIv1 and SMIv2 to
change the MIB from SNMPv1 to SNMPv2
  
  Tanisha Kashyap wrote: 
  Hi,
  
  Incase I wish to extend the
support from SNMPv1 to SNMPv2, then do I have to rework my MIB as well?
  In other words, is there a
difference in the MIB for SNMPv1, v2 and v3
  
  Thanks.
  
  
  
  "DISCLAIMER:
This message is proprietary to Aricent and is intended solely for the
use of the individual to whom it is addressed. It may contain
privileged or confidential information and should not be circulated or
used for any purpose other than for what it is intended. If you have
received this message in error,please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus."
  
  
  
  




  
  --
  Come build with us! The BlackBerry(R) Developer Conference in SF, CA
  is the only developer event you need to attend this year. Jumpstart your
  developing skills, take BlackBerry mobile applications to market and stay 
  ahead of the curve. Join us from November 9 - 12, 2009. Register now!
  http://p.sf.net/sfu/devconference
  
  




  
  ___
  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
   
  
  
  
  
  "DISCLAIMER: This message is
proprietary to Aricent and is intended solely for the use of the
individual to whom it is addressed. It may contain privileged or
confidential information and should not be circulated or used for any
purpose other than for what it is intended. If you have received this
message in error,please notify the originator immediately. If you are
not the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the contents of
this message. Aricent accepts no responsibility for loss or damage
arising from the use of the information transmitted by this email
including damage from virus."
  





--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


problem regarding the getting the RESPONSE from snmptrapd

2009-10-20 Thread sanjaykumar




Help required . 

Hi All,
 I have a facing a problem regarding the getting the
"RESPONSE" from snmptrapd
 I am sending INFORM request and immediately I got the
REPORT as "NOT IN TIME WINDOW"
 After that function "snmp_resend_request(slp,
rp, TRUE); " [snmp_api.c] get called and 
 response is received as OBSERVE in wireshark[ethreal]
capture.
 [ I compare the request ID in send-inform and get-response
and I find both are same ]

 I have a query which variable or flag will be updated, once
response will be received for a particular
request ID
  and which data structure will be updated once RESPONSE will be
received ???


Rgds,
Sanjay

 




--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


Re: SNMPERR_NOT_IN_TIME_WINDOW

2009-10-16 Thread sanjaykumar
onds? probably also implementation specific), the agent will send a
usmNotInTimeWindows error to the manager.

So this error is most likely due to your manager not keeping updated
values of snmpEngineTime and snmpEngineBoots.

-- Nate


  
-Original Message-
From: sanjaykumar [mailto:sanjay.ku...@globaledgesoft.com]
Sent: Thursday, October 15, 2009 7:12 AM
To: net-snmp-users@lists.sourceforge.net
Subject: SNMPERR_NOT_IN_TIME_WINDOW

Hi All,
  I very frequently get the error
"SNMPERR_NOT_IN_TIME_WINDOW".

What are the reason for this ???
where shall I look to resolve this issue ??
Does it depends on the current time of agent and manager system  ???

Regards,
Sanjay



  
  ---

  
---
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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

  
  







--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference___
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


SNMPERR_NOT_IN_TIME_WINDOW

2009-10-15 Thread sanjaykumar
Hi All,
  I very frequently get the error   
SNMPERR_NOT_IN_TIME_WINDOW.

What are the reason for this ???
where shall I look to resolve this issue ??
Does it depends on the current time of agent and manager system  ???

Regards,
Sanjay

--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
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


query on function family netsnmp_ds_get_string

2009-10-06 Thread sanjaykumar




Hi All, 
 I am trying to bind the port "162" receive the inform
response form server(PACT Server).
but it is failing in snmpUDPDomain.c at the below line :
client_socket = netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID,

NETSNMP_DS_LIB_CLIENT_ADDR); 

Basically I am getting the NULL as
"client_socket". 

Code for reference:

client_socket = netsnmp_ds_get_string(NETSNMP_DS_LIBRARY_ID,

NETSNMP_DS_LIB_CLIENT_ADDR); 
if (client_socket) {
 struct sockaddr_in client_addr;
 netsnmp_sockaddr_in2(client_addr, client_socket, NULL);
 addr_pair.local_addr = client_addr.sin_addr;
 /* client_addr.sin_port = 0;*/
 client_addr.sin_port =
htons(SNMP_TRAP_PORT); /* This is modified to bind the trap port*/
 rc = bind(t-sock, (struct sockaddr *)client_addr,
 sizeof(struct sockaddr));
 if ( rc != 0 ) {
 DEBUGMSGTL(("netsnmp_udp", "failed to bind for
clientaddr: %d %s\n",
 errno, strerror(errno)));
 netsnmp_udp_close(t);
 netsnmp_transport_free(t);
 return NULL;
 }
 }

==
Could somebody help me to understand the concept of "function family"
"netsnmp_ds_get_string". 
When does we need to set the required combination as above ?
Or we need to set some other combination to bind the "SNMP_TRAP_PORT"
???

Thanks and Regards,
Sanjay






--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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


snmptrapd and snmpinform

2009-10-06 Thread sanjaykumar
Hi All,
 I have a doubt regarding the binding of port 162.
suppose I am sending to snmpinform to a remote  172.16.8.127[snmp manager]
 from  172.16.8.83[snmp agent]
As snmptrap is running on the snmp manager  172.16.8.127
Assume everything is fine and it has responded the request.

Does it necessary that snmptrapd should be running on snmp_agent 
[172.16.8.83]  to receive the inform response ?

Thanks  Regards,
Sanjay

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
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


Re: Handling the inform request

2009-09-24 Thread sanjaykumar




Wes Hardaker wrote:

  

  

  
On Wed, 23 Sep 2009 12:54:10 +0530, sanjaykumar sanjay.ku...@globaledgesoft.com said:

  

  

  
  
s what about the different API available in agent/agent_trap.c ?

If you're writing code within the agent, you should be using the agent's
API for sending traps.  See the agent/mibgroup/examples/notification.c
for an example.
  

Thanks a lot for the reply.
But, here snmptrapd demean will have to running to receive the
NOTIFICATION (TRAP) response. or Agent will also handle the response ?
What if we don't have snmptrapd is running, 
As I am running the agent code as a "thread" as a part of my
Application.
So to receive the notification does I need to run snmptrapd as a thread,
or response of notification can also received at "select" in "receive"
function in snmpd.c

Regards,
Sanjay




--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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


Handling the inform request

2009-09-23 Thread sanjaykumar




Hi All,
 I have a expecting to handle the inform Request, as per
the my requirement.
Presently I am handling it using snmptrap.c under "app".
But I am facing the problem of having two "select" system call, one in
agent/snmpd.c and another snmplib/snmp_client.c .
As per my requirement I am planning to handle the trap/inform request
at "select" in snmpd.c (in receive function).
Is there any API that help me do that ?
what about the different API available in agent/agent_trap.c ?
Does it will be useful the above requirement ?

Regards,
Sanjay






--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf___
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


Re: How to make snmpd as init_snmpd

2009-08-31 Thread sanjaykumar
rename the function main() in snmpd.c as  to required  function nane , 
comment out fork() in same file.
If you a going to invoke it as thread, lot of work is ahead.

Darshan Ghumare wrote:
 Hi all,
  I want to make snmpd (daemon) as a part of my code. So it 
 will be like SNMP-Agent  is one of the sub-module of my project but 
 not as a separate process. How should I go about it?
  
 Thank you.
  
 Regards
 Darshan

 -- 
 Darshan®
 Marie von Ebner-Eschenbach 
 http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html 
  - Even a stopped clock is right twice a day.
 

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
 trial. Simplify your report design, integration and deployment - and focus on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 

 ___
 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
   


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


regarding handling of EINTR in receive() function in snmpd.c

2009-08-27 Thread sanjaykumar




Hi All, 
 I have a doubt regarding handling of " EINTR" in
"receive()" function in "snmpd.c" 

Why does it required to handle the this Interrupt ?
what will be impact if I will not remove i.e.
stop Handling it ?
Does any Basic functionalities get effected ?

The way I handling ?

switch (count) {
 case 0:
 snmp_timeout();
 break;
 case -1:
 DEBUGMSGTL(("snmpd/select", " errno = %d\n", errno));
 if (errno == EINTR) {
 /*
 * likely that we got a signal. Check our special
signal
 * flags before retrying select.
 */
 if (netsnmp_running  !reconfig) {
  goto reselect;
 }
  continue; /*If I will COMMENT THIS statement what will
be effect on functionalities*/
 } else {
 snmp_log_perror("select");
 }
 return -1;


Rgds,
Sanjay




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


Wrong engine time on Big endian platform

2009-08-21 Thread sanjaykumar
Hi all,
   I am wrong ENGINE TIME while running the net-snmp-5.4.2.1 on 
mibs platform.
But currect value on x86 platform.

Does I need to enable some option for that.

what could be reason for that

Rgds,
Sanjay

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Wrong engine time on Big endian platform

2009-08-21 Thread sanjaykumar
Hi all,
   [SMALL CORRECTION ]

   I am wrong ENGINE TIME while running the net-snmp-5.4.2.1 on MIPS 
PLATFORM 
  (/_Under msgAuthorative EngineID in wireshark capture  Engine ID 
Data : Creation Tine)_/
But I am  getting currect value on x86 platform.

Does I need to enable some option for that.

I think it is because of endianness problem
But I am able to find where to modify.
I have change the endiannees of return value of function 
snmpv3_local_snmpEngineTime()
But It is not working.
For inform request and set/get request there is mismatch in value ???

Rgds,
Sanjay



sanjaykumar wrote:
 Hi all,
I am wrong ENGINE TIME while running the net-snmp-5.4.2.1 on 
 mibs platform.
 But currect value on x86 platform.

 Does I need to enable some option for that.

 what could be reason for that

 Rgds,
 Sanjay




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: engineIDType = ENGINEID_TYPE_NETSNMP_RND

2009-08-20 Thread sanjaykumar
Hi Dave,
   Actually I am getting wrong engine TIME in wireshark capture
  I am reading the engine Time using the function 
snmpv3_local_snmpEngineTime()
While I was debugging the code I had the some doubt, It might be 
engineType which affecting it.


What could be the reason of wrong Engine Creation Time. It is showing 
sometime 2191 or sometme 1909 ...
 
rgds,
Sanjay


Dave Shield wrote:
 2009/8/18 sanjaykumar sanjay.ku...@globaledgesoft.com:
   
 As netsnmp-5.4.2.1 has by default set the engine id as
 engineIDType = ENGINEID_TYPE_NETSNMP_RND

 But I have a doubt regarding the above.

 What should be default type ?
 

 That is a perfectly sensible choice of engineID algorithm.
 It's worked well for many years now. Why do you think
 there is a problem?


   
 as we have other options also as below
 #define ENGINEID_TYPE_IPV41
 #define ENGINEID_TYPE_IPV62
 #define ENGINEID_TYPE_MACADDR 3
 #define ENGINEID_TYPE_TEXT4
 

 These correspond to the mechanisms defined in RFC 3411.
 The first three are tightly linked to the network configuration
 of the local system.   Changes to network hardware (for
 example) could require a complete re-configuration of
 your network management systems.



   
 On what basic we need to decide what should be the engine ID type ?
 

 Is there any good reason for changing the current approach?
 If it's not broken, why fix it?

 Dave

   


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


engineIDType = ENGINEID_TYPE_NETSNMP_RND

2009-08-18 Thread sanjaykumar
Hi All, 
 As netsnmp-5.4.2.1 has by default set the engine id as  
engineIDType = ENGINEID_TYPE_NETSNMP_RND

But I have a doubt regarding the above.

What should be default type ?
as we have other options also as below
#define ENGINEID_TYPE_IPV41
#define ENGINEID_TYPE_IPV62
#define ENGINEID_TYPE_MACADDR 3
#define ENGINEID_TYPE_TEXT4
#define ENGINEID_TYPE_NETSNMP_RND 128

On what basic we need to decide what should be the engine ID type ?

rgd,
sanjay

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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


Re: problem while installing the netsnmp-5.4.2.1 on fedora core 8

2009-08-11 Thread sanjaykumar




Thanks Dave it work with configuration what you have suggested 

Thanks
sanjay

Dave Shield wrote:

  2009/8/11 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
Hi All,

I am facing the problem while installing the netsnmp-5.4.2.1 on fedora core 8
Step 1:
./configure --enable-internal-md5 --enable-ipv6 --disable-embedded-perl
--disable-perl-cc-checks

  
  
It looks suspiciously as if you don't have perl installed on your system.
(The file 'Config.pm' is part of the core perl RPM)

Try
./configure --enable-internal-md5  --enable-ipv6 --without-perl-modules

That *ought* to omit the perl modules altogether (though quick tests throw
some doubt on that).   Otherwise, tweak the Makefile to omit "perlmodules"
from the "all" rule.


Dave

  





--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


regarding following two options retries and timeout under snmpcmd

2009-08-11 Thread sanjaykumar




Hi All, 
 I am going through the snmpcmd options: 
   I have some doubt regarding following two options under "man
snmpcmd"
 1.
 -r retries
 Specifies the number of retries to be used in the
requests. The default is 5.
2.
 -t timeout
 Specifies the timeout in seconds between retries. The
default is 1.

Does these option are part of "snmpTargetAddrTable" (rfc 3413) ?
or it is netsnmp internal(proprietary) configuration. ?
Assume if I give the "snmpinform" command with these options, where in
CODE it will store, 
and how does it work with "TIMEOUT" and "RETRIES" 
Any help regarding will be appreciated 

Rgds,
Sanjay




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


NETSNMP_TRANSPORT_CALLBACK_DOMAIN

2009-07-30 Thread sanjaykumar




Hi All,
I have a small issue regarding the CALLBACK : 
there is a macro  "NETSNMP_TRANSPORT_CALLBACK_DOMAIN"
I am expecting some basic about this.
there is a file "snmpCallbackDomain.c"
under the above MACRO.

Can I disable this MACRO ?
What will be overall effect if I will disable this MACRO.


Rgds, 
Sanjay







--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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


Openssl library version required for net-snmp

2009-07-18 Thread sanjaykumar
Hi All,
I am using the Net-Snmp-5.4.2.1
I am using the openssl library to support the privacy.
presently i have 0.9.8e
But I am able to find which MINIMUM version of openssl 
library is used by net-snmp for
high level of security.

OpenSSL 0.9.7 or OpenSSL 0.9.8 or some latest version
can it will work with some older version of openssl.
Please suggest me for the above

Thanks and Regards,
Sanjay

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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


session timeout

2009-07-15 Thread sanjaykumar
Hi all,

  What should be the in general session timeout for snmpinform 
request ?

 In  Which rfc this has bben specified ?

Rgds,
Sanjay

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
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


unknown encryptionPDU

2009-06-17 Thread sanjaykumar
Hi,
   I trying to  send the inform request as AUTHPRIV 
but I am getting unknown encryptionPDU in CAPTURE ...
 When I sending the key I find the SEND key is currect.
As AUTHNOPRIV is wotking fine
So I am expecting some help where could we problem.

CODE  in snmpusm.c where I find KEY IS CURRECT
I am using DES for encryption hence AES part I have disable.


printf(\n Priv key  \n);
for(i=0;i16;i++)
printf( %x,thePrivKey[i]);

if (sc_encrypt(thePrivProtocol, thePrivProtocolLength,
   thePrivKey, thePrivKeyLength,
   salt, salt_length,
   scopedPdu, scopedPduLen,
   ciphertext, ciphertextlen) != SNMP_ERR_NOERROR) {
printf(\n ebcrypt error \n);
DEBUGMSGTL((usm, encryption error.\n));
usm_free_usmStateReference(secStateRef);
SNMP_FREE(ciphertext);
return SNMPERR_USM_ENCRYPTIONERROR;



--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
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


AUTHPRIV enabled

2009-06-17 Thread sanjaykumar




Hi All,

 I trying to send the inform request with AUTHPRIV enabled 
but In Etheral capture I am getting "encryptedPDU:
privKey Unknown" but I am not getting any report
Does It means when we use the AUTHPRIV 
then we will get the CAPTURE like "encryptedPDU:
privKey Unknown" because of encryption

or this is wrong packet and it is coming because of "encryption FAIL"

when I use AUTHNOPRIV, everything is working fine and able to get
correct packet 

Please let me know does we able to capture the exact packet when
ENCRYPTION is support ?


Rgds,
Sanjay






--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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


REVERSE_ASNENCODING

2009-06-15 Thread sanjaykumar




Hi All,
 I have come across the following two MACRO:
#define NETSNMP_USE_REVERSE_ASNENCODING 1
#define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 =
forwards */ 
Please somebody let me know what is ACTUAL use of this macro.
Dees it explicitly required ? 
If i will disable I have to disable both ??
LiKE:
#define NETSNMP_USE_REVERSE_ASNENCODING 0
#define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 0 /* 1 = reverse, 0 =
forwards */ 

or ??
how can I disable ?
Rgds,
Sanjay



--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
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


compilation on MIPS platform

2009-05-21 Thread sanjaykumar





Hi
All
I am compiling the net snmp 5.4.2.1 for mips platform
  
I have configure snmpd.conf at "/usr/share/snmp/snmpd.conf" as 
  

  rwuser gesl
authpriv 
createUser gesl MD5 gesl1234 DES gesl1234 
#com2sec gesl123 "" ropc 
#group ges_pktc usm gesl 
#view gesl_view excluded sysUpTime.0 
#view if_view included sysUpTime.0 
#view ges_view included .1 
#access ges_pktc "" usm authpriv exact gesl_view none none
#access ges_pktc "" usm authpriv exact if_view none none 
 
# rouser: a SNMPv3 read-only user 
# arguments: user [noauth|auth|priv] [restriction_oid] 
 
  rouser pc123
auth 
createUser pc123 MD5 gesl1234 
 
# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]
 
rocommunity ropc 
 
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
# arguments: community [default|hostname|network/bits] [oid]
  

  
I am able to do the walk when we give the means ONLY Auth
snmpwalk -v 3 -u pc123 -l auth -a MD5 -A gesl1234 172.16.8.153:161 .
  
But when I do the walk as 
snmpwalk -v 3 -u gesl -l authpriv -a MD5 -A gesl1234 -x DES -X
gesl1234 172.16.8.153:161 .
  
means with AUTH and PRIV 
we are not able to walk and it giving Encryption support is not enable
  
  Does we need to PROVIDE any option to enable
the
"Encryption" at time of cross compilation ??
  
==
  
snmpwalk -v 3 -u gesl -l authpriv -a MD5 -A gesl1234 -x DES -X
gesl1234 172.16.8.153:161 .
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (IP-FORWARD-MIB): At line 0 in (none)
Cannot find module (NET-SNMP-EXTEND-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
Cannot find module (NET-SNMP-VACM-MIB): At line 0 in (none)
  Encryption support not enabled.
snmpwalk: USM encryption error (Sub-id not found: (top) - )
# ==
  
While configuration we are giving following command:
  ./configure --host=mips-linux --prefix=/nfsroot/usr
--with-endianness=big --disable-perl --disable-embedded-perl
--disable-perl-cc-checks --without-perl-modules install_perl="no"
  
  
  
Thanks and regards,
Sanjay Kumar
  
  
  
  





--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
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


Re: compilation on MIPS platform

2009-05-21 Thread sanjaykumar




Thanks a lot 
But could you help me out How to enable the "OPENSSL" option
As there is openssl lib is present in "/usr/lib/..."

Rgds,
Sanjay Kumar


Thomas Anders wrote:

  sanjaykumar wrote:
  
  

  Does we need to PROVIDE any option to enable the "Encryption"   at
time of cross compilation ??
  

  
  
You need OpenSSL (at compile time) to enable privacy (encryption) support.


+Thomas

  





--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
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


Agent Shutdown problem

2009-05-07 Thread sanjaykumar




Hi all, 

I am running the netsnmp 5.4.2.1 as thread 
1 : 
I am facing the problem while my application reboot so snmp thread
should also
Most of shutdown problem is occurs in mib module 
Basically when application reboot then it facing problem in "init_mib_modules()"
and it crash.
Backtrace show that most of crash come after "netsnmp_container_get_ct"
I run the valgrind and getting most of the same problem
Could anybody suggest what could be reason of this crash ???
One of Backtrace for the reference :

***
#0 0x0811f416 in netsnmp_container_get_ct (type=0x82b63e8
"udpEndpointTable") at container.c:189
#1 0x0811f489 in netsnmp_container_find_ct (type_list=0x81c57dc
"udpEndpointTable:table_container") at container.c:208
#2 0x0811f539 in netsnmp_container_find (type=0x81c57dc
"udpEndpointTable:table_container") at container.c:240
#3 0x0810c717 in _udpEndpointTable_container_init (if_ctx=0x81e6fc0)
 at udp-mib/udpEndpointTable/udpEndpointTable_interface.c:1031
#4 0x0810b9a9 in _udpEndpointTable_initialize_interface
(reg_ptr=0x82b6460, flags=0)
 at udp-mib/udpEndpointTable/udpEndpointTable_interface.c:191
#5 0x080ee798 in shutdown_table_udpEndpointTable () at
udp-mib/udpEndpointTable/udpEndpointTable.c:130
#6 0x080ee743 in shutdown_udpEndpointTable () at
udp-mib/udpEndpointTable/udpEndpointTable.c:76
#7 0x080df91f in init_mib_modules () at ./mib_module_inits.h:100
#8 0x080d5448 in snmpd (args=0x82b6498) at snmpd.c:1016
#9 0xb7d7f1b3 in start_thread () from /lib/libpthread.so.0
#10 0xb7e6103e in clone () from /lib/libc.so.6



2 :
While application shutdown "
snmp_shutdown(app_name)" getting called 
what about the " shutdown_master_agent() and
 shutdown_agent()" 
How the respective functionalities achieved by AGENT as in code it
maintained that 
it cause the broken code 
respective code for the reference : 
***
snmp_shutdown(app_name);
#ifdef SHUTDOWN_AGENT_CLEANLY /* broken code */
 /* these attempt to free all known memory, but result in double
frees */
 shutdown_master_agent();
 shutdown_agent();
#endif

**


Thanks and best regards,
Sanjay Kumar



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com___
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


Agentx Support

2009-04-29 Thread sanjaykumar
Hi,
  I am configuring the netsnmp-5.4.2.1
I doesn't required the agentX support at all.
what option I need to pass to configure


rgds,
Sanjay

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
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


IF-MIB under netsnmp-5.4.2.1

2009-04-21 Thread sanjaykumar
Hi,
 I am going through the IF-MIB implementation under netsnmp-5.4.2.1
I find it read the /proc/net/dev file
What will happen on the embedded device ?
Does it list out all the interface present on the device ?
Or it will read only the interface under the ethernet card ?

Rgds,
Sanjay

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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


To implement the snmpTargetAddrExttable as per the rfc3584.

2009-04-17 Thread sanjaykumar
Hi,
I am looking to implement the snmpTargetAddrExttable as per the rfc3584.

Could anyone anyone tell which mib config shall I use ?
Or does any Patch is available for this ?

Rgds,
Sanjay

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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


snmpNotifyFilterTable as per net-snmp 5.4.2.1

2009-04-17 Thread sanjaykumar
Hi,
 I am using net snmp version 5.4.2.1
As I found that the code is  available for snmpNotifyFilterTable
but when do the  snmpwalk or snmpget then I following error is displaying
SNMP-NOTIFICATION-MIB::snmpNotifyFilterTable = No Such Object available 
on this agent at this OID
Does that mean code is not implemented for this TABLE ?

It is working fine with other table or scalar

Rgds,
Sanjay

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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


Rowstatus creation

2009-04-17 Thread sanjaykumar
HI,
Consider the following scenario:

Table 1

column 1: (Mandatory)
column 2: (Default)
column 3: (Mandatory)
column 4: (Row status)

Let us assume there are no rows in the table.
snmpset . localhost column1.index i 10 column4.index

The agent receives the set command with the only one object column1 with 
no ROWSTATUS.

Will the above command succeed in creating a row?
if  it is creating the row  what is the row status value?


Thanks
sanjay

--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
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


Re: Rowstatus creation

2009-04-17 Thread sanjaykumar




I am very sorry that question was wrongly framed, it was like this
Consider the following scenario:


Table 1



column 1: (Mandatory)

column 2: (Default)

column 3: (Mandatory)

column 4: (Row status)


Let us assume there are no rows in the
table.

snmpset . localhost column1.index i 10

The agent receives the set command with the only one object column1
with no ROWSTATUS.


Will the above command succeed in creating a row?

if it is creating the row what is the row status value?



Rgds,
Sanjay

Dave Shield wrote:

  2009/4/17 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
column 1: (Mandatory)
column 2: (Default)
column 3: (Mandatory)
column 4: (Row status)

Let us assume there are no rows in the table.
snmpset . localhost column1.index i 10 column4.index

  
  
  Error:  there is no type or value given for the assignment to "column4.index"


  
  
The agent receives the set command with the only one object column1 with
no ROWSTATUS.

  
  
But you have listed an (incomplete) assignment to the RowStatus column4
above.



  
  
Will the above command succeed in creating a row?
if it is creating the row what is the row status value?

  
  
Normally, if there is no RowStatus assignment in the SET request,
then the row will *not* be created.

Dave

  





--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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


regarding the snmpNotifyFilterTable

2009-04-17 Thread sanjaykumar




Hi,

 I have a doubt regarding the "snmpNotifyFilterTable" 

I am trying to initialize the table with some default value
As i am going through the code, 
which of the following function will be appropriate to initialize the
value of the table
---
int
snmpNotifyFilterTable_rowreq_ctx_init(snmpNotifyFilterTable_rowreq_ctx *
 rowreq_ctx, void *user_init_ctx)
---
snmpNotifyFilterTable_rowreq_ctx *
snmpNotifyFilterTable_allocate_rowreq_ctx(void *user_init_ctx)
---

snmpNotifyFilterTable_data *
snmpNotifyFilterTable_allocate_data(void)
--

The definition of function I have copied for the quick reference 


int
snmpNotifyFilterTable_rowreq_ctx_init(snmpNotifyFilterTable_rowreq_ctx *
 rowreq_ctx, void *user_init_ctx)
{
int
snmpNotifyFilterTable_rowreq_ctx_init(snmpNotifyFilterTable_rowreq_ctx *
 rowreq_ctx, void *user_init_ctx)
{

DEBUGMSGTL(("verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_rowreq_ctx_init",
"called\n"));

 netsnmp_assert(NULL != rowreq_ctx);

 /*
 * TODO:210:o: |- Perform extra snmpNotifyFilterTable rowreq
initialization. (eg DEFVALS)
 */
 /*
 * strings and oids are hard to handle automagically.
 * so all we've got for you is a hint:
 *
 * memcpy(rowreq_ctx-data.snmpNotifyFilterMask, 0,
 * len(0) * sizeof(snmpNotifyFilterMask[0]);
 */

 rowreq_ctx-data.snmpNotifyFilterType =
SNMPNOTIFYFILTERTYPE_INCLUDED;

 rowreq_ctx-data.snmpNotifyFilterStorageType =
STORAGETYPE_NONVOLATILE;


 return MFD_SUCCESS;
} 

==

/*
*
* @internal
* allocate resources for a snmpNotifyFilterTable_rowreq_ctx
*/
snmpNotifyFilterTable_rowreq_ctx *
snmpNotifyFilterTable_allocate_rowreq_ctx(void *user_init_ctx)
{
 snmpNotifyFilterTable_rowreq_ctx *rowreq_ctx =
 SNMP_MALLOC_TYPEDEF(snmpNotifyFilterTable_rowreq_ctx);


DEBUGMSGTL(("internal:snmpNotifyFilterTable:snmpNotifyFilterTable_allocate_rowreq_ctx",
"called\n"));

 if (NULL == rowreq_ctx) {
 snmp_log(LOG_ERR, "Couldn't allocate memory for a "
 "snmpNotifyFilterTable_rowreq_ctx.\n");
 return NULL;
 }

 rowreq_ctx-oid_idx.oids = rowreq_ctx-oid_tmp;

 rowreq_ctx-snmpNotifyFilterTable_data_list = NULL;

 /*
 * if we allocated data, call init routine
 */
 if (!(rowreq_ctx-rowreq_flags  MFD_ROW_DATA_FROM_USER)) {
 if (SNMPERR_SUCCESS !=
 snmpNotifyFilterTable_rowreq_ctx_init(rowreq_ctx,
 user_init_ctx)) {
 snmpNotifyFilterTable_release_rowreq_ctx(rowreq_ctx);
 rowreq_ctx = NULL;
 }
 }

 return rowreq_ctx;
} 

==

snmpNotifyFilterTable_data *
snmpNotifyFilterTable_allocate_data(void)
{
 snmpNotifyFilterTable_data *rtn =
 SNMP_MALLOC_TYPEDEF(snmpNotifyFilterTable_data);


DEBUGMSGTL(("verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_allocate_data",
"called\n"));

 if (NULL == rtn) {
 snmp_log(LOG_ERR, "unable to malloc memory for new "
 "snmpNotifyFilterTable_data.\n");
 }

 return rtn;
} /* snmpNotifyFilterTable_allocate_data
*/





Thanks and Best Regards,
Sanjay




--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
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


to create a ROW in a TABLE of Type ROW-STATUS.

2009-04-15 Thread sanjaykumar
Hi All,

I am looking to create a ROW in a TABLE of Type ROW-STATUS.

How does we give the set request to snmp agent , i.e,  snmpset 
command  to create a row in a table ?
How the order of column (different parameter of the Table) in snmpset 
command will be extracted  by snmpagent ?

Any other information about the same that could be helpful .


Rgds,
Sanjay


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


problem with snmpwalk on ipNetToPhysicalTable

2009-04-14 Thread sanjaykumar




Hi All,

I am looking to the ipNetToPhysicalTable (inetNetToMediaTable)
I am doing the snmp-walk on the above table, I am observe that
following onject are not display
Could you suggest me, Is there any internal (in code) setting for that

	  ipNetToPhysicalIfIndex InterfaceIndex,
ipNetToPhysicalNetAddressType  InetAddressType,
ipNetToPhysicalNetAddress  InetAddress,
ipNetToPhysicalLastUpdated TimeStamp,


Following is snmpwalk result:

IP-MIB::ipNetToPhysicalPhysAddress.2.ipv4."172.16.8.1" = STRING: 
IP-MIB::ipNetToPhysicalPhysAddress.2.ipv4."172.16.8.100" = STRING: 
IP-MIB::ipNetToPhysicalPhysAddress.2.ipv4."172.16.8.145" = STRING: 
IP-MIB::ipNetToPhysicalType.2.ipv4."172.16.8.1" = INTEGER: 0
IP-MIB::ipNetToPhysicalType.2.ipv4."172.16.8.100" = INTEGER: 0
IP-MIB::ipNetToPhysicalType.2.ipv4."172.16.8.145" = INTEGER: 0
IP-MIB::ipNetToPhysicalState.2.ipv4."172.16.8.1" = INTEGER: 0
IP-MIB::ipNetToPhysicalState.2.ipv4."172.16.8.100" = INTEGER: 0
IP-MIB::ipNetToPhysicalState.2.ipv4."172.16.8.145" = INTEGER: 0
IP-MIB::ipNetToPhysicalRowStatus.2.ipv4."172.16.8.1" = INTEGER:
active(1)
IP-MIB::ipNetToPhysicalRowStatus.2.ipv4."172.16.8.100" = INTEGER:
active(1)
IP-MIB::ipNetToPhysicalRowStatus.2.ipv4."172.16.8.145" = INTEGER:
active(1)


Regards,
Sanjay



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re: problem with snmpwalk on ipNetToPhysicalTable

2009-04-14 Thread sanjaykumar
i need to update the ipNetToPhysicalPhysAddress  with my application 
specific mac-address and not with my machine(where snmp agent is 
running) mac-address. So which API can i use to do this or how can i 
update this.


rgds,
sanjay
Dave Shield wrote:
 2009/4/14 sanjaykumar sanjay.ku...@globaledgesoft.com:
   
 I am looking to the ipNetToPhysicalTable
 I am observe that following object are not display

ipNetToPhysicalIfIndex InterfaceIndex,
 ipNetToPhysicalNetAddressType  InetAddressType,
 ipNetToPhysicalNetAddress  InetAddress,
 

 That is correct.
 These three (index) objects are defined as not-accessible,
 so won't be included in the output of snmpwalk.
 You can obtain the relevant values from the OIDs of the
 other (accessible) MIB objects.


   
 ipNetToPhysicalLastUpdated TimeStamp,
 

 That ought to be included.   But I suspect that this information
 may not be available from the underlying O/S, and hence the
 agent cannot report it.

 Dave

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 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

   


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


baby_steps helpers

2009-04-13 Thread sanjaykumar
Hi All,
   Presently I am somewhat exploring the net-snmp5.4.2.1
I got the doubt on baby_steps helpers.

Could somebody will tell me what is basic functionalities of baby_steps 
related function ?
How decision made on selection of  baby_steps mode  ?
What does mean the run-time injectable handler for configuration file ?

Thanks and  Best Regards,
Sanjay Kumar

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


Error to retrieve the value of Ethernet Object

2009-04-13 Thread sanjaykumar




Hi All,
I am trying to walk on the following object, Following error I am
facing 
Someone could u help me out regarding this: 

snmpwalk -v 2c -c public -n "" localhost .1.3.6.1.2.1.10
SNMPv2-SMI::transmission = No Such Object
available on this agent at this OID


but working fine with other mibs like 
snmpwalk -v 2c -c public -n "" localhost .1.3.6.1.2.1.3
RFC1213-MIB::atIfIndex.2.1.172.16.10.1 = INTEGER: 2
RFC1213-MIB::atPhysAddress.2.1.172.16.10.1 = Hex-STRING: 00 0D 88 69 3C
02 
RFC1213-MIB::atNetAddress.2.1.172.16.10.1 = Network Address: AC:10:0A:01

When I did the nm to nm /usr/local/lib/libnetsnmpmibs.a
I am following ".o" file 

dot3StatsTable.o:
 U debugmsg
 U debugmsgtoken
 U _dot3StatsTable_initialize_interface
 D dot3StatsTable_oid
0024 D dot3StatsTable_oid_size
0348 T dot3StatsTable_post_request
02c8 T dot3StatsTable_pre_request
0218 T dot3StatsTable_rowreq_ctx_cleanup
0164 T dot3StatsTable_rowreq_ctx_init
 U _dot3StatsTable_shutdown_interface
0010 C dot3StatsTable_user_context
 T init_dot3StatsTable
00bc T initialize_table_dot3StatsTable
 U netsnmp_create_data_list
 U should_init
0098 T shutdown_dot3StatsTable
0150 T shutdown_table_dot3StatsTable
 U snmp_get_do_debugging
 U snmp_log

dot3StatsTable_interface.o:
 U build_oid_noalloc
 U calloc
0e20 t _container_free
0d84 t _container_item_free
 U debugmsg
 U debugmsgtoken
 U dot3StatsAlignmentErrors_get
 U dot3StatsCarrierSenseErrors_get
 U dot3StatsDeferredTransmissions_get
 U dot3StatsDuplexStatus_get
 U dot3StatsEtherChipSet_get
 U dot3StatsExcessiveCollisions_get
 U dot3StatsFCSErrors_get
 U dot3StatsFrameTooLongs_get
 U dot3StatsInternalMacReceiveErrors_get
 U dot3StatsInternalMacTransmitErrors_get
 U dot3StatsLateCollisions_get
 U dot3StatsMultipleCollisionFrames_get
 U dot3StatsRateControlAbility_get
 U dot3StatsRateControlStatus_get
 U dot3StatsSingleCollisionFrames_get
 U dot3StatsSQETestErrors_get
 U dot3StatsSymbolErrors_get
0534 T dot3StatsTable_allocate_rowreq_ctx
 U dot3StatsTable_container_free
 T dot3StatsTable_container_get
0f04 t _dot3StatsTable_container_init
 U dot3StatsTable_container_init
0fc4 t _dot3StatsTable_container_shutdown
 U dot3StatsTable_container_shutdown
002c T dot3StatsTable_container_size
10b4 t _dot3StatsTable_get_column
 b dot3StatsTable_if_ctx
0450 T dot3StatsTable_index_from_oid
0354 T dot3StatsTable_index_to_oid
 U dot3StatsTable_init_data

59,1 0%
...



Rgds,
Sanjay



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re: concept like container and helpers

2009-04-10 Thread sanjaykumar




Fair enough on "helpers"
I am looking for some more clarification.

Is there particular stages (kind of state machine) of different
"*chain* of handlers".
How does we come to know which handlers need to "USE"
Could you explain me a little bit about the "handler concept"

Thanks and Best Regards,
Sanjay Kumar

Dave Shield wrote:

  2009/4/9 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
Now we can go ahead with "Helpers" concept.

  
  
OK.   It's time for your history lesson

Way back in the mists of time, when the first Net-SNMP release
was made,  one of the most obvious changes from the previous
UCD (v4) code was the introduction of "MIB handlers".

At first sight, these seemed broadly similar to the earlier
"var_xxx()" API - this is the routine that's called to process
a request for a particular group of MIB objects (a table,
group of scalars, whatever).   But there were a couple of
significant differences between the two styles.

The more visible change was that the v5 handler would be passed
*all* of the relevant varbinds from the request, rather than dealing
with these one at a time.

But the more deeply significant change was that the handler
processing actually invoked a *chain* of handlers - each one
performing some set of actions, and then passing the request
on to the next handler in the chain  (similar to the idea of a
Unix pipeline of commands).  The visible "MIB handler" is
simply the last link in this chain.

The preceeding handlers are each designed to take core of a
certain aspect of the overall processing - handling it automatically
before the request reaches the eventual MIB handler.   This helps
by removing functionality (and hence code) from the stuff that the
MIB implementor needs to worry about.   These intermediate
handlers are typically called "helpers" (to distinguish them from
the main MIB handlers)


   For example - there is a helper ("table") which deals with table
indexes. It knows what index types are used for that table, and will
unpick the incoming OID to extract the various index values.   These
are then made available to handlers further down the chain - they can
work with the index values directly, without having to decode the OID.

  As another example, there are several handlers (including the
container-based 'table_tdata' helper) that hold a list of which rows
are valid within the table.   They can therefore look at a GET or
GETNEXT request, and identify which is the appropriate row to
use (if any).
  All subsequent handlers can then work with that row directly.
They don't need to worry about whether the row is valid or not,
or whether this was a GET or GETNEXT request.   That's been
handled by the table_tdata (or similar) helper.

  Note that table_tdata doesn't know anything about what values
might actually be in this table (or even details of the data structure
that's used to store the values of each row).  It simply holds a
collection of "black box" data structures - one for each row.  It
knows enough to decide which of these boxes is appropriate for
a given request - it's then up to the later handlers (particularly the
end MIB handler) to do something sensible with it.


  As a third example, there a helper which is purely concerned with
managing caches and cache timeouts.  For each incoming request,
it decides whether the cache is sufficiently recent to be useful, and
calls a suitable (user-provided) "load" routine if necessary.
   It doesn't care what might be in that cache, where the information
comes from, or what MIB objects it will be used for.   It doesn't even
care whether this relates to a table, or to scalar object(s).   It's
simply concerned with whether or not to re-load the cache contents.

The MIB-specific code *does* need to know how to load the cache,
and how to interpret the contents.   But it doesn't need to worry about
*when* to reload the cache - this is dealt with by the cache helper.


I will admit to being somewhat sceptical about this framework when
Wes first proposed it.  I was concerned that the processing overheads
of passing requests down the handler chain might be too great.
But time has proved me wrong - the mechanism has turned out to
be extremely powerful, and has made it *so* much easier to implement
new MIB modules.


Does that explanation make sense?

Dave

  





--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re: concept like container and helpers

2009-04-09 Thread sanjaykumar




Fair enough,
But what happen when the "subsystem" data is updated ?
How agent table "Container" Data structure will be updated ?
What about the "memory Consumption", We are maintaining the two data
structure for the same DATA
what exactly meant by the "subsystem" ?

Thanks and Best Regards,
Sanjay kumar


Dave Shield wrote:

  2009/4/9 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
  Net-snmp introduce the some of the concept like
"container" and "helpers" in latest version.
I am really struggling to get HOLD on these concepts.

  
  
Ok - I'll have a stab.

Let's take "container" first.
Typically, a significant proportion of the information
supplied by an SNMP agent will be in form of tables.
Most of these tables will be reporting information from
somewhere outside the agent itself - a "subsystem".

The agent has to have some way of getting this information
from the subsystem, so it can report back to the management
application.   One way is to contact the subsystem every time
a request comes in, retrieve the single item of information that
has been requested, and return that.   But this can be somewhat
inefficient - particularly when processing GETNEXT requests.

A very common alternative approach is to hold a local copy of
the whole of this information within the agent itself.   That can
then be used to service SNMP requests relatively efficiently.

But in order to do this, the agent needs some way to hold
this local copy of the table.   The "container" is a standard
mechanism for doing this.   It's effectively a data structure
that contains the various rows of the table (including how
they are indexed).

So whenever you see "container" - think "internal table".
(It's not quite as simple as that, but it's close enough)

OK so far?

Dave

  





--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re: concept like container and helpers

2009-04-09 Thread sanjaykumar





Can I this is the flow of updation of container : 
1) release_cached_resources(): cache_handler.c
2) cache_timer:start: loading cache 
3) helper:cache_handler: loaded 
Am I right ?

Does "helper" provide the cache functionalities ?

Can we implement the enterprise mib without help of CONTAINER ? 
If yes, how the interface will change ?


Sanjay 


Dave Shield wrote:

  2009/4/9 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
But what happen when the "subsystem" data is updated ?
How agent table "Container" Data structure will be updated ?

  
  
That's up to the agent.

Typically, the agent will use a cache timeout to decide whether
to keep using the local copy of the data.   Once this timeout
has expired, the container data will be discarded.
   The next time a request comes in, the container will be
re-populated with a fresh copy of the current data
(which will then slowly get out-of-date until the timeout is
reached again).


  
  
What about the "memory Consumption", We are maintaining
the two data structure for the same DATA

  
  
In terms of the whole system - yes.
In terms of the SNMP agent, no.

The agent has acess to exactly one set of data - typically held
in the container data structure.   The whole point of holding
this local cache is that the agent *doesn't* have direct access
to the original data - otherwise there'd be no point.


  
  
what exactly meant by the "subsystem" ?

  
  
Whatever is responsible for handling the stuff that this MIB
is meant to be reporting.

   Remember that SNMP is all about *management*. It doesn't
do anything useful itself - it just reports on (and/or controls)
the workers, who actually do the real work.

For example, suppose you're looking at a Web-Server MIB,
providing information about the behaviour of your Web server(s).
Number of current connections, where they're coming in from,
what pages have been served recently, server configuration, etc.
Stuff like that.

  In that scenario, the "subsystem" would be the collection of
web server processes.

   The SNMP agent isn't involved in providing web pages, and the
web server(s) can work perfectly happily without any form of SNMP
involvement.   They hold precisely the information that they need
to do the job they're there to do.

  But if the SNMP agent is to report on the status of the web servers,
it must be able to get hold of this information - either from the web
servers themselves, or from some other source (e.g. analysing
log files).
   So yes - this might well end up with some duplication - with
the same information held by the HTTP daemon (so that it can
serve web pages) and the SNMP agent (so that it can report on
what the web servers are doing).

That's a price you pay for not putting too much of an unnecessary
management load on the web servers, and let them get on with
some real work :-)

Dave

  





--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re: concept like container and helpers

2009-04-09 Thread sanjaykumar
Thaks a lot Dave.

Yes, I got the general understanding of  container.
I am really happy.
Now we can go ahead with Helpers concept.

Sanjay

Dave Shield wrote:
 Hold on - you're rushing ahead a bit.
 You started by saying that you didn't
 understand the concepts of container and helper.

 I've tried to explain what a container is (in fairly
 general terms).   Are you happy with that now?

 Note that I'm not asking whether you're comfortable
 with how to *use* a container - I'm concentrating on
 your understanding of the basic concepts.

 If so, then we can look at helpers.

 Don't get hung up on how you might use these things
 until you're comfortable with what they actually are!

 Dave

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 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

   


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


How does netsnmp store the user Info

2009-04-08 Thread sanjaykumar




Hi All,
 I am trying to create the "USER" in net-snmp 5.4.2.1
I have a doubt "Like How does user details will store".

Does it store in persistence memory or as a link list 
or link list will store in persistence memory ?

Does it require to call "read_configs()" function init time.
I am facing the following CRASH problem :

***

#0 0x in ?? ()
#1 0x081f1ce8 in EVP_DigestInit (ctx=0x83dc5e8, type=0xb7ed71a0) at
digest.c:67
#2 0x0816f346 in sc_hash (hashtype=0x82af820, hashtypelen=10,
buf=0x83d7390 "\200", buf_len=13, MAC=0xb4c23c84 " q58", 
 MAC_len=0xb4c24c84) at scapi.c:470
#3 0x08199b55 in hash_engineID (engineID=0x83d7390 "\200",
engineID_len=13) at lcd_time.c:520
#4 0x08199a7a in search_enginetime_list (engineID=0x83d7390 "\200",
engineID_len=13) at lcd_time.c:457
#5 0x0819993d in set_enginetime (engineID=0x83d7390 "\200",
engineID_len=13, engineboot=1, engine_time=0, authenticated=0)
 at lcd_time.c:380
#6 0x0818d314 in usm_read_user (
 line=0xb4c25a1d
"0x4d54412d50726f762d30303a30463a46453a31323a41343a383700
0x4d54412d50726f762d30303a30463a46453a31323a41343a383700 NULL
.1.3.6.1.6.3.10.1.1.2 0x44af1ea1a10e42fa79da562e4034b90c
.1.3.6.1.6.3.10.1.2.2 0x"...) at snmpusm.c:3575
#7 0x0818d510 in usm_parse_config_usmUser (token=0xb4c255f4 "usmUser",

 line=0xb4c259fc "1 3 0x80001f88801f10557f4bcbb849
0x4d54412d50726f762d30303a30463a46453a31323a41343a383700
0x4d54412d50726f762d30303a30463a46453a31323a41343a383700 NULL
.1.3.6.1.6.3.10.1.1.2 0x44af1ea1a10e42fa79da562e"...) at snmpusm.c:3631
#8 0x0816cc94 in run_config_handler (lptr=0x8315f70, token=0xb4c255f4
"usmUser", 
 cptr=0xb4c259fc "1 3 0x80001f88801f10557f4bcbb849
0x4d54412d50726f762d30303a30463a46453a31323a41343a383700
0x4d54412d50726f762d30303a30463a46453a31323a41343a383700 NULL
.1.3.6.1.6.3.10.1.1.2 0x44af1ea1a10e42fa79da562e"..., when=0)
 at read_config.c:522
#9 0x0816d3ea in read_config (filename=0xb4c25e94
"/var/net-snmp/snmpd.conf", line_handler=0x830dff8, when=0)
 at read_config.c:812
#10 0x0816da1c in read_config_files_in_path (path=0x838f3d8
"/var/net-snmp", ctmp=0x8314380, when=0, 
 perspath=0x838f3d8 "/var/net-snmp", persfile=0x0) at
read_config.c:1134
#11 0x0816db6f in read_config_files (when=0) at read_config.c:1218
#12 0x0816d584 in read_configs () at
read_config.c:880
#13 0x08179795 in init_snmp (type=0x827af6c "snmpd") at snmp_api.c:853
#14 0x080e5777 in snmpd (args=0x830d3e8) at snmpd.c:1015
#15 0xb7d731b3 in start_thread () from /lib/libpthread.so.0
#16 0xb7cf803e in clone () from /lib/libc.so.6

***


Thanks and Regards,
Sanjay Kumar



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
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


Re:

2009-04-07 Thread sanjaykumar

Hi ALL,
   Is it possible to implement the Ether-Like mib , rfc 3635 using 
the ethtool ?

Thanks and Regards,
Sanjay kumar


Dave Shield wrote:
 2009/4/7 Michael Schwartzkopff mi...@multinet.de:
   
 In general, the speed of an interface is typically controlled by the
 hardware.   I'm not aware of any mechanism (either via SNMP
 or on the command line) that would allow you to change this
   
 ethtool
 

 So noted.   Thanks.

 Though of course, that is specific to Ethernet-style interfaces.
 (While the IF-MIB is a much more generic thing).   Do you
 happen to know if there are similar tools for other types of interface?

 I suspect that this sort of management control might need to be
 handled by type-specific MIBs, rather than the generic IF-MIB.

 But of course, this is really a question for the IETF, rather than
 to be unilaterally decided by one individual SNMP product  :-)

 Dave

 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 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

   


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
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


registering and loading of mib

2009-04-06 Thread sanjaykumar
Hi All,
I have one doubt  regarding registering  and loading of mib.
According my requirement I am expecting mib object should register to 
response the
Request  from snmp Manager.

As by default It is loading all the mib object present in 
/usr/local/share/snmp/mibs/.

So, to register the mib,  Is it necessary to load the mib from the ABOVE 
path ?
If yes, then I need to compile the code with  option  --disable-mibs  
--disable-mib-loading.
or,  there is any other way to do it ?


Thanks and regards,
Sanjay Kumar

--
___
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


agent/mibgroup/mibII/interfaces.c

2009-04-03 Thread sanjaykumar




Hi All,
I going through the agent/mibgroup/mibII/interfaces.c file , I got a
doubt about the definition of function "SetIfEntry".
I didn't find it in netsnmp.5.4.2.1 version.
Could anyone let me know, which file contains the definition of
the Function 
OR it is some standard function under LINUX

 if (SetIfEntry(ifEntryRow) !=
NO_ERROR) {
 snmp_log(LOG_ERR,
 "Error in writeIfEntry case COMMIT with index: %d
 adminStatus %d\n",
 ifEntryRow.dwIndex, ifEntryRow.dwAdminStatus);
 return SNMP_ERR_COMMITFAILED;


Thanks and regards,
Sanjay kumar



--
___
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


Implementation of EthenetLike mib as per RFC 3635

2009-03-26 Thread sanjaykumar


Hi All,
   I am trying to implement the EtherLike mib as per the RFC3635.
I am trying to read the data from from /proc/net/dev,
but this provide the minimal information.
I also try to read ifconfig, but  I does not any relevent information 
as per the OBJECT of the MIB

Does any version of Net-Snmp support this ?
If yes, could  you let me know the version ?
If No, could you guide me regarding this ?


Thanks and regards,
Sanjay Kumar


--
___
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


To enable security feature with net-snmp

2009-03-23 Thread sanjaykumar





Hi All,
 I am configuring the net-snmp-5. 4.2.1. I am trying to
enable authentication and privacy.
For that I found a MACRO: "NETSNMP_USE_INTERNAL_MD5".

What does mean : 
Does it necessary to define the above macro to support the AUTH feature
? 
or net-snmp support the auth feature by default 
and the above Macro give some additional feature ?
 


Thanks and Regards,
Sanjay kumar






--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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


mib supported under agent/mibgroup and agent/mibgroup/mibII

2009-03-19 Thread sanjaykumar




Hi ALL,
 I have some doubt regarding the mib support under "agent/mibgroup".

As under the "agent/mibgroup/mibII" there
are function to respective 
ip/ interface/ ip-forward/ ipv6/ tcp/ udp mibs

Again there are different module respective to the above Mibs in
"agent/mibgroup".

Does it means "agent/mibgroup/mibII" module is with respect to RFC1213 
and 
ip/ interface/ ip-forward/
ipv6/ tcp/ udp mib modules under "agent/mibgroup" are
according to 
respective rfc as listed here : http://www.net-snmp.org/docs/mibs/

If yes, does it require to have support of both or either of
them(common mib support under both module) is sufficient.

Thanks and Regards,
Sanjay Kumar



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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


Re: mib supported under agent/mibgroup and agent/mibgroup/mibII

2009-03-19 Thread sanjaykumar




Thanks a lot Dave

One more clarification : 
By default net-snmp agent will be "UP" based on "agent/mibgroup/mibII"
?

To support alternative one We need to exclusively call the "init"
function of respective MIB ???
( ip/ interface/ ip-forward/ ipv6/ tcp/ udp mib modules under "agent/mibgroup"
are according to respective rfc as listed here : http://www.net-snmp.org/docs/mibs/ )
Thanks and Regards,
Sanjay Kumar

Dave Shield wrote:

  2009/3/19 sanjaykumar sanjay.ku...@globaledgesoft.com:
  
  
Does it means "agent/mibgroup/mibII" module is with respect to RFC1213
and
ip/ interface/ ip-forward/ ipv6/ tcp/ udp mib modules under "agent/mibgroup"
are according to
respective rfc as listed here : http://www.net-snmp.org/docs/mibs/

  
  
Yes.


  
  
If yes, does it require to have support of both or either of them(common mib
support under both module) is sufficient.

  
  
These are alternatives - you either use the (original) mibII versions,
*or* the later rewrites (which typically also cover the RFC1213 MIB objects).
You shouldn't build an agent containing both.

Dave

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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

  





--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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


support of Host and hardware module under agent/mibgroup/

2009-03-18 Thread sanjaykumar
Hi All,

   I have some doubt  about  host and hardware module under 
agent/mibgroup/ 

What I have understood about host module, It required for HOST (Any 
Computer connected to network) configuration. Am I right ?

What about the hardware ? Does it required by HOST Mib (As per rfc 
2790) ?
or Does it  specific to any particular requirement ?
or it should be supported by every system(that support snmp particularly 
net-snmp agent) ?


Thanks and Regards,
Sanjay kumar


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
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


MIB supported by net snmp 5.4.2.1

2009-03-17 Thread sanjaykumar




Hi All,
 I am looking at different MIB doc and RFC supported under
net-snmp5.4.2.1

I have some doubt regarding IPV6 MIB.
As I found different part of this as IPV6-MIB, IPV6-UDP-MIB,
IPV6-TCP-MIB, 
Are all this part of RFC4293 or they are
separate RFC( ?) number ? 

What about system group. Is it supported
as per rfc1213 or rfc3418 ?

Thanks and Regards,
Sanjay Kumar






--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___
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


unauthorize user while sending the notification

2009-02-25 Thread sanjaykumar
Hi All,
I am getting unauthorize user when I am sending the 
NOTIFICATION.
I have created the user using the following command 
net-snmp-config  --create-snmpv3-user
and I copy the created user from snmpd.conf  and paste it in snmptrapd.conf.
Is this way to add the user in snmptrapd.conf ?
If yes, what are the possibilities of the Error ?
If no, how do we add ?
I am testing the above with SNMPv3.

Thanks and Regards,
Sanjay Kumar


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
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