RE: iteration of entry in table

2005-04-06 Thread Jim Su
Hi Greeting: I've studied the sysORTable.c and it's implementation. I think I need to do some kind initialization for myTable like what it was implemented in register_sysORTable(). So myTable (a link list) stores the data to be returned by agent later on when it's called for all the instanc

Re: Agent example puzzle

2005-04-06 Thread John Pfaff
Setting the access control correctly did the trick. I added the lines rwcommunity public view all-mibs included .1 access notConfigGroup "" any noauth exact all-mibs none none to /etc/snmp/snmpd.conf and it works like a champ. I know I should probably make rwcommunity private, but this is just f

unsubscribe

2005-04-06 Thread 曲海平
net-snmp-users,你好!        致礼!  

root user insecure?

2005-04-06 Thread Curly Stooge
Running snmpconf I chose "nobody" as the user to run the snmpd as. What are the ramifications for doing so? Does this put limitations on the ability to read system process tables? My archetectures will be: Solaris 2.8, Suse SLES 8 and perhaps even Tru64 5.1b. Certainly I could see how you could n

Re: Support.

2005-04-06 Thread Alex Burger
Hi. Fady Naffah wrote: Dear sirs, I'm an engineering student in the Lebanese University, doing my Diploma project using your snmptrapd tool to log translated snmp directly to another program in a special format. I want to ask if you could point me to the variables used in the logging facility. ie,

Re: Why UDP

2005-04-06 Thread baskeböler
UDP is connectionless and requires less overhead. In a heavily congested and managed network, SNMP over TCP is a bad idea. When a network is failing, a protocol that tries to get the data through but gives up if it can't is a better design choice than a protocol that will flood the network with

MY-MIB problem!!!!!!!!!!!!!!

2005-04-06 Thread Jonathan Halpern
hi all, i'm quit new in snmp & NetSnmp I,m tryiing to add a MIB to the agent... so i have created MY-MIB , i have pasted it in /usr/local/share/snmtp/mibs... and i have added the mibs +MY-MIB... i have this problem: when i execute the getsnmp it says "Cannot find module (MY-MIB): At line 1 in (n

MY-MIB problem!!!!!!!!!!!!!!

2005-04-06 Thread Jonathan Halpern
hi all, i'm quit new in snmp & NetSnmp I,m tryiing to add a MIB to the agent... so i have created MY-MIB , i have pasted it in /usr/local/share/snmtp/mibs... and i have added the mibs +MY-MIB... i have this problem: when i execute the getsnmp it says "Cannot find module (MY-MIB): At line 1 in (n

2 questions.

2005-04-06 Thread Amrani, Shachar
Hi. I used net-snmp library to write an application which get data via snmp. My API contain 3 functions: 1. Open Session(host, community). 2. Close Session(). 3. Get data(oid). (=get single value.) it was very easy to understand it when using the tutorials. I want to ask: 1. How do I get an array

toolkit

2005-04-06 Thread Jonathan Halpern
Hi all, im quit new in snmp and i have already installed the NetSnmp v5.2 under my cygwin in windows XP. Im trying to write an agent...with netsnmp. can the toolkit be an answer?? How can install it? Is there any better option to start? thanks Jonathan

Re: How to add X.25/transmission RFC1382 module for net-snmp

2005-04-06 Thread Mobby
Do I need to study the Solaris X.25 API? I can use RFC1382-MIB (for X.25) and mib2.c to generate the transmission.c and transmission.h. But its transmission code is too short to get more MIB value. For example, I can't get all X.25 ports status and input/output traffic. The Solaris X.25 API can

Why UDP

2005-04-06 Thread Soori
All, In every SNMP document it is stated that SNMP uses UDP as transport. Can any body tell me is there any specific reason to use SNMP over UDP and not TCP ? I think Net-SNMP supports both TCP and UDP. Thanks in advance __ Yahoo! Messenger

Support.

