On Thu, 7 Jul 2005 15:41:31 +0530 aakansha wrote:
AR> If a type of oid is ASN_UNSIGNED in ASN.1 , what type of variable (to
AR> hold the value of the oid) should I declare in the corresponding C
AR> file?
AR>
AR> What I have declared was
AR>
AR> u_long position;
AR>
AR> This is the variable goi
I am having a doubt in data type declaration.
If a type of oid is ASN_UNSIGNED in ASN.1 , what type of variable (to
hold the value of the oid) should I declare in the corresponding C
file?
What I have declared was
u_long position;
This is the variable going to hold the value of oid of type
ASN
While executing SNMP-SET, (ie., saving from our application does snmp
set for an array of oids)
the save failed and I captured the packets. The decoded message of the
snmp-set is
showing
I am just sending a part of decoded message.
Community : private
Command : Get Response
Request ID: 19
Error S
On Tue, 2005-06-28 at 09:57, aakansha rajvi wrote:
> Actually I executed like "snmpd -D" while starting the agent.
>
> But I got the lot of logs as you said.. Can you explain with an
> example if you dont mind?
Sure - try:
snmpd -f -Le -Dparse_mibs
That gives:
read_config: reading prem
Sorry Dave..
Actually I executed like "snmpd -D" while starting the agent.
But I got the lot of logs as you said.. Can you explain with an
example if you dont mind?
Thanks.
On 6/28/05, Dave Shield <[EMAIL PROTECTED]> wrote:
> On Tue, 2005-06-28 at 08:47, aakansha rajvi wrote:
> > Can anybody
On Tue, 2005-06-28 at 08:47, aakansha rajvi wrote:
> Can anybody tell me what is the option that be used to view the
> result of DEBUGMSGTL?
-D{token}
where {token} is the first parameter to the DEBUGMSGTL call.
You can also run with '-D' to turn on *all* debugging.
But that results in a
Can anybody tell me what is the option that be used to view the result
of DEBUGMSGTL?
Thanks
Aparna.R
On 6/28/05, aakansha rajvi <[EMAIL PROTECTED]> wrote:
> While doing set operation using our application with the simulated
> device, the save operation is not successful and I got an information
While doing set operation using our application with the simulated
device, the save operation is not successful and I got an information
like "SNMP Error with the agent". So I tried to capture packets during
set operation.
Set operation is done for only one scalar oid and its type is IPAddress.
On Thu, 23 Jun 2005 10:09:23 +0100 Dave wrote:
DS> On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote:
DS> Then you need to check the length of the incoming value, to
DS> see whether it will fit. Something like:
DS>
DS> if (requests->requestvb->val_len >= 10 ) {
DS> netsnmp_set_reques
Dave,
It is working fine now. :-)
The problem is for a Read-Write OID I didnt implement
SET_ACTION,RESERVE1 etc., Now I fixed that issue.
Moreover sysLocation and sysContact being a read-write oid, I
configured them in snmpd.conf
during agent configuration which will write-protect these oids.
On Fri, 2005-06-24 at 07:33, aakansha rajvi wrote:
> I want to capture the snmp packets alone as a result of snmpget
> and snmpset operations.
> I want to know how to frame the "tcpdump" command to do this.
Untested, but something like
tcpdump udp port 161
should do the trick.
You mi
First of all please excuse me to ask an out-of-topic question, but
with a hope that there may be some experts since this question is
somewhat related to snmp.
I am running agent in my pc say 192.168.9.1 and port 161.
I want to capture the snmp packets alone as a result of snmpget and
snmpset oper
On Thu, 2005-06-23 at 12:42, aakansha rajvi wrote:
> The Read-only oid I had mentioned in my previous post is not in
> the source code that I attached the first.
Fair enough.
What does the registration code for this MIB object look like?
> Actually it is an oid having read-only access in the MIB.
The Read-only oid I had mentioned in my previous post is not in the
source code that I attached the first.
Actually it is an oid having read-only access in the MIB. Since this
is a read-only, I am having MODE_GET alone in my compiled C file.
I dont know how it is looking for SET_RESERVE1 or SET_A
On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote:
> I replaced strcpy by strncpy and it is working for me.
> But the problem is, I have allocated memory for "rcommunity" by
> using array
>
> char rcommunity[10];
>
> Since this is the case, if I SET private1233, the size of which is
> greater t
I replaced strcpy by strncpy and it is working for me.
It is working fine if I SET "test123" first and then again SET "try0" ie.,
the result of snmpget is giving me the correct value what I SET.
But the problem is, I have allocated memory for "rcommunity" by using array
char rcommunity[10];
Sin
On Wed, 2005-06-22 at 10:13, aakansha rajvi wrote:
> Since requests->requestvb->val.string holds the value what we setting
> ,I am copying this value into the string rcommunity
>
> strcpy(struct_obj.rcommunity,(void *)(requests->requestvb->val.string));
You need to take account of the 'requests->
When I inserted printf statement to see the value of ,
(void *)(requests->requestvb->val.string)
it itself is not being cleared. The problem started here itself and thats why
if I SET "test123" first and then SET "try0" it is showing "try0123".
Since requests->requestvb->val.string holds the va
On Tue, 2005-06-21 at 12:51, aakansha rajvi wrote:
> First if I set "test" to a string type oid , snmpget results in "test".
> Again if I set "try" to the same oid, the result of snmpget is "tryt"
> ie., the length of the variable holding this string is growing dynamically.
Not exactly.
It looks a
Hello,
This seems like a null termination issue (test
becomes tryt). I would suggest adding some printfs to
find out which function call is not writing the NULL
character.
Robert Wilcox
--- aakansha rajvi <[EMAIL PROTECTED]> wrote:
> Dave,
>
> Thanks for your help. It is working fine for
Dave,
Thanks for your help. It is working fine for me :-).
Another issue I am having is problem during get and set of string values.
First if I set "test" to a string type oid , snmpget results in "test".
Again if I set "try" to the same oid, the result of snmpget is "tryt"
ie., the length of t
On Tue, 2005-06-21 at 08:12, aakansha rajvi wrote:
> I am having an issue while implementing table type oids.
> I compiled the MIB using mib2c.create-dataset.conf
> If I do snmpget with multiple oids...
> Only the result of first oid is shown and for the second oid
> "No Such name in the MIB" is d
I am using net-snmp-5.2.1 in linux environmrnt and implemented the
private MIBS in the snmp agent.
I am having an issue while implementing table type oids. I wanted to
implement POWER-ETHERNET-MIB in my agent.
I compiled the MIB using mib2c.create-dataset.conf and implemented my
own structure to h
23 matches
Mail list logo