Pls guide me to write the first program of SNMP

2008-03-10 Thread TAING Nguon
Dear members, I am new to snmp. pls help me to write the first program to detect SNMPv2-MIB::sysORDescr. i used a snpmwalk to get snmp from my computer here is my command. snmpwalk -v 2c -c public 192.168.162.196 system where 192.168.162.196 is my pc's ip. here is a piece of the output fro

RE: Problem in receiving a DateAndTime type object in notification

2008-03-10 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Wang, John > Sent: Monday, March 10, 2008 5:35 PM > I'm using Release 5.3.1; and got a problem in receiving > notifications which includes a DateAndTime type object. I find no hits on DateAndTime in the bugpile. If

Problem in receiving a DateAndTime type object in notification

2008-03-10 Thread Wang, John
Hi, I'm using Release 5.3.1; and got a problem in receiving notifications which includes a DateAndTime type object. The routine send_v2trap(var_list) is called. To build the var_list, the snmp_varlist_add_variable( ) is called as below: snmp_varlist_add_variable(&var_list,

Problem in receiving a DateAndTime type object in notification

2008-03-10 Thread Wang, John
Hi, I'm using Release 5.3.1; and got a problem in receiving notifications which includes a DateAndTime type object. The routine send_v2trap(var_list) is called. To build the var_list, the snmp_varlist_add_variable( ) is called as below: snmp_varlist_add_variable(&var_list,

help

2008-03-10 Thread Elizabeth George
how can we write simple snmp agent ELIZABETH K GEORGE Project Trainee TELES India 2nd Floor, Delta Block, Sigma Tech Park, Varthur Main Road, Whitefield, Bangalore 560 066, INDIA Phone: Fax: Mobile:

trap problem

2008-03-10 Thread snmp girl
hi I send a trap from a linux agent to a windows manager , to see the trap I use a trap watcher but the problem is that when i receive the trap it gives me as a description incorrect version or decode error , I don't know what's that mean and what to do to resolve this problem. thanks ---

FW: Can't run the agent with AgentX support on Microsoft windows

2008-03-10 Thread Dudi Avrahamov
I haven't received any solution to my problem yet. Can anyone help please? Thanks, Dudi. From: Dudi Avrahamov Sent: Wednesday, March 05, 2008 2:08 PM To: 'net-snmp-users@lists.sourceforge.net' Subject: Can't run the agent with AgentX support on Microsoft windows Hi, I'm trying to

snmp_parse_oid/get_node/read_objid

2008-03-10 Thread Jelena Savic
Hi, When i try using any of those functions: snmp_parse_oid, get_node or read_objid for some parameters in my application i get index out of range ( it is consistant) and i know that these indices exist. audiochDelay.74.1: Unknown Object Identifier (Index out of range: 1 (hd2020Instance)) wh

Index out of range when using get_node

2008-03-10 Thread Jelena Savic
Hi, I have created a mib and all the indices are Integers. Then i have an application that takes in a list of oids, and parses them using read_objid (however the same problem occurs while using snmp_parse_oid or get_node) I get the problem: Unknown object identifier: Index out of range if in

Size of MIB variable using mib2c

2008-03-10 Thread Raghavendra Prasad
Hi everybody, I am writing mib2c configuration file, we intend to create a code framework for agent from this. I have a requirement to find out the size of string-type MIB variables - unfortunately I could not figure out how to find the size of string variable, I need this for malloc memory al

RE: trap problem

2008-03-10 Thread Mike Ayers
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of snmp girl > Sent: Sunday, March 09, 2008 10:42 AM > I send a trap from a linux agent to a windows manager , to > see the trap I use a trap watcher but the problem is that > when i receive the trap it gives me as a descriptio

Re: net-snmp and 64 bit counters under FreeBSD

2008-03-10 Thread alex
It seems to have come good all of a sudden. Sorry guys. [EMAIL PROTECTED] /home/alex/serverbuild/net-snmp-5.4.1]# snmpwalk -v 2c -c community 127.0.0.1 .1.3.6.1.2.1.31.1.1 |grep Counter64 IF-MIB::ifHCInOctets.1 = Counter64: 860060822 IF-MIB::ifHCInOctets.2 = Counter64: 30870362 IF-MIB::ifHCInUca

net-snmp and 64 bit counters under FreeBSD

2008-03-10 Thread alex
Hi All, I am having trouble with this. Firstly I believe that the version of net-snmp that ships standard with freebsd is 5.3 and does not support 64 bit ifcounters. I downloaded v5.4 which supposedly has experimental support for it under freebsd?!? I used: ./configure --enable-mfd-rewrites