This might not the best method but I used the Log show command to access the unified logs.
And then directed this to a file. So I use this to monitor the camera status.
Hi All,
I have an expression as follows:-
a=`expr ${i} + ${j}` >> $log_file 2>&1
Here, if any of the values i or j or both happens to be empty then the "expr" returns error as
"expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Hi,
I have a script to compare 2 files.
file1=$1
file2=$2
num_of_records_file1=`awk ' END { print NR } ' $file1`
num_of_records_file2=`awk ' END { print NR } ' $file2`
i=1
while
do
sed -n "$i"p $file1 > file1_temp
sed -n "$i"p $file2 > file2_temp
diff file1_temp... (5 Replies)
Hi there,
We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default?
Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just... (0 Replies)
Hello, currently we are executing a .sh from terminal.
The current .sh looks like this:
#!/usr/bin/env bash
/Users/user/my.app/Contents/MacOS/my &
--
Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
#!/bin/ksh -x
cd /tmp/tj
ftp -n servername.com << DONE
user username password
as
put test.log
quit
close
DONE
echo "testing..."
sh -x scriptname, and it shows all, but username, as, put, quit, close, DONE.
how can i see those ? (1 Reply)
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built... (2 Replies)
Discussion started by: slwiley
2 Replies
LEARN ABOUT REDHAT
wbemlogviewer
wbemlogviewer(1M)wbemlogviewer(1M)NAME
wbemlogviewer - start WBEM Log Viewer
SYNOPSIS
/usr/sadm/bin/wbemlogviewer
The wbemlogviewer utility starts the WBEM Log Viewer graphical user interface, which enables administrators to view and maintain log
records created by WBEM clients and providers. The WBEM Log Viewer displays a Login dialog box. You must log in as root or a user with
write access to the rootcimv2 namespace to view and maintain log files. Namespaces are described in wbemadmin(1M).
Log events can have three severity levels.
o Errors
o Warnings
o Informational
The WBEM log file is created in the /var/sadm/wbem/log directory, with the name wbem_log. The first time the log file is backed up, it is
renamed wbem_log.1, and a new wbem_log file is created. Each succeeding time the wbem_log file is backed up, the file extension number of
each backup log file is increased by 1, and the oldest backup log file is removed if the limit, which in turn is specified in the log ser-
vice settings, on the number of logfiles is exceeded. Older backup files have higher file extension numbers than more recent backup files.
The log file is renamed with a .1 file extension and saved when one of the following two conditions occur:
o The current file reaches the specified file size limit.
o A WBEM client application uses the clearLog() method in the Solaris_LogService class to clear the current log file.
o A WBEM client application uses the clearLog() method in the Solaris_LogService class to clear the current log file.
o A user chooses Action->Back Up Now in the Log Viewer application.
Help is displayed in the left panel of each dialog box. Context help is not displayed in the main Log Viewer window.
The WBEM Log Viewer is not the tool for a distributed environment. It is used for local administration.
The WBEM Log Viewer allows you to perform the following tasks:
View the logs
Set properties of log fiClick Action->Log File Settings to specify log file parameters and the log file directory.
Back up a log file Click Action->Back Up Now to back up and close the current log file and start a new log file.
Open historical log fileClick Action->Open Log File to open a backed-up log file.
Delete an old log file Open the file and then click Action->Delete Log File. You can only delete backed-up log files.
View log record details Double-click a log entry or click View->Log Entry Details to display the details of a log record.
Sort the logs Click View->Sort By to sort displayed entries. You can also click any column heading to sort the list. By default,
the log entries are displayed in reverse chronological order (new logs first).
EXIT STATUS
The wbemlogviewer utility terminates with exit status 0.
/var/sadm/wbem/log/wbem_log
WBEM log file
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWwbcor |
+-----------------------------+-----------------------------+
wbemadmin(1M), init.wbem(1M), mofcomp(1M), attributes(5)
3 Jan 2000 wbemlogviewer(1M)