Re: SNMPERR_NOT_IN_TIME_WINDOW

2009-10-16 Thread sanjaykumar
Thanks Smith . I have some real concern about "not in time window" Following is actual scenario : 1. I am trying to send the snmpinform request using snmptrap.c (apps/snmptrapd) 2. "To reduce the waiting time" of inform response I have done the some changes in snmptrap.c and

Agent command line options

2009-10-16 Thread Joshua Tolley
I'm writing an agent which takes a few command line switches, including a YAML configuration file. My agent initializes itself like this: init_agent(some string); init_mibs(); init_snmp(some string); init_mibs() is my own function that registers the MIBs this agent will support. The problem is

snmpset noAccess problem

2009-10-16 Thread Gil Montag
Hi, I have a MIB object with read-write permission. MIB section looks like this: EnableHalt OBJECT-TYPE SYNTAX Integer32 MAX-ACCESS read-write STATUS current DESCRIPTION implemented in NetSnmpcodsMr.c file. DEFVAL { 0 } ::= { Scalars 4 } When I do a set on this object : sudo snmpset -v 2c -c

RE: snmpset noAccess problem

2009-10-16 Thread Mike Ayers
From: Gil Montag [mailto:gilm...@gmail.com] Sent: Thursday, October 15, 2009 8:38 AM When I do a set on this object : sudo snmpset -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0 i 1 I Get: Error in packet. Reason: noAccess Failed object: NET-SNMP- MIB::netSnmp.2.2.4.0 In snmpd.conf