01-15-2013
Quote:
Originally Posted by
radoulov
You should post the part that writes to syslog, the above code seems to be writing to another log ...
Actually the log is being written to the below location (i.e)
Quote:
linux@test1:/home/ldap/logs/ldap-mail$ tail -f ldap-mail.log
2013-01-15T17:00:55.083548+00:00 test1 ldap-mail[15719]: Resending the message to a total of 80000
2013-01-15T17:00:55.083567+00:00 test1 ldap-mail[15719]: Resending the message for other to a total of 38 Recipients
and the same log will be written into /var/log/messages where i see the alternate lines are kind of misleading (i.e) one line will show the format i would like to and the next following line will show the format as above log.
Quote:
linux@test1:/home/ldap/logs/ldap-mail$ tail -f /var/log/messages
2013-01-15T17:03:45.817730+00:00 test1 ldap-mail[18018]: Message delivered
Jan 15 17:03:45 test1 ldap-mail[18018]: submitted
2013-01-15T17:03:45.818092+00:00 test1 ldap-mail[18018]: Resending the message to a total of 0 Moderators
Jan 15 17:03:45 test1 ldap-mail[18018]: Resending the message to a total of 0 Moderators
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format.
i checked the datecalc and other scripts but couldnt modify them to cater to my need:(...
The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies
2. Solaris
Im about to install a sunfreeware program called logrotate which does exactly what it says on the tin....just a quick question ..if its going to rename messages to messages.0 etc do I need to issue a HUP to syslogd after doing this or will the new messages file get created automatically
cheers (2 Replies)
Discussion started by: hcclnoodles
2 Replies
3. Shell Programming and Scripting
I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column.
I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this?
Sample input
02/27/09,23:52:31
02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies
4. UNIX for Dummies Questions & Answers
I have a list of dates in the following format: mm/dd/yyyy and want to change these to the MySQL standard format: yyyy-mm-dd.
The dates in the original file may or may not be zero padded, so April is sometimes "04" and other times simply "4".
This is what I use to change the format:
sed -i '' -e... (2 Replies)
Discussion started by: figaro
2 Replies
5. Shell Programming and Scripting
Guys,
I have an input file such as below
I would like to know how i would be able to find items created before 2011-10-01
Appreciate any expert advice. Thanks. (3 Replies)
Discussion started by: aismann
3 Replies
6. Shell Programming and Scripting
is there a way to efficiently monitor logfiles that do not have a date or time format? i have several logs on several different servers that need to be monitored. but i realized writing a script for this would be very complex and time consuming giving the variety of things i need to check for i.e.... (2 Replies)
Discussion started by: SkySmart
2 Replies
7. UNIX for Dummies Questions & Answers
Hi Unix Gurus,
I would like to rename several files in a Unix Directory . The filenames can have more than 1 underscore ( _ ) and the last underscore is always followed by a date in the format mmddyyyy. The Extension of the files can be .txt or .pdf or .xls etc and is case insensitive ie... (1 Reply)
Discussion started by: pchegoor
1 Replies
8. Shell Programming and Scripting
Hi,
I have a requirement to create a shell script(tcsh) that finds all the files in a directory having the file name containing date format "YYYYMMDDHHMM" and extract the date time part ""YYYYMMDDHHMM" for further processing.
Could you please have any idea on this.
trades_201604040000.out... (6 Replies)
Discussion started by: gopal.biswal
6 Replies
9. Shell Programming and Scripting
Hi All,
I'm new to forum good to hear all.
I stuck in converting date format in csv file using unix
csv file contains as below
,750,0000000000000000GCJR, ,06/22/2016 14:48:44
I want to convert into as below
,750,0000000000000000GCJR, ,06/22/2016 02:48:44 PM
Please reply asap..... (22 Replies)
Discussion started by: Raghureds
22 Replies
10. Shell Programming and Scripting
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT CENTOS
ldap_cachemgr
ldap_cachemgr(1M) System Administration Commands ldap_cachemgr(1M)
NAME
ldap_cachemgr - LDAP daemon to manage client configuration for LDAP based Network Information Service lookups
SYNOPSIS
/usr/lib/ldap/ldap_cachemgr [-l log-file] [-g]
DESCRIPTION
The ldap_cachemgr daemon is a process that provides an up-to-date configuration cache for LDAP naming services. It is started during multi-
user boot.
The ldap_cachemgr utility provides caching for all parameters as specified and used by the LDAP naming service clients. The ldap_cachemgr
utility uses the cache files which are originally created by executing the ldapclient(1M) utility, as cold start files. Updates to the
cache files take place dynamically if profiles are used to configure the client. See the init option to ldapclient(1M).
The ldap_cachemgr utility helps improve the performance of the clients that are using LDAP as the Naming service repository. In order for
the LDAP naming services to function properly, the ldap_cachemgr daemon must be running. ldap_cachemgr also improves system security by
making the configuration files readable by superuser only.
The cache maintained by this daemon is shared by all the processes that access LDAP Naming information. All processes access this cache
through a door call. On startup, ldap_cachemgr initializes the cache from the cache files. See ldapclient(1M). Thus, the cache survives
machine reboots.
The ldap_cachemgr daemon also acts as its own administration tool. If an instance of ldap_cachemgr is already running, commands are passed
transparently to the running version.
OPTIONS
The following options are supported:
-g Print current configuration and statistics to standard output. This is the only option executable without superuser
privileges.
-l log-file Cause ldap_cachemgr to use a log file other than the default /var/ldap/cachemgr.log.
EXAMPLES
Example 1: Stopping and Restarting the ldap_cachemgr Daemon
The following example shows how to stop and to restart the ldap_cachemgr daemon.
example# svcadm enable network/ldap/client
example# svcadm disable network/ldap/client
Example 2: Forcing ldap_cachemgr to Reread the /var/ldap/ldap_client_file and /var/ldap/ldap_client_cred Files
The following example shows how to force ldap_cachemgr to reread the /var/ldap/ldap_client_file and /var/ldap/ldap_client_cred files
example# pkill -HUP ldap_cachemgr
FILES
/var/ldap/cachemgr.log Default log file.
/var/ldap/ldap_client_file Files containing the LDAP configuration of the client. These files are not to be modified manually. Their
/var/ldap/ldap_client_cred content is not guaranteed to be human readable. Use ldapclient(1M) to update these files.
WARNINGS
The ldap_cachemgr utility is included in the Solaris 9 release on an uncommitted basis only. It is subject to change or removal in a
future minor release.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
ldap(1), ldapadd(1), ldapdelete(1), ldaplist(1), ldapmodify(1), ldapmodrdn(1), ldapsearch(1), pkill(1), svcs(1), idsconfig(1M), ldapad-
dent(1M), ldapclient(1M), suninstall(1M), svcadm(1M), signal.h(3HEAD), resolv.conf(4), attributes(5), smf(5)
NOTES
The ldap_cachemgr service is managed by the service management facility, smf(5), under the service identifier:
svc:/network/ldap/client
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser-
vice's status can be queried using the svcs(1) command.
SunOS 5.10 1 Aug 2004 ldap_cachemgr(1M)