Re: Varbind orfer in SNMP TRAP's

2021-10-28 Thread Fulko Hew
On Thu, Oct 28, 2021 at 5:23 PM Craig Small wrote: > On Fri, 29 Oct 2021 at 05:14, Feroz wrote: > >> hi, >> Is it necessary to maintain any specific order in SNMP TRAP for varbinds? >> > For the first two, yes. > I always followed the principles of: 1/ least surprise 2/ Be precise in what you s

Re: snmpget won't return correct value of string, tcpdump show correct

2017-02-27 Thread Fulko Hew
On Mon, Feb 27, 2017 at 9:53 AM, Streuli Arno wrote: > I have a strange things with snmpget, I’m doing the following request: > (it’s request to have the ip address on Cisco switch of CDP neighbor ) > > [root@lslcact01:~] # snmpget -v2c -cX se-sve-225 > .1.3.6.1.4.1.9.9.23.1.2.1.1.4.10108.3 >

Re: 'FORMAT' message written to SNMP log file

2016-11-02 Thread Fulko Hew
On Wed, Nov 2, 2016 at 2:55 PM, Lemons, Terry wrote: > Hi > > > > Apologies if this has been asked for; a quick search through the mailing > list archive didn’t find it. > > > > I’ve installed net-snmp-5.7.3-4.2.x86_64 on my SLES 12 SP1 system. > Because security is important, I’ve read up on and

Re: how to avoid mixing devices

2016-05-20 Thread Fulko Hew
On Sat, May 21, 2016 at 12:44 AM, Claudio SRD wrote: > Dear friends, > > MIB files can be stored in directories, but how to avoid mixing the > variables of different vendors?, there is chance they use same names of the > variables. What is the solution ?. when doing snmp commands we do not > spec

Re: unknow OID

2016-05-19 Thread Fulko Hew
On Thu, May 19, 2016 at 4:10 AM, andrewarnier wrote: > Hello I receive this trap > > "Unknown alert received from device xxx Time 28+12:43:05. (Trap type > 1.3.6.1.4.1.9) > > Ent Value 0: .1.3.6.1.4.1.9.2.9.3.1.1.3.1=6 > > Ent Value 5: .1.3.6.1.4.1.9.2.9.2.1.18.3=website > > > > > > I found t

Re: MIB format

2016-05-18 Thread Fulko Hew
On Wed, May 18, 2016 at 10:01 AM, andrewarnier wrote: > Hi all, > > Tue May 17 23:59:43 2016: Unknown trap (.1.3.6.1.4.1.9.9.187.0.8) received > from CISCOASR at: > > Value 0: CISCOASR > Value 1: 10.10.1.2 > Value 2: 386:3:31:07.03 > Value 3: .1.3.6.1.4.1.9.9.187.0.8 > Value 4: 10.10.1.2 > Value 5

Re: OID format and MIB

2016-05-13 Thread Fulko Hew
On Fri, May 13, 2016 at 3:24 AM, alessandro macuz wrote: > Hello all, > > I tried to search the Internet for my answer but I don't seem to find it. > > At my company we have an appliance that for some OIDs it doesn't return an > integer calue that can be processed and graphed but a string that loo

Re: subagents

2016-01-14 Thread Fulko Hew
On Thu, Jan 14, 2016 at 12:22 AM, Pushpa Thimmaiah < pushpa.thimma...@gmail.com> wrote: > Thank you Fulko Hew and Alan for the information. > > So one can use 'snmptrap' and 'agentxtrap' depending on the requirement. > Traps by snmptrap, agentxtrap are doe

Re: subagents

2016-01-13 Thread Fulko Hew
On Wed, Jan 13, 2016 at 5:24 AM, Pushpa Thimmaiah < pushpa.thimma...@gmail.com> wrote: > Thank you Fulko Hew , Alan. > > My doubt was > 1. Does AgentX feature only to handle request from querying application > i.e snmpwalk > I gone through wikipidea, It says that it ca

Re: Re[6]: How to get IP of received get request

2015-12-23 Thread Fulko Hew
o the NMS addresses it is configured to send traps to. (Sometimes a trap target is a different address than the one doing polling!) > Среда, 23 декабря 2015, 9:26 -05:00 от Fulko Hew : > On Wed, Dec 23, 2015 at 3:04 AM, Igor Sobinov wrote: >> Hello Fulko, >> >> Thanks a lot

Re: Re[4]: How to get IP of received get request

2015-12-23 Thread Fulko Hew
t? Perhaps you want to do something philosophically wrong. >is the only way to get it is to create my module as > shared object loaded by snmpd? I can't speak for that technique, I have never used it. >> Вторник, 22 декабря 2015, 8:39 -05:00 от Fulko Hew : >> On Tue,

Re: Re[2]: How to get IP of received get request

2015-12-22 Thread Fulko Hew
On Tue, Dec 22, 2015 at 1:19 AM, Igor Sobinov wrote: > Hello, > > I created my subagent, based on Agent X protocol. So, in my subagent I need > to know the IP of recipient Sorry, the IP address of the controlling NMS is not communicated via AgentX to subagents. Trap targets are configured into N

