Re: map ethernet interface with ip address

2005-09-14 Thread Alaios
use it as a parameter to ths snmp_synch_response function.. Thx a lot Dave --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-09-14 at 03:49 -0700, Alaios wrote: > > Hi after fetching everything about interfaces now > i > > want to store the ipaddresses that the interf

map ethernet interface with ip address

2005-09-14 Thread Alaios
Hi after fetching everything about interfaces now i want to store the ipaddresses that the interface has... I have used in the past the status = snmp_synch_response(sess_handle, pdu, &response); function succesfully.. My problem is that i dont know what oid i should use so as to fetch the i

Fetching bunch of oids

2005-08-31 Thread Alaios
Good norning to all ... poking aroung in the sources... i have noticed the following declarations #define LABEL 1 #define SUBTREE 2 #define SYNTAX 3 #define OBJID (4 | SYNTAX_MASK) #define OCTETSTR(5 | SYNTAX_MASK) #define INTEGER (6 | SYNTAX_MASK) #define NETA

compile ucd-snmp mib for net-snmp

2005-08-29 Thread Alaios
Hi i have a mib for the ucd-snmp package http://dpnm.postech.ac.kr/research/01/ipqos/dsmib/ I have noticed that the specific software cant be compiled because the make returns the following error gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Dlinux -c diffse

Data types

2005-08-26 Thread Alaios
Good norning to all ... poking aroung in the sources... i have noticed the following declarations #define LABEL 1 #define SUBTREE 2 #define SYNTAX 3 #define OBJID (4 | SYNTAX_MASK) #define OCTETSTR(5 | SYNTAX_MASK) #define INTEGER (6 | SYNTAX_MASK) #define NETADDR (

simple c code fails

2005-08-21 Thread Alaios
Hi to everyone!!! I have written this simple code... can u plz help figure out why i always get 0 return? #include #include #include oid *myoid; char mystring[100]; size_t length; int status; int main(int argc,char **argv){ length=5000; strcpy(mystring,".iso.dod.org.internet.mg

Questions about IfInDiscards

2005-07-26 Thread Alaios
Hi... :) I have some questions about the snmp server I have an access point that runs snmp server ... I send to the access point as much traffic as it can support.. I have noticed that the IpInDiscards, IpOutDiscards dont increment (using snmpget command) After some time poking around i have notice

Sorry :(

2005-07-18 Thread Alaios
to the snmp server. But still i dont know if this is possible... Can u plz shed some light on this issue? Thx a lot --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Sat, 2005-07-16 at 00:36 -0700, Alaios wrote: > > Hi i need a function that can convert a simple > string > &

Re: convert string to oid

2005-07-17 Thread Alaios
Help me a little --- Alaios <[EMAIL PROTECTED]> wrote: > Hi i need a function that can convert a simple > string > to the specified oid.. Could u plz suggest me sth? > Have a nice week > > __ > Do You Yahoo!? > Tired

convert string to oid

2005-07-16 Thread Alaios
Hi i need a function that can convert a simple string to the specified oid.. Could u plz suggest me sth? Have a nice week __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

problem passing oid to a function

2005-06-06 Thread Alaios
Hi .. .i am trying to pass oid as a parameter to a function.. int main(int argc,char **argv){ oid myoid[]={1.3.6.8.9}; myfunction(myoid); } myfunction(oid *myoid){ size_t length_myoid= sizeof(myoid)/sizeof(oid) //seems to work// printf("%d" \n",myoid[1]); //prints correctly the second val

ip address + session.peername

2005-06-06 Thread Alaios
Hi... do u know if it is possible to use ip address instead of hostname for the session.peername? my code now is session.peername="localhost" Is it possible to do sth like that? session.peername="192.168.64.10" Thx a lot __ Discover Yahoo! Get

oid declaration

2005-06-02 Thread Alaios
Hi i try to find how the oid struct is defined.. I have search in the /usr/include/net-snmp but i cant figure out. Thx Ah one more question i want to take the value from a counter type... how i must parse it? I have used the same actions as with an integer intvalue=*vars->val.integer and seems to

Re: print_value(vars->name,vars->name_length,vars)

2005-05-25 Thread Alaios
Thx really a lot. Where i can find the val structure ? and how i can check the oid i want what type is? Have a nice day --- Dave Shield <[EMAIL PROTECTED]> wrote: > On Wed, 2005-05-25 at 11:33, Alaios wrote: > > Hi .. i want to know how i can store in to a > variable > >

print_value(vars->name,vars->name_length,vars)

2005-05-25 Thread Alaios
Hi .. i want to know how i can store in to a variable the single value that i get from this loop for(vars=response->variable; vars; vars=vars->next_variable) print_value(vars->name,vars->name_length,vars) I want an integer variable to hold the value e.x 1,2 or 3 e.t.c

Re: c code!Help me plz

2005-05-22 Thread Alaios
Thx a lot.. i have found the problem. I have forgotten to put the zero character at the end. The correct is oid myoid[] = { 1, 3, 6, 1, 2, 1, 4, 8 ,0}; Have a nice week --- Tom Flavel <[EMAIL PROTECTED]> wrote: > On 22/05/2005 07:45:53, Alaios wrote: > > yes this oid exists.. i kn

c code!Help me plz

2005-05-22 Thread Alaios
ion to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On Fri, 2005-05-20 at 11:58, Alaios wrote: > Thx ... I have found the following in the code > snmp_add_null_var(pdu, id_oid, id_l

c api plz

2005-05-20 Thread Alaios
Hi i need a simple c program that can query a mib and get the value of only one oid. Plz help me starting doing that __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -