Trapv1: which enterprises OID to use for generic and specific traps?

2013-01-29 Thread Giuseppe Modugno
I'm interested in sending generic and specific v1 traps. The Trap-PDU always includes an enterprise OID. Does the standard specify this OID for generic traps (coldStart, warmStart...)? I noticed Net-SNMP (Windows installation) sends coldStart with the following enterprise OID: NET-SNMP-MI

EBU Tech 3323: SNMP for broadcasting transmitters

2012-05-17 Thread Giuseppe Modugno
I found a technical document (EBU Tech 3323) that talks about SNMP implementation on broadcasting transmitters: http://www.ebu.ch/CMSimages/fr/tec_doc_t3323-2008_tcm7-58188.pdf One request appears strange: "Time stamps in TRAPS must be synchronisable with a reference time (e.g. NTP)." From w

How to implement the "minutes of the day" or the "minutes of the week"

2012-05-15 Thread Giuseppe Modugno
In my agent extension, I have to implement one or more objects that represents the "minutes of the week" (HH:MM of MON, THU, WED..). This is for a electronic programmable thermostat that can be configured differently for each day of the week. I have four solutions, but I don't know what is the

Save immediately sysName and friends without versionSavePersistentData.0

2011-07-19 Thread Giuseppe Modugno
I know Net-SNMP doesn't save sysName and friends immediately when a new value has accepted. I know it saves those variables on shutdown or when versionSavePersistentData variable is set to 1. I'd like to change this behaviour and save sysName and friends immediately after setting them. How ca

How to not load any MIB files

2011-07-07 Thread Giuseppe Modugno
I'm using snmptrap command to send notifications. It works well, but it is quite slow. I noticed it depends on loading all the MIB files. I don't need MIBs, because I use only numerical OIDs: snmptrap -v2c -c public 192.168.1.1 "" 1.3.6.1.4.1 [The uncomplete numerical OID is the notifi

How to disable MIB trees on the agent

2011-06-22 Thread Giuseppe Modugno
I have a Net-SNMP agent with several MIB trees: SNMPv2-MIB IF-MIB RFC1213-MIB IP-MIB TCP-MIB UDP-MIB HOST-RESOURCES-MIB IF-MIB DISMAN-EVENT-MIB NOTIFICATION-LOG-MIB UCD-SNMP-MIB UCD-DLMOD-MIB NET-SNMP-AGENT-MIB ... Is there a way to disable one or more MIBs so the user

Re: Command option -Ih

2011-05-23 Thread Giuseppe Modugno
On 23 May 2011 at 8:53, Dave Shield wrote: > > with snmpset command? > > I haven't looked in detail, but I strongly suspect that display > hints are only used for displaying the _results_ of a command. > I very much doubt whether they are used for interpreting the > value given to an "snmpset" com

Command option -Ih

2011-05-23 Thread Giuseppe Modugno
Following my previous post about "snmpset and DISPLAY-HINT", I found the option -Ih that "disables the use of DISPLAY-HINT information when assigning values" (extracted from snmpcmd(1) man page). So I think the default behaviour of snmpset is to take into account the DISPLAY-HINT, but it seems

snmpset and DISPLAY-HINT

2011-05-19 Thread Giuseppe Modugno
Dear list, I have a private MIB with an INTEGER OID with DISPLAY-HINT "d-1" and UNITS "V". It means that the value 123 is shown (by snmpget or other managers) as "12.3 V". It should be nice if I can use the same format also for SET requests to the agent. So I'd like to write: snmpset -v2c

RE: Changing community strings automatically

2011-03-02 Thread Giuseppe Modugno
On 2 Mar 2011 at 9:26, Ron Rader wrote: > It´s fairly easy to programmatically rewrite the rwcommunity and rocommunity > strings in > snmpd.conf, then restart the agent through the normal init script mechanism. > This is how my > project works. Maybe my question is a FAQ, but may you suggest a m

Changing community strings automatically

2011-03-01 Thread Giuseppe Modugno
I have a Net-SNMP agent running on a Linux computer. I want to write a script/program that automatically change the community strings (I'm not interested in SNMPv3). Actually I know how to stop and restart the snmpd daemon. But how to change the community strings? I know they are written in snm