> I'm starting snmpd daemon, then creating a new row in the dlmod table: > > # /usr/bin/snmpset .... UCD-DLMOD-MIB::dlmodStatus.1 i create > UCD-DLMOD-MIB::dlmodStatus.1 = INTEGER: create(6) > > But, record in table is not created:
My experience is that the dlmodTable is incredibly fussy about how you create new rows in it. (And not always very good about reporting failures). The most reliable approach I've discovered is as follows: a) snmpget .... dlmodNextIndex.0 This tells you the index number that you should use - N. Anything else will fail - probably without telling you :-( b) snmpset .... dlmodStatus.N i create This creates an empty row..... c) snmpset .... dlmodName.N s controlSystem snmpset .... dlmodPath.N s /path/to/controlSystem.so .... and populates it. (or you can safely combine these into a single 'snmpset' call) d) snmpset .... dlmodStatus.N i load This finally loads the dynamic module into the agent. If loading it fails, this still returns success, and you'll have to walk the dlmodTable to find out. It is sometimes possible to combine some of these steps (depending on the exact order in which the varbinds are processed), but this list is the safest and most reliable. > And module is not loaded. Why? The module is *only* loaded by step 'd)', when you explicitly ask for this to be done. Dave ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users