Unix/Linux Go Back    


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"`

Shell Programming and Scripting


Tags
aix, script file date end

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-09-2010   -   Original Discussion by Sounddappan
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.


Code:
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

Output
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


Code:
7=> 6-7
8=> 7-8
9=> 8-9
10=>9-10

Note: The job is scheduled every 1 hour


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

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 11:24 AM.. Reason: code tags
Sponsored Links
    #2  
Old Unix and Linux 07-09-2010   -   Original Discussion by Sounddappan
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
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 12:41 PM
Explanation of "total" field in "ls -l" command output proactiveaditya UNIX for Dummies Questions & Answers 1 04-18-2010 02:40 AM
add seconds to: date"|"time"|"HHMMSS anaconga UNIX for Advanced & Expert Users 3 08-27-2008 02:17 PM
Sorting problem "sort -k 16,29 sample.txt > output.txt" ganapati Shell Programming and Scripting 3 08-01-2006 06:55 AM
Weird problem with output from "date '+3600*%H+60*%M+%S' " m223464 Shell Programming and Scripting 5 02-16-2006 12:22 PM



All times are GMT -4. The time now is 01:08 AM.