Re: mib file to map an trap oid

2015-10-29 Thread Fulko Hew
On Thu, Oct 29, 2015 at 2:06 AM, Pushpa Thimmaiah < pushpa.thimma...@gmail.com> wrote: > Hi Folks, > > I have installed snmpagent (net-snmp-5.7.1) and it sends out trap > .1.3.6.1.4.1.8072.4.2 during its restart. I am not able to map the trap > oid .1.3.6.1.4.1.8072.4.2 > I have searched online b

Re: a question aboat: Mibs structure

2015-08-23 Thread Fulko Hew
On Sun, Aug 23, 2015 at 3:02 AM, Mostafa Salari wrote: > Hello > When I execute [snmpwalk -c public -v1 localhost -On] in my Ubuntu shell > (on vm ware) I see an OID such as: > .1.3.6.1.2.1.28.0 which has a Counter32 value and is translated > to: SNMPv2-MIB::snmpOutGetResponses.0 > > here: { http

Re: Mysterious ".0" at the end of SNMP OID in Quagga

2014-12-20 Thread Fulko Hew
On Sat, Dec 20, 2014 at 9:40 AM, Jan Janovic wrote: > Hello net-snmp community, > > I'm one of the main developers of the new EIGRP routing protocol daemon for > Quagga routing suite. As we came to SNMP support implementation, we realized > that to correctly get any of the SNMP values using partic

Re: How do add the .1.3.6.1.4 OID root to the default output of an snmpwalk for which no OID argument is given.

2014-11-05 Thread Fulko Hew
On Wed, Nov 5, 2014 at 8:47 AM, PEOPLES, MICHAEL P wrote: > When executing the following command on a Brocade Vyatta 5600, you only get > OIDs from a root OID of .1.3.6.1.2. > > snmpwalk -c XXX -v 2c vyatta01.foo.com > > However, the vendor specific OIDs are available only in the root OID > .1

Re: string as index of a table

2014-10-17 Thread Fulko Hew
On Fri, Oct 17, 2014 at 10:38 AM, sarath azad wrote: > Hi Niels, > > But using a query like: snmpwalk $host table>.1..\"ABCDE\" > is not working also. Below are the test results : > > snmpget $host table>.1..10."66.67.68.69.70.71.72.73.74.75" > .1.."BCDEFGHIJK" = INTEGER: 0 > snmpget $host

Re: error showing SNMPWALK on the last table of a view

2014-07-02 Thread Fulko Hew
0 ..." it worked . > So there is no problem with our code, its the general behavior only. > > thanks and regards > S Sarath > > On Wednesday, June 25, 2014 11:28 PM, Fulko Hew wrote: > > Can't saw if this is yr problem but I have seen that it has linear? Delays

Re: Distinguishing scalar and tabular objects

2014-06-11 Thread Fulko Hew
On Wed, Jun 11, 2014 at 8:10 AM, wrote: > Hi, > > I am usng net-snmp and I am developing mib browser in .Net framework > > How to distinguish whether an mib object is scalar or tabular? > > Is there any api function available in net-snmp for this? > > [In particular, when a user clicks on sysDes

Re: SNMP Protocol

2014-04-10 Thread Fulko Hew
On Thu, Apr 10, 2014 at 4:23 PM, Alex wrote: > Hi, > > Thank you for input. > I don't understand. I've read specification RFC 2741 and RFC 1157, not full > though, just important moments. My understanding is that SNMP is protocol, > SNMP agent is plain daemon that run on the background, and MIB fi

Re: octet strings in 5.4.3~dfsg-2.7

2014-02-27 Thread Fulko Hew
On Thu, Feb 27, 2014 at 11:09 AM, Juges, Didier wrote: > I believe all integer values are signed. Not sure that would cause an > overflow though. > I just tried it on one of my MIBs and it worked: # snmpset -v1 -cprivate localhost 1.3.6.1.4.1.1978.21.1.7.7.0 x 414243444546474849 SNMPv2-SMI::ent

Re: MIB writing and index in the middle of the OID

2014-01-31 Thread Fulko Hew
On Fri, Jan 31, 2014 at 2:18 PM, Florian Lohoff wrote: > > Hi, > i am trying to enable some of our applications with AgentX support. > I got net-snmp married to libevent which works. Now i am trying > to wrap my head around how to design the mib and the AgentX code. > > My immediate idea was some

Re: Send trap to subnet

2014-01-08 Thread Fulko Hew
On Wed, Jan 8, 2014 at 3:35 AM, Chaitanya Gulhane < chaitanya.gulh...@gmail.com> wrote: > Thanks Fulko. I just have a query as of now that in snmpd.conf, we can > store subnet mapping with community string. How to handle the same then? Do > we need to parse the string containing subnet explicitly

Re: Send trap to subnet

2014-01-07 Thread Fulko Hew
On Tue, Jan 7, 2014 at 1:05 PM, Chaitanya Gulhane < chaitanya.gulh...@gmail.com> wrote: > Hi, > > I want to send traps in my subnet. I am having IP of my m/c as 10.0.2.15. > I want to send it in 10.0.2.0/24 subnet. I have tried command as follows > > snmptrap -v 2c -c public 10.0.2.0/24 "" [OID-va

Re: Perl Modules still well maintained?

2014-01-04 Thread Fulko Hew
On Sat, Jan 4, 2014 at 1:45 PM, Hugh Ying wrote: > I've seen many actually used command line (snmp*) output parsed in perl > script instead of using native SNMP::Session implementation? > > Is the Perl module already out of date and no longer maintained? > It just works, so there isn't much to '

Re: no response from devices when querying multiple oids

2013-11-19 Thread Fulko Hew
On Tue, Nov 19, 2013 at 6:38 AM, Aleksandrs Saveljevs < aleksandrs.savelj...@zabbix.com> wrote: > I have played a bit more and the conjecture turned out to be (at least > partially) false. > > The way I played was attempt to query string objects with long values: > > $ snmpget -v 2c -c public 192.

Re: net-snmp on windows to support host-resoureces mib

2013-11-18 Thread Fulko Hew
On Mon, Nov 18, 2013 at 5:50 AM, wrote: ... snip ... > i need to fetch information under host-resources-mib. > i am using net-snm-5.6.2 and windows 7 (64-bit) > > ... snip ... > >No log handling enabled - using stderr logging > init_winExtDLL: initialization of DLL C:\Windows\System32\

Fwd: low? octet string limit on AgentX transactions

2013-11-15 Thread Fulko Hew
Previously sent to the 'coders' mailing list with no response, I'm now I 'm resending this to the users list too. I was bit recently by a design limitation on the length of OCTET STRINGS as received and processed by AgentX. My subagent was sending a Notify, that under certain conditions

Re: Using net-snmp to monitor a dynamic cloud-based back-end

2013-11-06 Thread Fulko Hew
On Wed, Nov 6, 2013 at 11:05 AM, Maarten Wijnants < maarten.wijna...@uhasselt.be> wrote: > Dear Fulko Hew, > On 5/11/2013 14:42, Fulko Hew wrote: > > > > I have instituted exactly this philosophy on the application developers > within my company. > > Af

Re: force linux to generate snmp traps automatically

2013-11-05 Thread Fulko Hew
On Tue, Nov 5, 2013 at 5:40 AM, Farooq Hussain wrote: > Dear All, > > I would like to generate a trap automatically when any service goes down > on a server. What I have to do for this. Is it I have to right a script for > this for we i have to configure snmptrapd.conf is so please let me know > s

Re: Using net-snmp to monitor a dynamic cloud-based back-end

2013-11-05 Thread Fulko Hew
lanning info (and alarms on 'potential capacity problems so you don't actually have to do capacity planning until you get 'close' to your 'gee maybe I should start paying attention' usage level. So I think this design (and implementation) covers the kind of stuff y

Re: null OID

2013-09-16 Thread Fulko Hew
On Mon, Aug 19, 2013 at 12:11 PM, Sam Mallicoat wrote: > We have been asked that our agent support a getnext request with a null > OID, in theory this would find all the trees possible in a snmpwalk. The > closest I could get with a command line, ccitt.0 actually produced an OID > of 1.2.1.0. Any

Re: Timeout

2013-07-25 Thread Fulko Hew
On Thu, Jul 25, 2013 at 10:13 AM, Abid Ayoub wrote: > Hello, > > This is the first time that i use net-snmp. > So, i want to know the general configuration and other informations about > my cisco switch using snmpwalk and snmpget. > So , i use the following command: > > snmpget -c -v2c 1.3.6.1

how to use the DISMAN sub-system?

2013-07-17 Thread Fulko Hew
I was trying to use the monitor/proc facility that's built into snmpd, but it turns out the processes I need to monitor are not providing a unique enough name in hrSWRunName (which is used by 'proc') [A useful name is available in hrSWRunPath instead, but 'proc' doesn't use that field.] So I thoug

is there a MIB file naming convention that wireshark needs ?

2013-07-15 Thread Fulko Hew
[Version 1.5.0 (SVN Rev 35476 from /trunk)] As the subject asks: Is there a MIB file naming convention that wireshark needs ? Wireshark is complaining with: Stopped processing module UDP-MIB due to error(s) to prevent potential crash in libsmi. Module's conformance level: 1. See details at: http

Re: Row operation in Net-SNMP

2013-04-26 Thread Fulko Hew
> > ** ** > > Thanks, > > Barclay > > ** ** > -- > > *From:* Fulko Hew [mailto:fulko@gmail.com] > *Sent:* 2013年4月24日 20:22 > *To:* Zheng, Wenjie (Barclay) > *Cc:* Dave Shield; net-snmp-cod...@lists.sourceforge.net; > net-snmp-users@lists.sourceforge.net &g

Re: Row operation in Net-SNMP

2013-04-24 Thread Fulko Hew
On Wed, Apr 24, 2013 at 2:02 AM, Zheng, Wenjie (Barclay) < barclay.zh...@alcatel-lucent.com> wrote: > Hi, Dave et al, > > I have a puzzle of Net-SNMP table operation, for example I have a table > like below: > > a1-a2-a3-a4 > b1-b2-b3-b4 > c1-c2-c3-c4 > > In net-snmp, if I use iterator helper to i

Re: java snmp subagent support?

2013-02-20 Thread Fulko Hew
On Tue, Feb 19, 2013 at 4:07 PM, Bryan Levin wrote: > Hi, > > ** ** > > I am pretty sure I know the answer, but I was tasked with exploring what > kind of java snmp subagent support there might be within the net-snmp > framework. From what I can tell, there is a 3rd party project called > s

Re: Applicability in SNMP scalar objects

2013-02-18 Thread Fulko Hew
On Mon, Feb 18, 2013 at 10:43 AM, Patricia Chocan Fernandez < patricia.chocanfernan...@newtec.eu> wrote: > > Dear Mr. Hew, > > thanks for your fast answer. > In my opinion, using a "not-applicable" value is the best option. > > Nevertheless, I am a bit doubtful regarding the options: > > - Sho

Re: Applicability in SNMP scalar objects

2013-02-18 Thread Fulko Hew
On Mon, Feb 18, 2013 at 6:05 AM, PCFE wrote: > What is the correct way to show applicability > of SNMP Scalar Objects when doing an SNMP-GET request? > > For example, imagine that we have a monitoring > parameter that is only valid under > certain system configuration: > > - Should we return a no

Re: Trapv1: which enterprises OID to use for generic and specific traps?

2013-01-29 Thread Fulko Hew
On Tue, Jan 29, 2013 at 4:06 AM, Giuseppe Modugno wrote: > I'm interested in sending generic and specific v1 traps. The Trap-PDU > always includes an enterprise OID. Does the standard specify this OID > for generic traps (coldStart, warmStart...)? I noticed Net-SNMP > (Windows installation) sen

Re: How to get the enterprise id of a snmp enabled device

2013-01-09 Thread Fulko Hew
On Wed, Jan 9, 2013 at 3:54 AM, pradipta wrote: > > Hello, > > I am trying to get the enterprise ID of a snmp device.I am using the > sysObjectID - 1.3.6.1.2.1.1.2 to query .But is there any way to get the > enterprise ID only > > Technically, there is no standard variable that contains the ente

Re: how to inject global handler that handles request to any OID?

2012-12-04 Thread Fulko Hew
On Tue, Dec 4, 2012 at 11:08 AM, STOTTS Timothy < timothy.sto...@transport.alstom.com> wrote: > How can I do the following? > > 1. create a handler registration for the top OID of: > const oid top_oid[] = { 1 }; > const size_t top_oid_len = OID_LENGTH(top_oid); > > 2. inject the handler such that

Re: Some Net-SNMP needed answers

2012-12-04 Thread Fulko Hew
loating point Double ::= Opaque (SIZE(...)) -- important details left out voltageLevel OBJECT-TYPE SYNTAX Double UNITS"volts" MAX-ACCESS read-only STATUS current DESCRIPTION "The current output level expressed in volts." ::= { voltage 1} &g

Re: Some Net-SNMP needed answers

2012-12-03 Thread Fulko Hew
On Mon, Dec 3, 2012 at 6:51 AM, wrote: > I must ask, is this mailing list dead for some reason, or is people > just very busy? Or perhaps I have been nagging the mailing list so > many times with questions. > No, its probably because if nobody knows the right answer (for sure) they will probabl

Re: index allocate/deallocate of integer values over 255 fails (patch included)

2012-11-15 Thread Fulko Hew
On Thu, Nov 15, 2012 at 8:46 AM, Fulko Hew wrote: > > On Wed, Nov 14, 2012 at 10:41 AM, Fulko Hew wrote: > > > > While testing my app, I think I've discovered an issue... > > > > My app uses AgentX to interact with net-snmp and during the course of > > ev

Re: index allocate/deallocate of integer values over 255 fails (problem isolated)

2012-11-15 Thread Fulko Hew
(I've CC'ed the other mailing list also, in an attempt to solicit a wider audience.) On Wed, Nov 14, 2012 at 10:41 AM, Fulko Hew wrote: > > While testing my app, I think I've discovered an issue... > > My app uses AgentX to interact with net-snmp and during the cour

Re: agentx: how do I register my traps

2012-04-13 Thread Fulko Hew
On Fri, Apr 13, 2012 at 12:40 AM, Stéphane Charette < stephanechare...@gmail.com> wrote: > My question: What do I call to register my trap definitions? >>> >> >> You don't have to 'register' trap definitions, you simply have to >> 'send' the (correctly composed) notification (agentx-Notify-PDU).

Re: agentx: how do I register my traps

2012-04-12 Thread Fulko Hew
On Thu, Apr 12, 2012 at 3:17 PM, Stéphane Charette < stephanechare...@gmail.com> wrote: > Just joined the list 30 seconds ago. :) I'm working with net-snmp and > agentx. I have to register my enterprise OIDs for scalars and tables. For > example: > > > netsnmp_register_read_only_scalar(...); //

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 10:20 AM, wrote: > Fulko, > > I also tried to send my trap (oid 1.3.6.1.4.1.2257.11.1.1.0.0.9) without > any additional var-binds as an SNMPv1 trap and it worked. The problem seems > to be sending it as an SNMPv2 trap, SNMPv1 is OK. > > As for the sysUpTime, each time I r

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 8:56 AM, wrote: > Fulko, > > I understand your point that a LinkUp trap needs the additional ifIndex > varbind. I didn't understand why the example I had been given by Bart also > contained a sysDescr var-bind. My point is that I wish to send an enterprise > specific trap

Re: Sending traps using Perl

2011-09-29 Thread Fulko Hew
On Thu, Sep 29, 2011 at 5:26 AM, wrote: > I have some further questions/observations on this subject. > > The reason that I have not been able to send my own Enterprise specific > trap is that it does not have any additional var-binds associated with the > trap i.e I want to send the trap with an

Re: info needed on snmpbulkget with agentx

2011-08-23 Thread Fulko Hew
On Tue, Aug 23, 2011 at 3:28 AM, anand anand wrote: > Hello all > > While performing a snmpbulkget on nstAgentSubagentObject, which is > provided as part of the agentx tutorial i get the below output > >- > > ... snip ... > >- Whenever we are using the snmpbulkget , the agentx receive

Re: Opaque types

2011-05-24 Thread Fulko Hew
On Tue, May 24, 2011 at 10:56 AM, Leo Cacciari wrote: > Il 05/24/2011 04:32 PM, Fulko Hew ha scritto: >> On Tue, May 24, 2011 at 9:55 AM, Leo Cacciari wrote: >>> Hi, >>>  I'm writing a SNMP (sub)agent which would allow access to some >>> application da

Re: Opaque types

2011-05-24 Thread Fulko Hew
On Tue, May 24, 2011 at 9:55 AM, Leo Cacciari wrote: > Hi, >  I'm writing a SNMP (sub)agent which would allow access to some > application data. Data types handled by the application, and that should > somehow be exposed to the SNMP world by the agent, includes the > 'standard' SNMP types (e.g. 32

Re: running SNMPGET to poll from a port other than 161

2011-05-13 Thread Fulko Hew
On Fri, May 13, 2011 at 1:14 PM, Ujjval Karihaloo wrote: > Looks like snmpget polls only on port 161, any way to set the port number > when using snmpget. I don’t see any option in the help..any hidden commands > there? > snmpget ... hostname:port ... see: man snmpcmd under the section called

Re: snmpwalk works, but snmpget doesn't?

2011-03-17 Thread Fulko Hew
On Thu, Mar 17, 2011 at 4:51 PM, Scott Baker wrote: > Am I missing something here, or is this totally broken? > > snmpwalk -c my_comm -v 2c nsp.web-ster.com .1.3.6.1.4.1.9.10.27.1.2.1.1 > SNMPv2-SMI::enterprises.9.10.27.1.2.1.1.0 = INTEGER: 0 > > :snmpget -c my_comm -v 2c nsp.web-ster.com .1.3.6.1

problem with AgentX getNext and multiple regions?

2011-02-18 Thread Fulko Hew
I'm confused by what Net-SNMP (5.6.rc2) is doing when interacting with my AgentX sub-agent. I have two regions registered, and I perform a getnext to the master... The master sends an AgentX getNext PDU on the first region looking for a positive response. Unfortunately, the 'next' variable isn't

Re: NEED HELP IN SNMP PROGRAMMING

2011-01-28 Thread Fulko Hew
On Fri, Jan 28, 2011 at 3:38 AM, hello hi wrote: > HI Friends, > > i want know few terminologies (in programmatic way) used in SNMP > > 1. iftable > 2.iftype > 3.ifindex > 4.MODULE-IDENTITY > 5.OBJECT-IDENTIFIER > 6.ifentry > > can you please explain these things by creating a IFTable as a example

Re: snmpwalk stops at "no such instance currently exist at this OID"

2011-01-12 Thread Fulko Hew
On Wed, Jan 12, 2011 at 5:32 AM, Yufeng Zhu wrote: > Sir > > Thanks for your time to read this mail. I have a problem with snmpwalk > command. > > When I try to walk a tree, it stop when one node has error and returns “no > such instance currently exist at this OID” > > The reset of the sub nodes

v5.6.1 binaries for MS Windows?

2011-01-05 Thread Fulko Hew
Now that v 5.6.1 has been officially released (and some binaries are available), I was wondering what the process is (wait time) before there are binaries for MS Windows OSs available for download? Also, while reading the release announcement, I see that MS Windows isn't even on the supported OS l

Re: mangled image in a Net-SNMP tutorial web page

2010-11-25 Thread Fulko Hew
On Thu, Nov 25, 2010 at 10:25 AM, Fulko Hew wrote: > I was just reading some of the documentation for Net-SNMP and I think I discovered another error... In the following code snippet from the end of the file: http://www.net-snmp.org/tutorial/tutorial-4/toolkit/mib_module/ustScalarSet.c a

mangled image in a Net-SNMP tutorial web page

2010-11-25 Thread Fulko Hew
I was just reading some of the documentation for Net-SNMP and I discovered that a flowchart image is mangled http://www.net-snmp.org/tutorial/tutorial-4/toolkit/mib_module/set-actions.jpg in the web page http://www.net-snmp.org/tutorial/tutorial-4/toolkit/mib_module/ FYI: The (what I think is

Re: what to specify in an AgentX IndexAllocate request?

2010-11-08 Thread Fulko Hew
On 11/8/10, Fulko Hew wrote: > I'm in the process of implementing an AgentX library (in native Perl), > and I've gotten > to the point of implementing the IndexAllocate PDU/function. It > specifies that you > can provide a varbind list of 'index names and val

what to specify in an AgentX IndexAllocate request?

2010-11-08 Thread Fulko Hew
I'm in the process of implementing an AgentX library (in native Perl), and I've gotten to the point of implementing the IndexAllocate PDU/function. It specifies that you can provide a varbind list of 'index names and values requested for allocation'. Unfortunately this description is a little wea

what MIB defines icmp.27 and icmp.28?

2010-10-19 Thread Fulko Hew
I've browsed a Microsoft Windows Server 2008 system running Net-SNMP v5.5 (with DLL support) and I see the following variables returned. Can anyone enlighten me on what MIB defines these? I found RFC-2011 had originally defined icmp.27 and .28, but its been deprecated for a while, and the indexes

problems combining net-SNMP, Windows 2008 and 'windows extension DLL' support

2010-10-12 Thread Fulko Hew
I can't seem to get a combination of MS Windows 2008 (v6.0.6001) along with Net-SNMP with 'windows extension DLL support' of either v5.5.0 or 5.4.2 to work right (the way I need). (using pre-compiled binaries from SourceForge) Here are my results: Notes: - 'sysObjectID' refers to the use of the

Re: how to change/add community name whithout restarting snmpd?

2010-10-06 Thread Fulko Hew
You had to manually 'kill' the app and then restart it. If you are using a newer version that does have it... great. If you are using a different distribution... you will have to investigate what you have available it it yourself. > > Thanks, > > Naama > > > >

Re: how to change/add community name whithout restarting snmpd?

2010-10-05 Thread Fulko Hew
On Tue, Oct 5, 2010 at 1:22 PM, Naama Bar Menachem < naama.barmenac...@novelsat.com> wrote: > Hi > > > > Is there a way to change/add community name without restarting snmpd? > > > > > > If not- how do I restart snmpd? > > When I do: > > ./snmpd restart [flags] > > I get the following error: > >

Re: 'life the universe and everything

2010-10-05 Thread Fulko Hew
On Tue, Oct 5, 2010 at 10:59 AM, Dave Shield wrote: > On 5 October 2010 15:40, Fulko Hew wrote: > > But that would mean that it (the example code) was 'built' into the 5.5 > > release. > >I wouldn't have expected that. :-( > > For a while now, I&

Re: 'life the universe and everything

2010-10-05 Thread Fulko Hew
On Tue, Oct 5, 2010 at 10:37 AM, Dave Shield wrote: > On 5 October 2010 15:18, Fulko Hew wrote: > > I have someone (and I tested it myself) with a Windows machine > > running Net-SNMP v5.5 (with as basic an installation as possible). > > > > While walking the MIB I

'life the universe and everything

2010-10-05 Thread Fulko Hew
I have someone (and I tested it myself) with a Windows machine running Net-SNMP v5.5 (with as basic an installation as possible). While walking the MIB I find the following entries: ucdavis.254.1.0life the universe and everything ucdavis.254.2.1.0 42 ucdavis.254.2.2.0 1.3.6.1.4.42.42.42 ucd

Is there NetSNMP::agent support for sending Traps?

2010-09-27 Thread Fulko Hew
I just needed to coble up a test sub-agent (in Perl) that acts as an AgentX based sub-agent. All went well for what I needed to test, but... I see support for gets and sets, but what I didn't see was any support for forwarding traps to an AgentX master from Perl sub-agents. Is it missing, or am I

question about OCTET STRING encoding within an index

2010-09-22 Thread Fulko Hew
While testing and reviewing my SNMP test harness I've come across an instance of a variable with an index I can't explain (on my Fedora box). snmpwalk -v1 -cpublic -On localhost vacmContextName .1.3.6.1.6.3.16.1.1.1.1.0 = STRING: So the index on this column is '.0' (which is defined as an OCTET S

Re: sysObjectID still returns an incorrect value

2010-09-22 Thread Fulko Hew
On Mon, Sep 20, 2010 at 8:22 PM, Wes Hardaker < harda...@users.sourceforge.net> wrote: > >>>>> On Thu, 16 Sep 2010 12:41:38 -0400, Fulko Hew > said: > > FH> Are there any other scenarios that I missed testing? > > FYI, I applied your patch to the trunk t

Re: sysObjectID still returns an incorrect value

2010-09-16 Thread Fulko Hew
On Thu, Sep 16, 2010 at 12:31 PM, Wes Hardaker < harda...@users.sourceforge.net> wrote: > >>>>> On Wed, 15 Sep 2010 16:00:42 -0400, Fulko Hew > said: > > FH> WATCHER_MAX_SIZE | WATCHER_SIZE_IS_PTR | WATCHER_SIZE_UNIT_OIDS, > > FH> whereas the value pa

Re: sysObjectID still returns an incorrect value

2010-09-15 Thread Fulko Hew
On Wed, Sep 15, 2010 at 2:52 PM, Fulko Hew wrote: > As long as I was testing 5.6.rc2, I thought I'd test it to > see if the 'sysObjectID is truncated' issue was resolved. > > What I see is that the value is now returned as padded with zeros. &

sysObjectID still returns an incorrect value

2010-09-15 Thread Fulko Hew
As long as I was testing 5.6.rc2, I thought I'd test it to see if the 'sysObjectID is truncated' issue was resolved. What I see is that the value is now returned as padded with zeros. I.e. 1.3.6.1.2.1.1.2.0: 1.3.6.1.4.1.8072.3.2.10.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 and

Re: how should agents handle an 'out-of-range' index ?

2010-09-15 Thread Fulko Hew
On Wed, Sep 15, 2010 at 12:01 PM, Fulko Hew wrote: > On Wed, Sep 15, 2010 at 11:23 AM, Dave Shield > wrote: > >> On 14 September 2010 16:55, Fulko Hew wrote: >> > When I ran this test, the agent died and needed to be restarted. >> >

Re: how should agents handle an 'out-of-range' index ?

2010-09-15 Thread Fulko Hew
On Wed, Sep 15, 2010 at 11:23 AM, Dave Shield wrote: > On 14 September 2010 16:55, Fulko Hew wrote: > > When I ran this test, the agent died and needed to be restarted. > > The variable I was querying was: > > > > 1.3.6.1.4.1.2021.8.1.103.4294967295 aka 'UCD-SN

Re: how should agents handle an 'out-of-range' index ?

2010-09-15 Thread Fulko Hew
On Wed, Sep 15, 2010 at 9:27 AM, Fulko Hew wrote: > On Tue, Sep 14, 2010 at 11:55 AM, Fulko Hew wrote: > > ... snip ... > >> When I ran this test (snmpgetnext), the agent died and needed to be >> restarted >> >> snmpgetnext -v1 -cpublic -Ir localhost 1.3.6.1.4

Re: how should agents handle an 'out-of-range' index ?

2010-09-15 Thread Fulko Hew
On Tue, Sep 14, 2010 at 11:55 AM, Fulko Hew wrote: ... snip ... > When I ran this test (snmpgetnext), the agent died and needed to be restarted. > The variable I was querying was: > > 1.3.6.1.4.1.2021.8.1.103.4294967295 aka 'UCD-SNMP-MIB:extIndex'. > > (F

how should agents handle an 'out-of-range' index ?

2010-09-14 Thread Fulko Hew
I've been coding and testing my 'client agent' test suite, and while testing it against Net-SNMP (5.4.2.1) on Fedora 8 I've been able to lock up the client. The test I am performing is: 'Test that end of table handling properly goes to the next variable.' I do this by: 'Determine the last colum

snmpd returns truncated sysObjectId

2010-08-18 Thread Fulko Hew
a) last week someone posted a patch on the net-snmp-bugs list to fix a sysObjectId directive truncation problem, b) last nov 30 (2009) someone posted a patch to fix a sysObjectId truncation problem c) in july 2006 someone complained about sysObjectId truncation. I was sadly bit by this bug toda

Re: is there a quick hack to force a canned response for an arbitrary OID?

2010-08-12 Thread Fulko Hew
On Thu, Aug 12, 2010 at 9:36 AM, Dave Shield wrote: > On 12 August 2010 14:27, Fulko Hew wrote: > > I'm trying to help someone implement support for a private MIB, > > and he needs to (temporarily) respond to a particular OID in order > > to fake out an NMS to query tha

is there a quick hack to force a canned response for an arbitrary OID?

2010-08-12 Thread Fulko Hew
I'm trying to help someone implement support for a private MIB, and he needs to (temporarily) respond to a particular OID in order to fake out an NMS to query that private MIB he's testing. Is there anything I can add to snmpd.conf to accomplish this? I can add a line to force a canned response f

Re: SNMP walk not displaying complete mib oid\'s

2010-07-16 Thread Fulko Hew
On Fri, Jul 16, 2010 at 8:21 AM, Dave Shield wrote: > On 16 July 2010 13:11, wrote: > > It times out while we are walking through mib file we created for our > > hardware. > > Then the problem must lie within the code that you have > written to implement your MIB. > > This is the first time that

Re: snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero

2010-07-14 Thread Fulko Hew
On Wed, Jul 14, 2010 at 3:33 PM, Randall C Grimshaw wrote: > Dave (cc: Fulko, etc) > > When I tried to remove the RFC1213-MIB the apps fail. > ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.443: Unknown > Object Identifier (Sub-id not found: (top) -> ip) > > The only DISPLAY-HINT I

Re: snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero

2010-07-14 Thread Fulko Hew
On Wed, Jul 14, 2010 at 12:16 PM, Randall C Grimshaw wrote: > Fulko: > > > > Your assistance is greatly appreciated. > > > > I apologize for making you want to don the lawyers hat, that was not my > intention. But could you find your technicians hat for a moment. > ... snip ... > Can you

Re: snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero

2010-07-14 Thread Fulko Hew
On Tue, Jul 13, 2010 at 3:15 PM, Randall C Grimshaw wrote: > No luck in forcing the IP-MIB. > I guess I do not understand the DISPLAY-HINT association. The type is > clearly defined in the MIB files and do not know why it would not be > considered a bug that a MAC address that does not start with

Re: Very Newbie: Converting a complex MIB file with mib2c

2010-07-02 Thread Fulko Hew
On Fri, Jul 2, 2010 at 9:11 AM, Stavros Tsolakos wrote: > Hi all. > > I am really new to SNMP and net-snmp. I have a MIB file from a network > switch and i wanted to make a custom subagent to make the snmpd of my > workstation report some dummy data, as if it were the switch. I have > managed to b

Re: NMS IP address from Perl NetSNMP::agent API

2010-06-14 Thread Fulko Hew
On Mon, Jun 14, 2010 at 10:47 AM, Joao Ferreira gmail < joao.miguel.c.ferre...@gmail.com> wrote: > On Mon, 2010-06-14 at 08:26 -0400, Fulko Hew wrote: > > > getSourceIp and getDestIp can be used to find the requestor and the > > target addresses. > > Ok, that is g

Re: NMS IP address from Perl NetSNMP::agent API

2010-06-14 Thread Fulko Hew
On Mon, Jun 14, 2010 at 6:15 AM, Joao Ferreira gmail < joao.miguel.c.ferre...@gmail.com> wrote: > can I read the NMS IP address from within a perl NetSNMP::agent ? > > I've searched the docs at CPAN but I can't find anything there. > getSourceIp and getDestIp can be used to find the requestor an

Re: Problem trying to set the value of an IP address

2010-06-03 Thread Fulko Hew
On Thu, Jun 3, 2010 at 3:15 AM, Roycey Cheeran wrote: > Hi All > > I am trying to set an oid with a IP address with no luck so far. > > The OID is 1.3.6.1.4.1.9.9.42.1.2.2.1.2.1 > > My snmpset command is > > snmpset -v2c -c NE 192.168.101.3 1.3.6.1.4.1.9.9.42.1.2.2.1.2.1 s > 61.246.208.125 > > I

Re: SNMP subagent in C + exec_command or similar

2010-05-07 Thread Fulko Hew
2010/5/7 Hársszegi Tibor > Hi, > > have tried exec_command not much luck :( > I am trying to run scripts, like > > cat /proc/cpuinfo | grep vendor_id | awk '{print $3}' > > and similar. > No matter how I tried using SHPROC or EXECPROC (although I don't really > see SHPROC being handled at all any

net-snmp, agent x and c#

2010-04-20 Thread Fulko Hew
Does anyone have any experience in creating Agent X subagents in C#? I have a project that is being written in C# (.Net) that needs to have SNMP telemetry and traps added, and therefore I'm looking for some kind of library that those developers could use to provide connectivity to the Net-SNMP mas

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Fulko Hew
On Wed, Apr 7, 2010 at 8:43 AM, Dave Shield wrote: > 2010/4/7 Fulko Hew : > >> I'm surprised at this output - I'd expect it to display "51" > >> instead of "39" > > > > I'm not. Although I haven't looked at net-snmpd&#

net-snmp-users@lists.sourceforge.net

2010-04-07 Thread Fulko Hew
2010/4/7 Dave Shield > 2010/4/7 黎明傲子 : > > successful,but if I enter the command line snmpd &,always some date > appears, > > like > > # snmpd -f & > > 36 > > I want to know why this happened, > > The charcter '&' means that you are running this command as a > "background process". The number th

Re: NetSNMP::agent help

2010-03-22 Thread Fulko Hew
As Dave Shield always says: "Please do *NOT* send me private mail directly. All requests for support with the Net-SNMP software should be via the mailing list." On Mon, Mar 22, 2010 at 5:03 AM, Milena wrote: > Hi, > > I have already read this tutorial, and a want to run a sub-agent as an > emb

Re: NetSNMP::agent help

2010-03-19 Thread Fulko Hew
On Thu, Mar 18, 2010 at 11:06 AM, Milena wrote: > Hi , > I want to run SNMP Sub-agent, but I don't know how. > > Can you help me? > My SNMP Sub-agent source is perl source code and it is equal to the > example on > http://search.cpan.org/~HARDAKER/NetSNMP-agent-5.0401/agent.pm#EXAMPLES

  1   2   >