On 03/07/07, Stefan Mikuszeit <[EMAIL PROTECTED]> wrote: > The next i have found is with the /tmp/shtest that is > configured > in the snmpd.conf via this line: > > exec enterprises.ucdavis.50.100.1 /bin/sh /tmp/shtest
Three problems. Firstly, the "relocatable" forms of exec/sh (and extend) rely on the OID being specified in the full numeric form. The agent won't recognise "enterprises...." as specifying the root OID for the output. So it's actually taking "enterprises.ucdavis.50.100.1" as the identifying name for this entry. We need to amend the documentation to clarify this. Secondly, the syntax of this command is exec ROOTOID NAME COMMAND You don't seem to be specifying a NAME token. So even if the ROOTOID was recognised correctly, the agent would then take "/bin/sh" as the NAME value, and attempt to run "/tmp/shtest" directly (which wouldn't work). Thirdly, the 5.3.x release line marked the "exec OID NAME COMMAND" syntax as deprecated (since the output format is technically invalid). The 5.4 release then dropped it altogether. If you'd been using the numeric OID, then you'd see an error message: ..../snmpd.conf: line 3: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead Again, we need to amend the documentation to emphasise this. Try extend .1.3.6.1.4.1.2021.50.100.1 Test /bin/sh /tmp/shtest See NET-SNMP-EXTEND-MIB for a description of the structure of the output. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users