Ok after reading readm.win32 file a little more I gor the picture.Thanks, Garyc gary clark [EMAIL PROTECTED] wrote:Hello,Having a wee' problem trying to see whether the generated MIB template code is being added to the agent.1) I create a directory in : C:/net-snmp-5.3.1/agent
Hiya,
Been trying to build this windows Net-SNMP perl
version.
I downloaded ActivePerl which was fine for performing
get and set operations.
However I wanted to use the mib2c command to generate
the templates however this requires the Net-SNMP perl
installation.
Can somebody point to or offer
Hey,
I have a quick question regarding Net-SNMP on windows:
Just installed Net-SNMP 5.1.3.
Built snmpd and setup the snmpd.conf file.
Ran the command:
snmpd -a -d -Lf tempfile
I then perform the command:
snmpget -v 2c -c public localhost sysUpTime
on the same machine:
When examining
not read Started, right-click
and select Start.
Then try your command again.
Hope this helps...
Juan
gary clark [EMAIL PROTECTED] wrote:
Hey,
I have a quick question regarding Net-SNMP on
windows:
Just installed Net-SNMP 5.1.3.
Built snmpd and setup the snmpd.conf
I meant to say I already set up the cygwin on windows. Marvellous.
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Dave Shield [EMAIL PROTECTED]
Cc: PAUL WILLIAMSON [EMAIL PROTECTED];
net-snmp-users@lists.sourceforge.net
Sent: Thursday, September 29, 2005 2:01 PM
Subject: Re
@lists.sourceforge.net
Sent: Saturday, September 24, 2005 4:56 PM
Subject: Re: Windows Net-SNMP
Why not just use the net-snmp for windows?
It's a 32-bit exe, listed un der 5.2.1.2 binaries, about
1/3 down the page. Works like a charm too...
Paul
Gary Clark [EMAIL PROTECTED] 09/24/05 4:57 PM
Hello,
Quick
Hello,
Quick question. I managed to use linux redhat 9 and NET-SNMP 5.1.2 and it
worked like a charm. Well the mantra was indeed long but eventually I got
it. They now want me to use Windows XP? Any advise on this would be helpful.
I thought I could download cygwin and just use windows like a
what I was told is that Net-SNMP is not thread safe. So be careful. Is this
a Red-Hat 9 system?
Cheers,
Garyc
- Original Message -
From: [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Thursday, August 11, 2005 3:47 PM
Subject: Threading and Net-SNMP
I'm still having
Can you run snmpd -D? This should dump the /var/snmpd.log. Have you modified
snmpd.conf?
Thanks,
Garyc
- Original Message -
From: Ben Z [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Sent: Thursday, August 11, 2005 1:32 PM
Subject: Re: [Bulk] Re: What am I missing (traps
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 02, 2005 8:23 AM
Subject: Re: How to get data in table through C code?
Hello All,
Ha-hum! please read the FAQ this is an excellent starting point to
understand what the hell is
going
Hi,
What is this fusiv_linux? Do we have a net-snmp installation for this? I
know for sure that net-snmp-5.1.2 works for RH9 and is
fairly simple to install and build...or is my memory that blow.
Thanks,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: M. Vivek [EMAIL
Has anybody ran purify on this ?
Cheers,
Garyc
- Original Message -
From: Wes Hardaker [EMAIL PROTECTED]
To: Andy Ford [EMAIL PROTECTED]
Cc: Wes Hardaker [EMAIL PROTECTED];
[EMAIL PROTECTED]; Net-Snmp (E-mail)
net-snmp-users@lists.sourceforge.net
Sent: Wednesday, April 20, 2005 1:43 PM
of course would not call the delete existing row. Now I have come to
my senses
and realize that I should chew on a carrot and lean towards sanity on this
issue. There is no leak.
Thank you.
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent
? Has anybody an
answer to this or seen this? its like row is marked as deleted but not
removed?
Thanks,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: net-snmp-users@lists.sourceforge.net
Sent: Tuesday, April 19, 2005 6:03 PM
Subject: Net-SNMP 5.1.2 Memory leaks
hello
hello,
Has anybody seen the memory leaks with Red Hat 9 Net-SNMP 5.1.2?
I'm using the function CONTAINER_REMOVE to remove the context but its looks
like
it does not free memory? Eek? Has anybodyelse seen this? The context does
appear to be free from the list but no memory deallocation?
Thanks,
Hi Robert,
Yeh thats true that would work.
Thanks,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Wednesday, December 29, 2004 5:49 PM
Subject: Re: Mib row deletion
On Wed, 8
-
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: net-snmp-users@lists.sourceforge.net
Sent: Monday, December 27, 2004 8:59 AM
Subject: Re: Deletion of rows from tables
On Thu, 23 Dec 2004 11:20:58 -0600 Gary wrote:
GC mib2c was used tocreate a template from
-
From: Russ Woodman [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:22 AM
Subject: Re: Cannot Process SNMP Traps
Hi,
You are correct in your assessment. I'm running snmpd and snmptrapd on
the same machine in this instance. My Ethernet ports are set up
My apologies what I wanted to say was I'm guessing snmptrapd doesnt know
about snmptrapd.conf.
Thanks,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Russ Woodman [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:47 AM
Subject: Re
]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 9:47 AM
Subject: Re: Cannot Process SNMP Traps
Gary,
I didn't built snmp, I installed it from debs, so I don't know what the
trap community would be. However, I did put these lines in snmpd.conf
Hi Russ,
Can you please run:
snmptrapd -c /home/snmptrapd.conf
with the configuration file I sent you. The perl script I also provided
should be in the same directory that you have the snmptrapd.conf.
Thanks,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL
Have a wee' brouse at the notification.c in the examples directory of you
net-snmp installation.
Cheers,
Garyc
- Original Message -
From: Mike Mohamet [EMAIL PROTECTED]
To: Net-Snmp [EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:57 AM
Subject: Traps creation
Hi all,
I am
Hi,
snmptrapd -c /home/garyc/snmptrapd.conf
I sent the snmptrapd.conf I use for coldstart trap out yesterday and also a
perl script you can use
inconjunction with the snmptrapd.conf.
Have you tried doing that?
Thanks,
Garyc
- Original Message -
From: Russ Woodman [EMAIL PROTECTED]
To:
Have you configured your ip machine correctly?
ipconfig
Thanks,
Garyc
- Original Message -
From: Darren Gamble [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 15, 2004 3:55 PM
Subject: Repost: Unable to send v2 coldstart traps under 5.2
Good day,
I sent this
Hello,
Only the first line of the snmptrapd.conf is relevant. Its the coldstart
trap. You need to remove the rest.
I'm too idle. The trap.pl is the script which trapd will call when it
receives the coldStart trap after
you initialised your agent correctly. The trap.pl will dump the trap
Hello,
A quick question on deleting mibs. I'm using mib2c to generate the c code.
All very dandy except I'm not on exactly how
to remove rows from the table. I thought I could use
CONTAINER_REMOVE(sig.container,row_ctx);
This does indeed remove the row from the mib table however I'm seeing an
oh boy!!!
- Original Message -
From: Gemma Snchez [EMAIL PROTECTED]
To: Users [EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 6:36 AM
Subject: What is a SNMP session?
Hello
I am finishing my tasks with NET-SNMP. These tasks are a part of my
thesis.
In this state, a doubt
hee,hee.
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Dave Shield [EMAIL PROTECTED]
Cc: NetSNMPUsers [EMAIL PROTECTED]
Sent: Friday, November 19, 2004 8:57 AM
Subject: Re: WRB - mib2c anomaly.
On Fri, 19 Nov 2004 10:24:09 + Dave wrote:
DS Yes - this is the
Hello,
To append what Robert stated. Yes of course you can do this. Basically ( I
hate using that word but at this time
it seems appropriate) you will register a callback function which is
associated to a token. The token eg a unique string pattern
will exist in the persistence file i.e
Are you attempting to build this on Linux? If so you need to have a complete
installation. Not partial when installing on linux.
You will get missing libraries if you only partially installing and yes
lcrypto is one of those missing libs. I also hit this problem.
Cheers,
Garyc
- Original
rpm -i net-snmp-5.1.2-1.rh9.i386.rpm --nodeps
Cheers,
Garyc
- Original Message -
From: Jon Hoover [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 29, 2004 11:11 AM
Subject: Install on Redhat ES with RPM
How can I tell the rpm not to install SNMP with perl modules?
(Users) [EMAIL PROTECTED]
Cc: Gary Clark [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 8:06 AM
Subject: Re: Sending traps in another thread
On Thu, 28 Oct 2004 09:39:43 +0100 Dave wrote:
DS Robert Ok, lets see if I got this right. You have the main agent
thread,
DS Robert
Well I've got running and I'm seeing no problems of conflict. No downloads
requests are handled whilst the mutex is locked hence
only a single trap is sent and only any one download requests is handled at
any one time.
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary
Yes,
I have sent traps in using a pthread. No problem. Are you trying to free a
PDU that has not been malloc?
Segmentation faults are usual candidates (using the the political term) for
bad memory accesses.
So your pointer may be invalid? Can you dump out what you allocate and what
you free?
on.
send_v2trap is what I am using.
Much appreciated,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 10:23 AM
Subject: Re: Sending traps in another thread
On Wed, 27 Oct 2004
. Once complete the lock is disabled. The thread
resources are removed once the thread exits.
Thanks,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 1:28 PM
Subject: Re: Sending
on.
No shared libraries are pulled in.
Much appreciated,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 25, 2004 5:19 PM
Subject: Re: Packaging of snmpd
Hello,
I rebuilt the executable. Yes it does build
Hello,
I have a couple of questions:
1) I want the snmpd executable to be self-contained and not dependant on
installation of net-snmp. Is this possible.
The snmpd excutable resides in nets-snmp5.1.2/agent/.libs and when excuted
when net-snmp has been installed
everything is starts correctly.
Much appreciated that looks like its doing the job. Very nice.
Cheers,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 25, 2004 3:12 PM
Subject: Re: Packaging of snmpd
On Mon, 25 Oct
My beloved company has asked me to write another agent. Yep no rest for the
wicked.
They want me to write a net-snmp agent(A) that can send set and get requests
to another snmp agent(B) whilst agent(A)
can receive set and get requests from the NMS (which I contructed using
perl).
I went over some
Yeh thats it.
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Dave Shield [EMAIL PROTECTED]
Sent: Friday, October 22, 2004 10:48 AM
Subject: Re: Is it possible? I'm sure it can be done
Yeh thats it.
- Original Message -
From: Dave Shield [EMAIL PROTECTED
. I misunderstood the usage of the
NOTIFICATION_TYPE.
Much appreciated,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:31 AM
Subject: Re: trap question
4) Pull a link which has
Hi Dave,
I have just found an example.
In /net-snmp/agent/mibgroup/example/notification.c
I will use this code if thats Ok?
Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3
Ahh ''mib2c -c mib2c.notify.conf' would seem to be the magic charm I'm
seeking.
Much appreciated,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 8:54 AM
Subject: Re: trap question
Just imnplemented the traps into the agent. Works like a charm. I wrote a
perl script which dumps all traps.
Again they should seriously reward the support on this. No question.
Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc
Hello,
1) Start snmptrapd
2) Start snmpd
3) Perl script is fired and I dump the coldStart data to a file which is
what I expect to see.
4) Pull a link which has an associated MIB oid type of NOTIFICATION_TYPE
5) The link oid exists in the snmptrapd.conf file
I see that thesnmptrapd does indeed
Thanks for tha advise Robert. I guess I need to do some more research on how
to constructy this baby the NMS.
Cheers,
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, October 02, 2004 12:03 PM
Hello,
Ok built the agent (very dandy) works like a charm. The question I have is
where do I begin with the master agent?
Whats the approach? Any ideas would be useful?
Thanks,
Garyc
---
This SF.net email is sponsored by: IT Product Guide
Hello,
Does anybody know if there is a CLI (command line interface) application
that presents data in a better format than using the snmpget and snmpset
routines for linux?
I dont want to embark on writing an application if there is one that
currently exists. If anyone knows where I can access
Hello,
Have you tried to perform an snmptranslate on a MIB item that currently
exists? Was it successful.
i.e
snmptranslate -On SNMPv2-MIB::coldStart
Thanks,
Garyc
- Original Message -
From: Capacci Thomas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 11, 2004 6:09
Hi Dave,
Yep did that. Its looks like its doing something different.
I see it crashing with a broken pipe? Any ideas?
Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 9:26 AM
and it does receive the coldStart trap I just dont see
my script being ran.
Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 9:26 AM
Subject: Re: Adding traps
I can see
Hello,
I correct the perl script to dump to a text file and everything works fine.
Thanks,
garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]; Dave Shield
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 10, 2004 3:36 PM
Subject
Hiya,
What I did when trying (still trying) to understand this baby was fill it
with trace. There are examples already in the code.
However run the snmpd agent with -d or -D this will dump allow you to see
some action. See the log file in /var/net-snmp/snmpd.log.
Providing you have built
I didnt know we could pass multiple requests. Thats good.
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: MrD [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 6:37 PM
Subject: Re: configuring VLANS or multiple variable sets in one SNMP command
Ahh. Much appreciated.
Garyc
- Original Message -
From: Robert Story (Users) [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: Gary Clark [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, August 28, 2004 7:49 PM
Subject: Re: Being persistent with persistence
On Sat, 28 Aug
Hello,
Ok I messed up somewhere. Just dont know where. I think its an environment
variable issue?
I have been using persistence. Extracting tokens and creating oids in my MIB
tree and all is well.
Then I did something which has caused my environment to change. I cannot get
persistence to load
the persistence and re-create the oids.
The question begs. The SNMPCONFPATH points to the general agent
configuration. Should there be two configuration files?
I think there should just be one right?
Thanks,
Garyc
- Original Message -
From: Gary Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED
Hello,
Is there a policy for commiting MIBS to persistence in net-snmp. At the
moment all SET actions are followed by a COMMIT.
I then cycle through the columns of the row and insert them into the
persistence file. Not really what I should be doing.
Only when a selected field is set (i.e
Perform ps -A to see if the agent is running. How did you build the agent
V2,V1?
Thanks,
Garyc
- Original Message -
From: Marlena Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 2:19 PM
Subject: RE: no response
Yes, snmpd is
Hi,
I was advised to stick with the current approach of generating template code
and filling the code out to get persistence to work.
Basically I can save the mib to a persistence file and reload the
persistence into the mib. When set requests are performed the agent updates
the mib and the
Hello,
After I have implemented the changes in the template code generated the I
realise that I need to add something to the MIB.
Can I just make the change to the XX-MIB.txt file and then make the changes
to the .c and .h files and rebuild?
Or are there additional bindings needed?
Thanks,
Hello,
I have generated the templates using the mib2c command.
I initially chose to use the templates that contained tables which are
contained in internal memory.
When the agent dies...the tables die without any persistence.
Having tried out the get and set routines which work like a charm on
hello,
I am running Linux version 9 with version 5.1.1 of net-snmp.
I have added and built the MIB and included it into the directory
/usr/local/share/snmp directory.
Generated the templates successfully and moved them into mibgroup and
created the top header with
the config_require(mibfiles.c)
Much appreciated Wes. The light bulb has just lit-up.
Thanks for the quick response.
Cheers,
Garyc
- Original Message -
From: Wes Hardaker [EMAIL PROTECTED]
To: Gary Clark [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, July 30, 2004 3:14 PM
Subject: Re: walking snmpd
On Fri
Hello,
Ok I read the FAQ on UnLinked OID and even though
its a relevant definition I dont think
it relates to the problem I am seeing.
I am basically building a simple table,populate all
the object elements etc and then run mib2c.
It goes ahead and constructs the templates and
kindly asks
Yeh I had that exact problem yesterday. I am
ensuring today that my Linux version of RedHat 9is complete on my
machinetoday.
I'm hoping that will resolve the issue and have all
the.pm module etc. Thisis painful especially when I'm not sure if
this is going to resolve
the problem.
I tried
We are doing a complete installation of linux redhat version 9 and will let
you know how the ship goes.
Cheers,
Garyc
- Original Message -
From: Dave Shield [EMAIL PROTECTED]
To: Christina McAghon [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 10:35 AM
Subject: Re:
Running net-snmp-5.1.2.pre3 release.
When performing the following
$ mib2c etherStatsEntry
It looks like the two expected templates get
generated:
etherStatsEntry.c and
etherStatsEntry.h
However I then see the following:
running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996):
Running net-snmp-5.1.2.pre3 release.
When performing the following
$ mib2c etherStatsEntry
It looks like the two expected templates get
generated:
etherStatsEntry.c and
etherStatsEntry.h
However I then see the following:
running indent on etherStatsEntry.c
C:\cygwin\bin\perl.exe (3996):
70 matches
Mail list logo