On Fri, Feb 04, 2005 at 11:26:37AM -0500, Michael P. Soulier wrote: > Hello, > > Looking at the snmpd.conf manpage, I see that the types that can be returned > from a script called via pass or pass_persist are as follows: > > "The second line should be the TYPE of value returned, where TYPE is one of > the text strings: string, integer, unsigned, objectid, timeticks, ipaddress, > counter, or gauge." > > There are more types in snmp than this.
Yes, you are right - they have missed counter64 and opaque in that collection. I suppose the pass support could use some updating, or at least that the man page could use it if it is fixed in the code. > I take it that I cannot pass back a truth value? Well, TruthValue is a textual convention that maps boolean values onto an INTEGER with the values true(1) and false(2) so you could do it by returning integer and either 1 or 2. /MF ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