2005-04-06 Thread Fady Naffah
Dear sirs, I'm an engineering student in the Lebanese University, doing my Diploma project using your snmptrapd tool to log translated snmp directly to another program in a special format. I want to ask if you could point me to the variables used in the logging facility. ie, if I want the host var

Re: How to get the compile option using snmpget command

2005-04-06 Thread Vincent AARON
Sorry. I have the solution snmpget -c public -v 2c linuxbox 1.3.6.1.4.1.2021.100.6.0 Regards Vincent AARON wrote: Hi all I'm using Net-SNMP 5.0.9 available on RedHat Enterprise Linux 3.0. I wonder if it's possible to get the compile option using tje snmpget command from the NMS to an agent. If ye

getting ucdavis.50.101 to output

2005-04-06 Thread Gary Benitt
I asked this question once before, but unfortunately didn't get a response and I still have not had any luck with it, so I'm giving it another shot... I'm trying to call an exec command with snmp and for whatever reason, I never get back the .101 node, which should have the data that I'm looking

Re: Problem Compiling

2005-04-06 Thread Alex Burger
(I moved this from snmptt-users to net-snmp-users) Miguel Gómez wrote: You are right, Dave. Traps are done to report changes in variables we are interested in. But, how could I do to send a trap periodically no matter its value changes or not? I have to monitor values like CPU load and send traps w

Re: Problem compiling

2005-04-06 Thread Thomas Anders
Wes Hardaker wrote: Miguel> I'm having problems compiling net-snmp in a Debian Sarge. First I do: Miguel> ./configure --enable-embedded-perl --enable-shared It looks like configure failed to figure out how to link perl into the application. My guess is that this will take a bit of work in figure o

just another agentx question

2005-04-06 Thread Jonas Dietsche
Hello List, I downloaded net-snmp-5.2.1 and installed it. Then I tried to follow the tutorial, especially the section writing a subagent program. When I start the example-demon I always get the message Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory)

Re: How can i compile...

2005-04-06 Thread Farazad Farhadzadeh
i want to know how i can compile new mib file for net-snmp manualy. -Original Message- From: Wes Hardaker <[EMAIL PROTECTED]> To: "Farazad Farhadzadeh" <[EMAIL PROTECTED]> Cc: net-snmp-users@lists.sourceforge.net Date: Wed, 06 Apr 2005 07:10:58 -0700 Subject: Re: How can i compile... >

Re: How to add X.25/transmission RFC1382 module for net-snmp

2005-04-06 Thread Wes Hardaker
> On Wed, 6 Apr 2005 17:57:03 +0800, "Mobby" <[EMAIL PROTECTED]> said: Mobby> If I design the transmission.c for Solaris by using Solaris Mobby> X.25 API, and built into snmpd. Then this method Mobby> (transmission.c) should not be portable to IBM and HP Unix Mobby> snmpd? So this snmpd is not

Re: Adding kerberos support to snmp v1 and v2

2005-04-06 Thread Wes Hardaker
> On Wed, 6 Apr 2005 14:21:35 +0300, Nektarios Leontiadis <[EMAIL > PROTECTED]> said: Nektarios> My plan is to create a tunnel through which the snmp Nektarios> packets will travel encrypted Ahhh Nektarios> Moreover as authentication will be introduced too, "set"s Nektarios> will be

Re: How can i compile...

2005-04-06 Thread Wes Hardaker
> On Wed, 06 Apr 2005 17:49:55 +0430, "Farazad Farhadzadeh" <[EMAIL > PROTECTED]> said: Farazad> I use UCD-snmp 4.2.6 in suse-9 linux. You should consider upgrading to something more recent, if at all possible. Farazad> I want to compile MPLS-LSR-MIB in linux,How can i compile mib Faraz

How can i compile...

2005-04-06 Thread Farazad Farhadzadeh
Hi all I use UCD-snmp 4.2.6 in suse-9 linux. I want to compile MPLS-LSR-MIB in linux,How can i compile mib in linux. regards. - Farzad FarhadZade --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hund

How can i compile...

