01-31-2001
Where is the messages log (like /var/adm/messages on Solaris) on an HP-UX box?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Does anyone know if this is a patch error or a real memory problem, its happening a lot and wanted to know what to expect if I reboot it.
prtdiag shows no errors.
the system is anetra running solaris9 5.9 Generic sun4u sparc SUNW,UltraSPARC-IIi-cEngine
Jan 5 15:23:39 t1 last message... (1 Reply)
Discussion started by: sun-days
1 Replies
2. UNIX for Dummies Questions & Answers
I am receiving a repeating error in my /var/adm/messages, and I did a full Google search and search on this site. This site had 1 hit, but didn't really explain why it's occurring, Google didn't return much of value. Perhaps someone here has a potential fix:
Mar 20 07:17:52 <server_name>... (1 Reply)
Discussion started by: FredSmith
1 Replies
3. Shell Programming and Scripting
Hi All,
Since i am very new to shell scripting, i need help from you guys.
Suppose there is a file containing:
Log message:
Ashish
"asasasa"
asasa
asasa
asasas.info1
Log message:
Kapil
"asasasa"
asasa
asasa
asasas..info1 (2 Replies)
Discussion started by: ashish.kapil
2 Replies
4. HP-UX
Hello,
I am New to Unix.
I am Using HP-UX 9000 Series for my Application.
I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C.
I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies
5. Shell Programming and Scripting
Hi I have a file in which there are lot of redundancy messages..
Like suppose i have the messages like the following in my file..
45123|1|784tryr|uirirr|wagras|swyuyau||
45123|1|784tryr|uirirr|wagras|swyuyau||
I need to remove the extra (45123|1|784tryr|uirirr|wagras|swyuyau||) and need... (1 Reply)
Discussion started by: grajesh_955
1 Replies
6. Shell Programming and Scripting
I am looking for a script to do the following. I have a large log file that contains hundreds of warnings, a lot of which can be ignored. The tool doesn't allow me to suppress it, so I like to parse it out from the log file and isolate just the new messages/warnings, based on an exception file.
... (12 Replies)
Discussion started by: cdn2008
12 Replies
7. Solaris
Hi, The following messages are getting logged to messages file extensively while the omniback backup is going on
"NFS write error on host test.test.com: Read-only file system."
The system has nfs filesystems and we are backing it up at that time.
Any thoughts ?...
Appreciate it..... (8 Replies)
Discussion started by: amqstam
8 Replies
8. Shell Programming and Scripting
hello all.....
I have a shell script created by the user ABC.
in that script, am trying to push some echo messages into a Log file.....
eg: echo "error occurred" >
but for some reason, my echo messages are not getting redirected to my log file........:confused:
need ur urgent... (8 Replies)
Discussion started by: cmaroju
8 Replies
9. UNIX for Advanced & Expert Users
The following notice I am getting in /var/adm/messages file
Dec 9 06:17:24 hostname lw8: Main, up 476 days 04:42:23, Memory 9,742,808
Dec 9 10:17:25 hostname lw8: Main, up 476 days 08:42:23, Memory 10,179,864
But my actual uptime is ::
11:55am up 25 day(s), 10:38, 3 users, ... (5 Replies)
Discussion started by: brij123
5 Replies
10. UNIX for Dummies Questions & Answers
Hi folks,
In what circumstance does the log move to
/var/adm/messages.0.......messages.1,messages.2,messages.3 .......etc
---------- Post updated at 06:23 PM ---------- Previous update was at 06:17 PM ----------
To make my questions more understandable,
What are the processes that... (4 Replies)
Discussion started by: kimurayuki
4 Replies
strlog(9F) Kernel Functions for Drivers strlog(9F)
NAME
strlog - submit messages to the log driver
SYNOPSIS
#include <sys/stream.h>
#include <sys/strlog.h>
#include <sys/log.h>
int strlog(short mid, short sid, char level, unsigned short flags, char *fmt, ...););
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
mid Identification number of the module or driver submitting the message (in the case of a module, its mi_idnum value from mod-
ule_info(9S)).
sid Identification number for a particular minor device.
level Tracing level for selective screening of low priority messages. Larger values imply less important information.
flags Valid flag values are:
SL_ERROR Message is for error logger.
SL_TRACE Message is for trace.
SL_NOTIFY Mail copy of message to system administrator.
SL_CONSOLE Log message to console.
SL_FATAL Error is fatal.
SL_WARN Error is a warning.
SL_NOTE Error is a notice.
fmt printf(3C) style format string. %e, %g, and %G formats are not allowed but %s is supported.
DESCRIPTION
strlog() expands the printf(3C) style format string passed to it, that is, the conversion specifiers are replaced by the actual argument
values in the format string. The 32-bit representations of the arguments (up to NLORGARGS) follow the string starting at the next 32-bit
boundary following the string. Note that the 64-bit argument will be truncated to 32-bits here but will be fully represented in the string.
The messages can be retrieved with the getmsg(2) system call. The flags argument specifies the type of the message and where it is to be
sent. strace(1M) receives messages from the log driver and sends them to the standard output. strerr(1M) receives error messages from the
log driver and appends them to a file called /var/adm/streams/error.mm-dd, where mm-dd identifies the date of the error message.
RETURN VALUES
strlog() returns 0 if it fails to submit the message to the log(7D) driver and 1 otherwise.
CONTEXT
strlog() can be called from user or interrupt context.
FILES
/var/adm/streams/error.mm-dd
Error messages dated mm-dd appended by strerr(1M) from the log driver
SEE ALSO
strace(1M), strerr(1M), getmsg(2), log(7D), module_info(9S)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 11 Apr 1991 strlog(9F)