using both v1 and v3 in custom daemon

2009-11-12 Thread asaf
hello we have a custom daemon using net-snmp library, i'm trying to enable v1 read-only access to only some ports of the mib tree in conjuction with authenticated v3 read/write access. the problem is when I try to use coniguration directives like: 'rocommunity' or 'com2sec' in snmpd.conf i get wa

editing a table

2009-11-18 Thread asaf
I couldn't find any information on how to create / edit rows in snmp table, I understand i suppose to use 'snmpset' for that, for example, my table looks like that : +--trapDestTable(1) | +--trapDestEntry(1) | Index: managerIx | +-- CR-- INTEGER managerIx(1) +-- C

Re: editing a table

2009-11-18 Thread asaf
> 2009/11/18 : >> I couldn't find any information on how to create / edit >> rows in snmp table, >> I understand i suppose to use 'snmpset' for that, > > To create a row with index 9, try > > snmpset managerRowStatus.9 i 4 > (plus similar varbinds for any other columns that don't h

sysUpTime question

2009-11-26 Thread asaf
looks like the implementation of sysUpTime actually returns the time passed since the snmp daemon has started: 1. why not return the real system uptime ? (as the MIB name suggests) 2. out specific case: when our system boots, the time is 'Thu Jan 1 00:00:00 UTC 1970', and this is the system time

Re: sysUpTime question

2009-11-29 Thread asaf
> 2009/11/26 : >> looks like the implementation of sysUpTime actually returns >> the time passed since the snmp daemon has started: >> >> 1. why not return the real system uptime ? (as the MIB name suggests) > > Because that's not what the sysUpTime value reports. > See the DESCRIPTION clause from

Re: sysUpTime question

2009-11-29 Thread asaf
> 2009/11/26 : >> looks like the implementation of sysUpTime actually returns >> the time passed since the snmp daemon has started: >> >> 1. why not return the real system uptime ? (as the MIB name suggests) > > Because that's not what the sysUpTime value reports. > See the DESCRIPTION clause from

Re: sysUpTime question

2009-11-29 Thread asaf
> 2009/11/26 : >> looks like the implementation of sysUpTime actually returns >> the time passed since the snmp daemon has started: >> >> 1. why not return the real system uptime ? (as the MIB name suggests) > > Because that's not what the sysUpTime value reports. > See the DESCRIPTION clause from

getting netsnmp_tdata pointer without request object

