Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snmpa_error_logger(3erl) [linux man page]

snmpa_error_logger(3erl)				     Erlang Module Definition					  snmpa_error_logger(3erl)

NAME
snmpa_error_logger - Functions for Reporting SNMP Errors through the error_logger DESCRIPTION
The module snmpa_error_logger implements the snmpa_error_report behaviour (see snmpa_error_report ) containing two callback functions which are called in order to report SNMP errors. This module provides a simple mechanism for reporting SNMP errors. Errors are sent to the error_logger after a size check. Messages are truncated after 1024 chars. It is provided as an example. This module is the default error report module, but can be explicitly configured, see snmpa_error and configuration parameters . EXPORTS
config_err(Format, Args) -> void() Types Format = string() Args = list() The function is called if an error occurs during the configuration phase, for example if a syntax error is found in a configuration file. Format and Args are as in io:format(Format, Args) . user_err(Format, Args) -> void() Types Format = string() Args = list() The function is called if a user related error occurs at run-time, for example if a user defined instrumentation function returns erroneous. Format and Args are as in io:format(Format, Args) . SEE ALSO
error_logger(3erl) Ericsson AB snmp 4.19 snmpa_error_logger(3erl)

Check Out this Related Man Page

log_mf_h(3erl)						     Erlang Module Definition						    log_mf_h(3erl)

NAME
log_mf_h - An Event Handler which Logs Events to Disk DESCRIPTION
The log_mf_h is a gen_event handler module which can be installed in any gen_event process. It logs onto disk all events which are sent to an event manager. Each event is written as a binary which makes the logging very fast. However, a tool such as the Report Browser ( rb ) must be used in order to read the files. The events are written to multiple files. When all files have been used, the first one is re-used and overwritten. The directory location, the number of files, and the size of each file are configurable. The directory will include one file called index , and report files 1, 2, .... . EXPORTS
init(Dir, MaxBytes, MaxFiles) init(Dir, MaxBytes, MaxFiles, Pred) -> Args Types Dir = string() MaxBytes = integer() MaxFiles = 0 < integer() < 256 Pred = fun(Event) -> boolean() Event = term() Args = args() Initiates the event handler. This function returns Args , which should be used in a call to gen_event:add_handler(EventMgr, log_mf_h, Args) . Dir specifies which directory to use for the log files. MaxBytes specifies the size of each individual file. MaxFiles specifies how many files are used. Pred is a predicate function used to filter the events. If no predicate function is specified, all events are logged. SEE ALSO
gen_event(3erl) , rb(3erl) Ericsson AB stdlib 1.17.3 log_mf_h(3erl)
Man Page

3 More Discussions You Might Find Interesting

1. HP-UX

Desired Format !

Hi everybody, I just need desired ouput from text file which should have folowing format; "2007-06-25 00:03:32.926+05:30",12354369,"Load","Completed","Rs.-5,556.00",9452217714 "2007-06-25 00:06:57.357+05:30",12354371,"Load","Completed","Rs.-56.00",9415766266 "2007-06-25... (1 Reply)
Discussion started by: prasanth_babu
1 Replies

2. Filesystems, Disks and Memory

I/O Error

Filesystem /u01 indicates I/O error when accessed. After doing some research I ran iostat -eE command with the following noticeable error: sd1 Soft Errors: 66 Hard Errors: 24 Transport Errors: 24 Vendor: FUJITSU Product: MAN3367M SUN36G Revision: 1502 Serial No: 00X59717 Size:... (3 Replies)
Discussion started by: BigSky
3 Replies

3. Shell Programming and Scripting

EBCDIC Format to Normal String

Hi, I have EBCDIC format file and i wold like to convert normal string(user readable) in unix . The source having the binary IBM file format Sample Source Format: ... (3 Replies)
Discussion started by: koti_rama
3 Replies