| Main Page Logging Sample FileLog Reader Sample FileThe sample files are created to help you understand the Access
			Manager logging. It helps to understand how Access Manager logging
			APIs can be used for log operations.  
			 These samples can be executed through command line.  
			 You need to be a super user to run RunSampleandRunLogReaderto
			accessAMConfig.properties. 
			Solaris:
				Set these variables in
				the "Makefile","RunSample", and"RunLogReader".
				They may have already been set during install
				time. 
					AM_HOME- Set this to refer toinstall-root 
JAVA_HOME- Set this variable to your installation of theJDK.
					The JDK version should be greater than or equal to
					1.3.1_06.
JDK14 - Set this
					variable to "true" if your JAVA_HOME points to JDK 1.4
					or newer version else set it to "false" 
					LOCAL_LOGGING - Set
					this variable to "true" if you are executing this
					sample at complete Access Manager installation which will
					perform local logging. If you are executing this sample from a
					SUNWamsdk only install then set it to "false" which
					will perform remote logging (logging at server side).LD_LIBRARY_PATHas per your install
Compile the sample
				program, do "gmake"Before running sample
				do chmod +x RunSample RunLogReaderTo run the logging sample
				program, do "./RunSample -n
				<logName> -m <message> -l <loggedByUser> -w
				<loggedByUserPassword>[
				-o <orgname> ] [ -u
				<username> -p <userpassword> ]" orgname
			– name of the organization. This is an optional parameter,
			and if not provided assumes the root organization username –
			name of the user on whose behalf the logging is performed. This is
			an optional parameter. userpassword
			– password to authenticate the user. Must be provided if
			“username” is provided. logName
			– name of the log file message
			– message to be logged to the log file
 loggedByUser –
			name of the admin user logging the message
 
			loggedByUserPassword – password to authenticate the admin
			user 
 For example
 
			$ ./RunSample -u amadmin -p 11111111 -n
			testLog.access -m "trying test logging" -l amadmin -w
			11111111
 
 
To run the log reader sample
				program, do "./RunLogReader -o <orgname> 
				-u <username> -p <userpassword> [-n
				<logName>]" orgname
			– name of the organization. This is a required parameter. username –
			name of the user who is accessing the logfile/table. This is
			a required parameter. userpassword
			– password to authenticate the user. Must be provided.
			 logName
			– name of the log file or table.  This parameter
			is optional; The log file or table can be selected when
			running the program.
			
 For example
 
 
 $ ./RunLogReader -u amadmin -p 11111111
			-o dc=example,dc=com -n testLog.access
 
 
 
 
 
			Windows2000:
				Set these variables in
				the "make.bat". 
					BASE-
					Set this to refer toinstall-root
JAVA_HOME- Set this variable to your installation of theJDK.
					TheJDKshould be newer thanJDK1.3.1.
JDK14 - Set this
					variable to "true" if your JAVA_HOME points to JDK 1.4
					or newer version else set it to "false" 
					LOCAL_LOGGING - Set
					this variable to "true" if you are executing this
					sample at complete Access Manager installation which will
					perform local logging. If you are executing this sample from a
					SUNWamsdk only install then set it to "false" which
					will perform remote logging (logging at server side).LD_LIBRARY_PATHas per your install
Compile the sample
				program, do "make"To run the sample program , do "make
				run -n <logName> -m <message>
				-l <loggedByUser> -w <loggedByUserPassword>"[ -o <orgname>]
				[-u <username>
				-p <userpassword>]
 
 
 orgname – name of the organization. This is an
				optional parameter, and if not provided assumes the root organization username –
			name of the user on whose behalf the logging is performed. This is
			an optional parameter. userpassword
			– password to authenticate the user. Must be provided if
			“username” is provided. logName
			– name of the log file message
			– message to be logged to the log file
 loggedByUser –
			name of the admin user logging the message
 loggedByUserPassword
			– password to authenticate the admin user  
 For
			example
 c>
			make run -u amadmin -p 11111111 -n testLog.access -m "trying
			test logging" -l amadmin -w 11111111
 
 |