On Fri, 2005-06-17 at 08:06, Kevin Conway wrote:
> I have played with a few format options via the "-F" flag for snmptrapd 
> but would like to achieve the following :-
> 
> 1) Format the Day
> I want to get the date output like "May 9 14:17:36" ie similar to the 
> standard syslog (or Military) format. The time is OK but can't find any 
> reference to how I would get the date format.

"%m %l %h:%j:%k"  (with "%y" for the year)
There are also upper-case equivalents of each of these.
I'm not sure from reading the code quite what the difference is.


> 2) Suppress the MIB reference.
> I would like to suppress the the inclusion of the MIB object that  "%v" 
> generates, ie instead of "UCD-SNMP-MIB::prNames.11 = STRING: 
> /opt/var/data" I would like to see just "/opt/var/data". (This is just 
> an example, it would be more relevant if the type was INTEGER.)

The normal '-Oq' option should handle this.


> 3) %V does not appear on last var-bind entry.
> If you set a var-bind separator with the above flag the separator does 
> appear between var-binds (or course) but is not appended to the last 
> var-bind. Can you force the appending to the last var-bind?

Not exactly.
"%v"  displays the %V separator character between entries - so not
at the beginning or end of the list.
"%#v" displays the %V separator character *before* entries - so it
will appear the beginning of the list as well.

That's not quite what you asked for, but it might serve the same
purpose.


> 4) Delimted var-binds.
> Is it possible to configure the var-binds to be contained between a 
> given set of characters, ie "[]" to give "[var-bind1]", "[var-bind2]" 
> etc....

I don't think this is supported.

Dave



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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

Reply via email to