netsnmp_table_row_add_index

2007-08-29 Thread Nikolett C
Hi! Where can I find anything about this command: 'netsnmp_table_row_add_index()' ? It's in the data_set.c: netsnmp_table_row_add_index(row, ASN_OCTET_STR, "snmpv3", strlen("snmpv3")); I'd like to use Unsigned32 index instead of string index. netsnmp_table_row_add_index(row, ASN_UNSIGNED, 1,

How to complie NET-SNMP source into 64bit binary

2007-08-29 Thread Liangliang Guo (SH/CBC)
Hi Everyone: How can I complile NET-SNMP with gcc or Sun cc 64it complier in Sun Solaris 10. What directive should I turn on for the gcc or Sun cc complier. And what direcitve should I turn on for the "configure" script as well. Thanks. Best Regards Leon Guo Ericsson (China) Communication Co.,

pass command in snmpd.conf doesn't work as expected

2007-08-29 Thread Stefan Guenther
Hello, following the example in the snmpd.conf (and a number of articles and postings) I have entered the following line: pass .1.3.6.1.4.1.2021.255 /bin/bash /bin/root.sh The script root.sh is executeable and looks like this: #! /bin/bash echo "42" # End According to the example I enter

book

2007-08-29 Thread Nikolett C
Hi there! Could you please send me some titles of books, from which I could learn how to write agents, which functions are usable... Thanks a lot! Nikolett- This SF.net email is sponsored by: Splunk Inc. Still grepping th

SNMP v3 user

2007-08-29 Thread Mateus Interciso
Hello, I'm trying to create a valid rwuser, using V3 of course. I've read the manual on snmpd.conf, and it says I can use a tool named snmpusm, on that manual, it has an example, which I'm trying to make, but I always get an error. The example says to have this lines on the snmpd.conf file rwus

Re: system name

2007-08-29 Thread Nikolett C
Hi Everyone! So, this is hostname in a predefined MIB: sysName OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) MAX-ACCESS read-write STATUS current DESCRIPTION "An administratively-assigned name for this managed node. " ::= { system 5 } To MY-MIB I have to write this, if I'm not mistaken

RE: How to complie NET-SNMP source into 64bit binary

2007-08-29 Thread Bruce Shaw
Have you read README.solaris? >How can I complile NET-SNMP with gcc or Sun cc 64it complier in Sun Solaris 10. >What directive should I turn on for the gcc or Sun cc complier. >And what direcitve should I turn on for the "configure" script as well. This email and any files transmitted with i

Agent X and Issue in net-snmp 5.4.1

2007-08-29 Thread uonedang Dang
Hello All, I plan to use AgentX from net-snmp 5.4.1, I have the SNMP master agent running ... I am writing the sun-agent X application .. everything is OK and SNMP queries worked fine. I need to have my sub-agent an multi-threaded application ... as soon as add -lthread (

RE: SNMP v3 user

2007-08-29 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mateus Interciso > Sent: Wednesday, August 29, 2007 7:43 AM > Error in packet. > Reason: inconsistentValue (The set value is illegal or unsupported in > some way) > Failed object: > SNMP-USER-BASED-SM-MIB::usmUserStatus."

Re: SNMP v3 user

2007-08-29 Thread Mateus Interciso
I don't think I have the user, since this is the first time I tryed, and it gives me the same error with any user I select (even random leters) On 8/29/07, Mike Ayers <[EMAIL PROTECTED]> wrote: > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Mateus Interciso > > Sent: We

Sending trap by myself without passing through master agent

2007-08-29 Thread DI BACCO ANTONIO - technolabs
Is it possible to call a function to give me the UDP packet that should be send as a trap? I want to send it by myself, I'm in a subagent and I don't want to deliver it to the master agent. Bye, Antonio. - This SF.net email i

question about mib tree parser

2007-08-29 Thread Shawn_He
Does net-snmp support an api that allows to read in a mib file and returns a pointer to the mib tree that is generated based on the mib file? Thanks. -- Shawn He Online Technology Office:858-824-5969 Fax: 858-824-5878 AIM: CivRealtor ---

Re: Agent X and Issue in net-snmp 5.4.1

2007-08-29 Thread Thomas Anders
uonedang Dang wrote: > I plan to use AgentX from net-snmp 5.4.1, > > I have the SNMP master agent running ... > > I am writing the sun-agent X application .. everything is OK and SNMP > queries worked fine. > > I need to have my sub-agent an multi-threaded application ... as s

RE: SNMP v3 user

2007-08-29 Thread Mike Ayers
> From: Mateus Interciso [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 29, 2007 11:38 AM > I don't think I have the user, since this is the first time I tryed, > and it gives me the same error with any user I select (even random > leters) I cannot reproduce your problem, so I'm ou

RE: How to complie NET-SNMP source into 64bit binary

2007-08-29 Thread Liangliang Guo (SH/CBC)
--Have you read README.solaris? >How can I complile NET-SNMP with gcc or Sun cc 64it complier in Sun Solaris 10. >What directive should I turn on for the gcc or Sun cc complier. >And what direcitve should I turn on for the "configure" script as well. Answer: Yes I have read it.Previously ou

RE: Length of string variable in a Trap

2007-08-29 Thread Edison C.
Thanks Mike. What is the maximum length of a SNMP packet supported by NET-SNMP? Is it 64KB since max size of UDP packet size is 64KB? I am planning to have at-least 2 variables of 4096 length. Is that a cause for concern? Thanks Edison -Original Message- From: Mike Ayers [mailto:[EMAI

Re: How to complie NET-SNMP source into 64bit binary

2007-08-29 Thread Thomas Anders
Liangliang Guo (SH/CBC) wrote: > But we found that some compilation errors.Yesterday after I ask the > community on this issue, I tried to compile again with this option > --with-out-mib-modules=if-mib and it successfully passed the > compilation. > So I don't know whether it is right or not by usi