Shell Programming and Scripting

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

👤 Login to reply

Thread Tools Search this Thread Display Modes
Old 07-09-2010
Sounddappan Sounddappan is offline
Registered User
Join Date: May 2010
Last Activity: 12 July 2012, 7:15 AM EDT
Location: Mother Earth
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"`

Its very critical and 'm in need to schedule this on my crontab so that the output can be monitored by a tool

I have written the command below to redirect the error which has the output redirected to the file gincle_lol.log.

echo "---" >>/gingle/gincle_lol.log
date >>/gingle/gincle_lol.log
errpt -d H -T PERM -s `date +"%m%d%H00%y"` >>/gingle/gincle_lol.log
echo "--" >>/gingle/gincle_lol.log

I want to know what will be the output, because i have written this command to redirect the output which has hardware Permanent errors from the current time -1

This will give you the output of the errors happened current time -1
Eg: If the job is run @ 6:00 then -1 the output will contain the errors between 5 and 6

7=> 6-7
8=> 7-8
9=> 8-9

Note: The job is scheduled every 1 hour

Current me if ‘m wrong…
Please help me on this front... Its critical..

Moderator's Comments:
problem in understanding the output of errpt -d H -T PERM -s `date +"%m%d%H00%y"` Use code tags, ty.

Last edited by zaxxon; 07-09-2010 at 10:24 AM.. Reason: code tags
Sponsored Links
Old 07-09-2010
methyl methyl is offline
Registered User
Join Date: Mar 2008
Last Activity: 8 June 2016, 9:58 PM EDT
Posts: 6,402
Thanks: 288
Thanked 676 Times in 645 Posts
Examples in Appendix A.

IBM Redbooks | IBM eServer Certification Study Guide - AIX 5L Performance and System Tuning
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
"Join" or "Merge" more than 2 files into single output based on common key (column) Katabatic Shell Programming and Scripting 1 05-20-2010 11:41 AM
Explanation of "total" field in "ls -l" command output proactiveaditya UNIX for Dummies Questions & Answers 1 04-18-2010 01:40 AM
add seconds to: date"|"time"|"HHMMSS anaconga UNIX for Advanced & Expert Users 3 08-27-2008 01:17 PM
Sorting problem "sort -k 16,29 sample.txt > output.txt" ganapati Shell Programming and Scripting 3 08-01-2006 05:55 AM
Weird problem with output from "date '+3600*%H+60*%M+%S' " m223464 Shell Programming and Scripting 5 02-16-2006 11:22 AM

All times are GMT -4. The time now is 06:31 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?