Problem with snmp_free_pdu

2009-04-14 Thread Tarun Kumar
Hi, I am working on some agent development with Net-SNMP, while doing my testing I came across some issues with snmp_free_pdu, it is somehow calling free for the same variable again and crashing. I had to make following changes to make it work: void snmp_free_pdu(netsnmp_pdu *pdu) { struct

Net-SNMP on windows

2009-04-14 Thread Tarun Kumar
Hi All, I have recently come up with some requirements, to write net-snmp based agents on windows. I did compile all the windows based libraries and installed them. Now I am using some templates (mib2c.conf) files to generate the code, I am wondering now, All of these templates(configuration fil

length of community strings

2009-04-14 Thread Richard Gipps
There does not seem to be anything in the RFCs on maximum community string lengths. Is there some defacto standard for maximum length. Does net-snmp impose a maximum length? Richard. -- This SF.net email is sponsored by

Re: Silvercreek test suite

2009-04-14 Thread Mark Ellison
Hi Ray, On 04/14/2009 10:34 AM, Ray Chang wrote: Hi, Has anyone done a lot of Silvercreek test suite malformed packet type of testing? The agent is supposed to drop the malformed requests. Occasionally, our subagent is catching SNMP_TRAP_AUTHFAIL traps, is that normal or we have a bug

Silvercreek test suite

2009-04-14 Thread Ray Chang
Hi, Has anyone done a lot of Silvercreek test suite malformed packet type of testing? The agent is supposed to drop the malformed requests. Occasionally, our subagent is catching SNMP_TRAP_AUTHFAIL traps, is that normal or we have a bug in our code. Thanks --

Re: Changing Trap Sink Using Script or in Makefile

2009-04-14 Thread Wes Hardaker
> On Tue, 14 Apr 2009 06:21:43 -0700 (PDT), Muhammad Zeeshan > said: MZ> I want to change the snmpd.conf file on runtime, say my agent is MZ> running and want to change IP for trap receiver without MZ> stopping/re-innitiating the agent, i want to do this with some MZ> make-file or perhap

Re: mib2c API style of TargetAddrTable.

2009-04-14 Thread Dave Shield
2009/4/14 kusuma.bm : > i would like which API style has been used to generate > snmpTargetAddrTable code (netsnmp-5.4.2.1) using mib2c compiler so that > i can use the same API style to generate code for snmpCommunityTable . That's probably a bad idea. The snmpTargetAddrTable implementation is re

mib2c API style of TargetAddrTable.

2009-04-14 Thread kusuma.bm
Hi, i would like which API style has been used to generate snmpTargetAddrTable code (netsnmp-5.4.2.1) using mib2c compiler so that i can use the same API style to generate code for snmpCommunityTable . Regards kusum --

Re: different data from snmpwalk

2009-04-14 Thread Dave Shield
2009/4/14 Eric Magutu : > here is a copy of the snmpd.conf file running on both machines > extend .1.3.6.1.4.1.3031.64 snmp-stats-show.pl > /usr/local/exim-snmp-stats/snmp-stats-show.pl > exec .1.3.6.1.4.1.3031.64 snmp-stats-show.pl > /usr/local/exim-snmp-stats/snmp-stats-show.pl

Re: different data from snmpwalk

2009-04-14 Thread Eric Magutu
On Tue, Apr 14, 2009 at 4:37 PM, Dave Shield wrote: > 2009/4/14 Eric Magutu : > >> What is the output of running the script > >> /usr/local/exim-snmp-stats/snmp-stats-show.pl > >> on the two systems? > >> That's the obvious first thing to check, > > > > They are both outputting results > > So

Re: VLAN

2009-04-14 Thread m. kh
HI, i was found this : http://www.mibsearch.com/vendors... Regards , 2009/4/14 m. kh > thank's Dave , > but i have not Q-BRIDGE-MIB in my mibs directory ,where i can download > this mib ? > > 2009/4/14 Dave Shield > >> 2009/4/14 m. kh

Re: different data from snmpwalk

2009-04-14 Thread Dave Shield
2009/4/14 Eric Magutu : >> What is the output of running the script >>     /usr/local/exim-snmp-stats/snmp-stats-show.pl >> on the two systems? >> That's the obvious first thing to check, > > They are both outputting results So running /usr/local/exim-snmp-stats/snmp-stats-show.pl by hand on mx102

Re: Changing Trap Sink Using Script or in Makefile

2009-04-14 Thread Muhammad Zeeshan
Dear Wes Hardaker   I want to change the snmpd.conf file on runtime, say my agent is running and want to change IP for trap receiver without stopping/re-innitiating the agent, i want to do this with some make-file or perhaps script.   Regards, - Muhammad Zeeshan --- On Tue, 14/4/09, W

Re: different data from snmpwalk

2009-04-14 Thread Eric Magutu
On Tue, Apr 14, 2009 at 12:13 PM, Dave Shield wrote: > 2009/4/14 Eric Magutu : > > I have 2 identical machines both running freebsd 7.0. net-snmp was setup > on > > both machines and a script to graph the mail queues installed. Only one > is > > working. > > Can someone explain why the 2 respo

Re: Changing Trap Sink Using Script or in Makefile

2009-04-14 Thread Wes Hardaker
> On Tue, 14 Apr 2009 03:46:57 -0700 (PDT), Muhammad Zeeshan > said: MZ> can some body help me with changing the trap2sink MZ> IP using script of from Makefile through any command if available MZ> provided that net-snmp library is installed. You can only modify the ip address of a trap2

Re: VLAN

2009-04-14 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] 2009/4/

Re: VLAN

2009-04-14 Thread m. kh
thank's Dave , but i have not Q-BRIDGE-MIB in my mibs directory ,where i can download this mib ? 2009/4/14 Dave Shield > 2009/4/14 m. kh : > > can i create VLAN and Change a Port from One VLAN to Another VLAN, > > using a standard MIB ? > > The most likely candidate would be the Q-BRIDGE-MIB

Re: datatype for IPADDRESS

2009-04-14 Thread Dave Shield
2009/4/14 Tanisha Kashyap : > All I can gather is that it is treated as an octet string of 4 bytes. So try doing that. Dave -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment.

RE: datatype for IPADDRESS

2009-04-14 Thread Tanisha Kashyap
All I can gather is that it is treated as an octet string of 4 bytes. "No task is so humble that it does not offer an outlet for individuality" -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, April 14, 2009

Re: datatype for IPADDRESS

2009-04-14 Thread Dave Shield
2009/4/14 Tanisha Kashyap : > I don’t know how to edit the following: > case MODE_GET: >     snmp_set_var_typed_value(requests->requestvb, > ASN_IPADDRESS, > (u_char *) ???, ???); See the file 'agent/mibgroup/mibII/udpTable.c' which includes a similar MI

Re: VLAN

2009-04-14 Thread Dave Shield
2009/4/14 m. kh : > can i create VLAN and Change a Port from One  VLAN to Another VLAN, > using a standard MIB ? The most likely candidate would be the Q-BRIDGE-MIB (RFC 4363). But you should really talk to the vendor of your network equipment, to find out what MIBs (private or standard) they act

Changing Trap Sink Using Script or in Makefile

2009-04-14 Thread Muhammad Zeeshan
Dear Fellows; can some body help me with changing the trap2sink IP using script of from Makefile through any command if available provided that net-snmp library is installed. Regards, -zeeshan Get your new Email address! Grab the Email name you've always wanted before someone else do

datatype for IPADDRESS

2009-04-14 Thread Tanisha Kashyap
Hi, I have generated a .c file using mib2c tool. The mibnode is of the type IPAddress. I don't know how to edit the following: case MODE_GET: snmp_set_var_typed_value(requests->requestvb, ASN_IPADDRESS, (u_char *) ???, ???); what is the datatype of IPAddress "No task is so humbl

VLAN

2009-04-14 Thread m. kh
Hi, can i create VLAN and Change a Port from One VLAN to Another VLAN, using a standard MIB ? help ! -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of

Re: problem with snmpwalk on ipNetToPhysicalTable

2009-04-14 Thread Dave Shield
2009/4/14 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. There won't be an API for this. You'll need to study

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 : > >> I am looking

Re: SNMP coexistence support

2009-04-14 Thread kusuma.bm
which documents should i refer to configure community-based Access Control via snmpd.conf. Dave Shield wrote: > 2009/4/14 kusuma.bm : > > >> is : suppose i have enabled my SNMP agent in snmpv3 ie it responds only >> to snmpv3 requests. Now if i enable this coexistence mib ie >> SNMP-COMMUNITY-M

Re: SNMP coexistence support

2009-04-14 Thread Dave Shield
2009/4/14 kusuma.bm : > which documents should i refer to configure community-based Access Control > via snmpd.conf. The snmpd.conf(5) man page and the project FAQ Dave -- This SF.net email is sponsored by: High Quality

Re: problem with snmpwalk on ipNetToPhysicalTable

2009-04-14 Thread Dave Shield
2009/4/14 sanjaykumar : > I am looking to the ipNetToPhysicalTable > I am observe that following object are not display > > ipNetToPhysicalIfIndex InterfaceIndex, > ipNetToPhysicalNetAddressType InetAddressType, > ipNetToPhysicalNetAddress InetAddress, Tha

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 InterfaceInde

Re: different data from snmpwalk

2009-04-14 Thread Dave Shield
2009/4/14 Eric Magutu : > I have 2 identical machines both running freebsd 7.0. net-snmp was setup on > both machines and a script to graph the mail queues installed. Only one is > working. > Can someone explain why the 2 responses are different? What is the output of running the script /

different data from snmpwalk

2009-04-14 Thread Eric Magutu
Hi, I have 2 identical machines both running freebsd 7.0. net-snmp was setup on both machines and a script to graph the mail queues installed. Only one is working output for its snmpwalk is as shown below. snmpwalk -v1 -c public mx100 .1.3.6.1.4.1.3031.64 SNMPv2-SMI::enterprises.3031.64.1.0 = IN

Re: Supporting ROW CREATION

2009-04-14 Thread Dave Shield
2009/4/14 Vinod Nanjaiah : > But I am unable to add new rows to the table through snmpset. > When I try snmpset for a new row, it fails and gives an error. > >        snmpset -v2c -cdemo localhost vpnIndex.2 i 2 vpnName.2 s 'admin'       >          vpnPIN.2 i vpnGroup.2 i 1 vpnDefaultUser.2 i

RE: Supporting ROW CREATION

2009-04-14 Thread Vinod Nanjaiah
Hi Dave, Actually I have made some progress and am stuck with a different problem now. After adding a RowStatus variable to my table in the MIB file, I see that ROW CREATION is supported. But I am unable to add new rows to the table through snmpset. When I try snmpset for a new row, it fails and

Re: SNMP libraries' functionality

2009-04-14 Thread Dave Shield
2009/4/14 Raghavendra Prasad : > I have installed a minimum agent, the following libaries have been > installed after the build process. > > libnetsnmp.a > libnetsnmp.la The core SNMP functionality - shared by both the agent and SNMP client applications. See snmplib/*.c > libnetsnmpagent.a >

SNMP libraries' functionality

2009-04-14 Thread Raghavendra Prasad
I have installed a minimum agent, the following libaries have been installed after the build process. libnetsnmp.a libnetsnmp.la libnetsnmpagent.a libnetsnmpagent.la libnetsnmphelpers.a libnetsnmphelpers.la libnetsnmpmibs.a libnetsnmpmibs.la I would like to know their significance, what functiona

Re: SNMP coexistence support

2009-04-14 Thread Dave Shield
2009/4/14 kusuma.bm : > is : suppose i have enabled my SNMP agent in snmpv3 ie it responds only > to snmpv3 requests. Now if i enable this coexistence mib ie > SNMP-COMMUNITY-MIB , will i be able to support snmpv2c requests. In general, yes. The idea of the Community MIB is to link community-base

SNMP coexistence support

2009-04-14 Thread kusuma.bm
Hi, i have read rfc 3584 ,but didn't understand to the complete..my question is : suppose i have enabled my SNMP agent in snmpv3 ie it responds only to snmpv3 requests. Now if i enable this coexistence mib ie SNMP-COMMUNITY-MIB , will i be able to support snmpv2c requests.If this is not the cas

RE: how to extract sender address from the set request

2009-04-14 Thread Tanisha Kashyap
I have implemented a dynamically loadable module... "No task is so humble that it does not offer an outlet for individuality" -Original Message- From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield Sent: Tuesday, April 14, 2009 1:21 PM To: Tanish

Re: how to extract sender address from the set request

2009-04-14 Thread Dave Shield
2009/4/14 Tanisha Kashyap : > I have multiple NMSes which set a MIB variable to some value one at a time. > > I need to know the address of the NMS which has set the variable. Is it > possible to do so? Not easily - no. And depending on how you have implemented the MIB module (e.g. via an AgentX s

Re: registeration the mib object

2009-04-14 Thread Dave Shield
2009/4/13 sanjay kumar : >    As by default net-snmp (5.4.2.1) register the mib object by loading the > mib from the directory "usr/share/local/snmp/mibs" No - that is where the *client* tools would load a new MIB from. See the FAQ entry http://www.net-snmp.org/wiki/index.php/FAQ:Applications_0

Re: Supporting ROW CREATION

2009-04-14 Thread Dave Shield
2009/4/13 Vinod Nanjaiah : > I am using mib2c to generate code based on MFD conf file (mib2c.mfd.conf). > The README file mentions “This table does not support ROW CREATION”. What is the MIB definition of the table? The MfD mib2c template will automatically generate code for row creation if the M

Re: Error to retrieve the value of Ethernet Object

2009-04-14 Thread Dave Shield
2009/4/13 sanjaykumar : > 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 The standard agent does not implement anything under the transmission subtree. > but working fine with other mibs like > snmpwalk

Re: "baby_steps" helpers

2009-04-14 Thread Dave Shield
2009/4/13 sanjaykumar : > Could somebody will tell me what is basic functionalities of > "baby_steps related function" ? The usual model for processing SET requests is structured around the idea of multiple "passes" across the data. Most typically: RESERVE1 RESERVE2 ACTION COMMIT (wit