2005-04-06 Thread Farazad Farhadzadeh
Hi all I want to compile MPLS-LSR-MIB in linux,How can i compile mib in linux. regards. - Farzad FarhadZadeh --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Di

Re: Agent example puzzle

2005-04-06 Thread Dave Shield
On Wed, 2005-04-06 at 13:28, John Pfaff wrote: > I hadn't thought of access control. > I do remember that when doing an snmpwalk the > only things outside the system group that showed up were > in the host resources group Then it's *definitely* access control settings. A common default config is

Re: snmptrapd format problems

2005-04-06 Thread Dave Shield
On Tue, 2005-04-05 at 11:57, Unger, Christian wrote: > 1.) The Snmptrapd Demon makes a new line after any Hex-STING (should be > a MAC-Address). That problem has been fixed in the most recent development code (on all three release branches, as well as the main code). The patch is appended. Apply

Re: Agent example puzzle

2005-04-06 Thread John Pfaff
I hadn't thought of access control. I'll look at that next. I don't have access to that system at the moment, I will in about 9 hours and I'll check. I do remember that when doing an snmpwalk the only things outside the system group that showed up were in the host resources group (assuming I reme

Re: Adding kerberos support to snmp v1 and v2

2005-04-06 Thread Nektarios Leontiadis
I do know the existance of KSM. My plan is to create a tunnel through which the snmp packets will travel encrypted. Moreover as authentication will be introduced too, "set"s will be safe to use. I don't think that changes to the snmp packet header will be necessary. The purpose of this effort is th

RE: RE: snmptrapd format problems

2005-04-06 Thread Unger, Christian
No it's the same. The syslog stream withaout any format Option, has no new lines ^^? -Ursprüngliche Nachricht- Von: Wes Hardaker [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. April 2005 23:21 An: Unger, Christian Cc: net-snmp-users@lists.sourceforge.net Betreff: Re: snmptrapd format

RE: iteration of entry in table

2005-04-06 Thread Jim Su
Thanks Dave. I got almost all the doubt answered. Yes, the table is indexed by an integer - in this case the moduleId is the index. However it can be any integer number set up by user. These number (moduleId) can be read by agent from a text file. According to the example at the init time the a

Re: How to get the compile option using snmpget command

2005-04-06 Thread Dave Shield
On Tue, 2005-04-05 at 10:23, Vincent AARON wrote: > I wonder if it's possible to get the compile option using the > snmpget command from the NMS to an agent. Depends what you mean by that. You should be able to retrieve the "configure" settings used when compiling the agent, by retrieving the valu

Re: about Disk IO

2005-04-06 Thread Dave Shield
On Mon, 2005-04-04 at 11:40, Ulaş Yüksel wrote: > ucdDiskIOMIB is DEPRECATED. What gives you that impression? There's no mention of this MIB being deprecated in the current releases. It's no longer being maintained by UCD, but that's because they've handed over responsibility to this project, no

Re: iteration of entry in table

2005-04-06 Thread Dave Shield
On Sun, 2005-04-03 at 14:00, Jim Su wrote: > I simply want the agent to "list" all the configured modules Nope - that's not how the agent works. The agent is asked for a particular value - either "give me this value" or "give me the next value after this". It's the *client* side (snmpwalk) that

Re: Problem Compiling

2005-04-06 Thread Dave Shield
On Tue, 2005-04-05 at 17:12, Miguel Gómez wrote: > > Err... but "memTotalReal" isn't a notification object. > > This parameter *MUST* be an object defined using > > NOTIFICATION-TYPE. > > So if I want to send a Trap about the memory avaliable in a machine, > what should I do? How do I know what I

Re: Agent example puzzle

2005-04-06 Thread Dave Shield
On Wed, 2005-04-06 at 05:14, John Pfaff wrote: > I can get other variables just find (sysUpTime.0, sysDescr.0, etc). Can you see anything *outside* the system group? This sounds suspiciously like access control problems. See the FAQ entry: I can see the system group, but nothing else. Why?