10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
Discussion started by: sajmar
4 Replies
2. AIX
Hi,
Can you please look into the below errors from syslog in AIX?
And let me know is this a issue? How can I avoid these errors with out affecting my LPAR.
Detail Data
SYSLOG MESSAGE
<27>Aug 23 08:24:28 syslog: slp: 0660-084 The SA failed to decode and compute received message:... (0 Replies)
Discussion started by: System Admin 77
0 Replies
3. Shell Programming and Scripting
Hi,
In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'.
In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies
4. IP Networking
Hello all,
Is it any way to filter or better do not capture at all, duplicate messages?
Thanks in advance (2 Replies)
Discussion started by: @dagio
2 Replies
5. AIX
Hi
Is there any setting in the syslog.conf that I can define a string to disable certain type of message that is generated in the message file
for example I want to stop these type of messages getting generated.
UnablAug 18 07:06:30 local1:warn|warning KCML: WARNING /usr/local/kcml/kcml... (3 Replies)
Discussion started by: antointoronto
3 Replies
6. Red Hat
Good Day.
Any idea on the messages log. it would be a great help to us. Upon checking the on the system logs, I found the following messages:
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald... (1 Reply)
Discussion started by: cabloy
1 Replies
7. HP-UX
Hi,
I'm using HP-UX 11.11 on HP9000/800 PA-RISC system.I am getting the below messages daily in /var/adm/syslog/syslog.log file.Can someone help me out in this regard, why I am getting this messages & how to resolve it. I am using SSH version(HP-UX Secure Shell-A.04.20.004)
Messages:
Nov 26... (2 Replies)
Discussion started by: Mike1234
2 Replies
8. Shell Programming and Scripting
Hello Guys...
I am bit new to shell scripting and was looking for help !!
I have got syslog data on a linux server recording log messages from a device.
I need to seperate the data from log to file so that I can push it excell and get a report from that.
Log is in the format below
"... (2 Replies)
Discussion started by: raj_26apr
2 Replies
9. Shell Programming and Scripting
how can i sort the syslog message, so that the lastest time stamp show first , oldest show last. (1 Reply)
Discussion started by: 3Gmobile
1 Replies
10. Solaris
Few days ago I tried to fix an error in the crontab entry, basically I just add the complete path to run a script and remove an unused script from the crontab. I use crontab -e and mv FIFO FIFO.old command then cron start as cron won't start until I delete or move FIFO. I didn't know that using... (8 Replies)
Discussion started by: loeng
8 Replies
Logger::Syslog(3pm) User Contributed Perl Documentation Logger::Syslog(3pm)
NAME
Logger::Syslog -- an intuitive wrapper over Syslog for Perl
DESCRIPTION
You want to deal with syslog, but you don't want to bother with Sys::Syslog, that module is for you.
Logger::Syslog takes care of everything regarding the Syslog communication, all you have to do is to use the function you need to send a
message to syslog.
Logger::Syslog provides one function per Syslog message level: debug, info, warning, error, notice, critic, alert.
NOTES
Logger::Syslog is compliant with mod_perl, all you have to do when using it in such an environement is to call logger_init() at the
beginning of your CGI, that will garantee that everything will run smoothly (otherwise, issues with the syslog socket can happen in
mod_perl env).
SYNOPSIS
use Logger::Syslog;
info("Starting at ".localtime());
...
if ($error) {
error("An error occured!");
exit 1;
}
...
notice("There something to notify");
FUNCTIONS
logger_init
Call this to explicitly open a Syslog socket. You can optionaly specify a Syslog facility.
That function is called when you use the module, if you're not in a mod_perl environement.
Examples:
# open a syslog socket with default facility (user)
logger_init();
# open a syslog socket on the 'local' facility
logger_init('local');
logger_close
Call this to close the Syslog socket.
That function is called automatically when the calling program exits.
logger_prefix
That function lets you set a string that will be prefixed to every messages sent to syslog.
Example:
logger_prefix("my program");
info("starting");
...
info("stopping");
logger_set_default_facility(facility)
You can choose which facility to use, the default one is "user". Use that function if you want to switch smoothly from a facility to
another.
That function will close the existing socket and will open a new one with the appropriate facility.
Example:
logger_set_default_facility("cron");
LOGGING
Logger::Syslog provides one function per Syslog level to let you send messages. If you want to send a debug message, just use debug(), for
a warning, use warning() and so on...
All those function have the same signature : thay take a string as their only argument, which is the message to send to syslog.
Examples:
debug("my program starts at ".localtime());
...
warning("some strange stuff occured");
...
error("should not go there !");
...
notice("Here is my notice");
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
COPYRIGHT
This program is copyright X 2004-2006 Alexis Sukrieh
AUTHOR
Alexis Sukrieh <sukria@sukria.net>
Very first versions were made at Cegetel (2004-2005) ; Thomas Parmelan gave a hand for the mod_perl support.
perl v5.12.4 2006-11-27 Logger::Syslog(3pm)