2009-12-02 Thread asaf
I have to add row to a table from an internal function in my daemon (not from SET request). how can I retrieve pointer to my table (I have the OID), previously registered via 'netsnmp_tdata_register' ? (ofcourse i can save it in global variable, but that doesn't look right)

DateTime format

2009-12-03 Thread asaf
I couldn't figure out how to fill the char[11] DateTime type can someone (Dave) give example ? -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing.

DateTime format

2009-12-03 Thread asaf
I couldn't figure out how to fill the char[11] DateTime type can someone (Dave) give example ? -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing.

Re: DateTime format

2009-12-03 Thread asaf
> I couldn't figure out how to fill > the char[11] DateTime type > > can someone (Dave) give example ? > > > -- > Join us December 9, 2009 for the Red Hat Virtual Experience, > a free event focused on virtualization and clo

managing /var/lib/net-snmp data in custom daemon

2009-12-08 Thread asaf
we have a custom snmp daemon using libnetsnmp, we would like to keep data in our own file, is it possible to install a hook, or some other mechanism to manage this data. or must we stick with /var/lib/net-snmp/x.conf ? --

RFC/MIB for 802.1ad

2009-12-15 Thread asaf
Someone knows where can I find RFC/MIB Module, for 802.1ad (Provider's bridged network.) ? -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___

Entity MIB and ContextName

2010-01-07 Thread asaf
hello I want to enable management access through my agent to connected identical devices. I've looked at the Entity MIB (RFC2737), which has entPhysicalTable and entLogicalTable, I need to use the entPhysicalTable (since the devices are physical), but it don't have ContextName column like we have

netsnmp_select_info timeouts and run_alarms

2010-02-24 Thread asaf
we have written a custom snmp daemon, we noticed it was reaching high cpu usage. the reason was that netsnmp_select_info returned decreasing timeouts, until it was returning almost zero timeouts, which we passed to the pselect function. I found suggestion to add run_alarms call in our loop, and i

ATM-MIB - ucdsnmp 4.2.6 problem

2004-09-10 Thread Asaf Matan
I working on Montavista based ucd-snmp 4.2.6 on mips 5 processor (embedded system)   I’m tring to extend agent  to support ATM-TC & ATM-MIB (RFC 2515)   I did the following steps:   Add to snmpd.conf the relevant mibs and ensure I get no error when I lunch the system.   I failed to

Table Get Time Complexity O(k(n^2)) ??

2004-09-22 Thread Asaf Matan
  Thanks         Asaf Matan   Wintegra TM 6, Hamsager Street P.O.B. 3048 43653 Ra’anana [EMAIL PROTECTED] www.win

net-snmp agent and concurrency.

2004-09-22 Thread Asaf Matan
for all tables instead alloc free memory for each table walk.   BR       Asaf Matan   Wintegra TM 6, Hamsager Street

RE: Table Get Time Complexity O(k(n^2)) ??

2004-09-22 Thread Asaf Matan
ext winpath: Ifc Get next Thanks Asaf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Wednesday, September 22, 2004 11:29 AM To: Asaf Matan Cc: [EMAIL PROTECTED] Subject: Re: Table Get Time Complexity O(k(n^2)) ?? > When I try to walk

Rewrite of Engine ID blocks access for all users

2010-05-18 Thread Asaf Ohaion
Hello sometimes, probably when shutting down our (custom) daemon improperly, it rewrites the oldEngineID (in /var/lib/net-snmp/ourdaemon.conf) but the engine ID in the usmUser doesn't change, Thus no one can access the daemon anymore (at least in SNMPv3) thanks -- Asaf Ohaion Lingnu

snmpset : specifing OCTET STR in bytes

2010-06-06 Thread Asaf Ohaion
how can I specify in 'snmpset -s' int values of the individual bytes, something like "snmpset HOST s '02 33 00' thanks -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920

creating row in inetCidrRouteTable

2010-06-06 Thread Asaf Ohaion
agent separate the parts? (e.g : oid is 0.0, but could be longer) -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920828 http://www.lingnu.com -- ThinkGeek and WIRED's GeekDad team up fo

Re: creating row in inetCidrRouteTable

2010-06-08 Thread Asaf Ohaion
-FORWARD-MIB::inetCidrRouteType.1.4.192.168.20.1.32.2.0.0.1.4.192.168.0.1 i 4 but i'm getting : Error in packet. Reason: notWritable (That object does not support modification) Failed object: IP-FORWARD-MIB::inetCidrRouteStatus.ipv4."192.168.20.1".32.2.0.0.ipv4."192.168.0.1"

Re: creating row in inetCidrRouteTable

2010-06-08 Thread Asaf Ohaion
_data", "called\n")); /* * TODO:303:o: Initialize inetCidrRouteTable data. */ return MFD_SUCCESS; } /* inetCidrRouteTable_init_data */ looks like its not implemented at all, at least in the version I have (5.5) correct

inetCidrRouteTable persistence

2010-06-09 Thread Asaf Ohaion
I've successfully add row to inetCidrRouteTable , but it is gone away after a reboot is there a way to persist changes to routing table between reboots ? -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920828 http://www.lingn

Re: creating row in inetCidrRouteTable

2010-06-09 Thread Asaf Ohaion
its OK, I finally succeed adding a row, not sure what was the problem, thank You > Dear Asaf: > > I'm sorry I can't help you. > > For your reference, > my environment is CentOS 5.5 (Net-SNMP5.3.2.2), and snmpd.conf is only > "rwcommunity private". >

hooking to handlers chain defined inside net-snmp mibgroups

2010-06-10 Thread Asaf Ohaion
I need to inject my custom handler to inetCidrRouteTable, but its mib_handler is not global, how can I do it ? -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920828 http://www.lingnu.com

injecting a handler to chain

2010-06-13 Thread Asaf Ohaion
add handler to references a table. -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920828 http://www.lingnu.com -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father&

Re: inetCidrRouteTable persistence

2010-06-15 Thread Asaf Ohaion
rsist changes to routing table > between reboots ? > -- Asaf Ohaion Lingnu Open Source Consulting Ltd 09-7655871 (204), 0547-920828 http://www.lingnu.com -- ThinkGeek and WIRED's GeekDad team up for the Ultimate G