how to code snmpset for scalar type object

2010-04-10 Thread Hemant Soundankar
Hello ALL, I am trying to work on snmpget and snmpset on an simple MIB that i have created. The objective of my subagent will be - I have a simple text file which will contain only one word (eg either Postgres or MySQL). Now from the agent's machine i have to run a snmpset command for this file wh

Re: RowStatus for read only agent

2010-04-10 Thread Robert Story
On Fri, 9 Apr 2010 21:43:47 + Scott wrote: GS> The SNMP agent I work on is read only. Do the tables need a RowStatus GS> column or should they not have it since the row(s) can never be modified? That's a personal choice for the MIB author. If the table is defined with all columns as READ-ONLY

snmp_varlist_add_variable

2010-04-10 Thread maxim maxim
I can't understand why if i don't begin to add to my variable list from ASN_OBJECT_ID it doesn't work, for example: int heartbeat_rate = 30; netsnmp_variable_list *notification_vars = NULL; oid hbeat_rate_oid[] = { 1, 3, 6, 1, 4, 1, 8072, 2, 3, 2, 1, 0 }; size_t hbeat_rate_oid_len

Problem with net-snmp on Linux when many interfaces / ip aliases

2010-04-10 Thread Paweł Staszewski
Hello I have problem on my linux routers with all net-snmp versions. The problem is with 100% of cpu load after snmpd runs. The problem only exist on routers where i have many vlan interfaces with many ip aliases. To reproduce the problem on any machine with linux: make 200 vlan interfaces bind