Initializes variables for various logging facilities.
#include <isode/tailor.h> void isodetailor (myname, wantuser) char *myname; int wantuser;
The ISODE library contains internal logging facilities. Some of the facilities need to have their variables initialized. The isodetailor subroutine sets default or user-defined values for the logging facility variables. The logging facility variables are listed in the usr/lpp/snmpd/smux/isodetailor file.
The isodetailor subroutine first reads the /etc/isodetailor file. If the wantuser parameter is set to 0, the isodetailor subroutine ignores the myname parameter and reads the /etc/isodetailor file. If the wantuser parameter is set to a value greater than 0, the isodetailor subroutine searches the current user's home directory ($HOME) and reads a file based on the myname parameter. If the myname parameter is specified, the isodetailor subroutine reads a file with the name in the form .myname_tailor. If the myname parameter is null, the isodetailor subroutine reads a file named .isode_tailor. The _tailor file contents must be in the following form:
#comment <variable> : <value> # comment <variable> : <value> # comment <variable> : <value> # comment
The comments are optional. The isodetailor subroutine reads the file and changes the values. The latest entry encountered is the final value. The subroutine reads /etc/isodetailor first and then the $HOME directory, if told to do so. A complete list of the variables is in the /usr/lpp/snmpd/smux/isodetailor sample file.
This subroutine is part of the SNMP Application Programming Interface in the TCP/IP facility.
/etc/isodetailor | Location of user's copy of the /usr/lpp/snmpd/smux/isodetailor file. |
/usr/lpp/snmpd/smux/isodetailor | Contains a complete list of all the logging parameters. |
The ll_hdinit, ll_dbinit, _ll_log, or ll_log subroutine.
List of Network Manager Programming References.
SNMP Overview for Programmers in AIX Version 4.3 Communications Programming Concepts.