Search Results

Search: Posts Made By: Kalaihari
17,081
Posted By Kalaihari
Tried and the result came wrong
Hi All,

I have just tried the below code to make the result comes along with the header and i got the result as attached. It seems to be wrong. Could you please help me out to correct this one to...
17,081
Posted By Kalaihari
Hi ChublerXL, Last and it will definitely be...
Hi ChublerXL,

Last and it will definitely be the LAST help needed from you. It will be simple for you either.

I just need the headers to be noted in the email

like FILESYSTEM GB BLOCKS...
17,081
Posted By Kalaihari
Thanks Chubler_XL :b: Thank you for your...
Thanks Chubler_XL :b:

Thank you for your worthful support given to me :) You are awesome!! :b:

PFA output result :)

Cheeers
HARI:)
17,081
Posted By Kalaihari
Hi Chubler XL, Thanks !!! :b: IT WORKED . ...
Hi Chubler XL,

Thanks !!! :b: IT WORKED .

One more small favour. Instead of bringing the servername in each line. Is that possible to make it as a first row of the table

I tried by giving...
17,081
Posted By Kalaihari
Sure chubler , I will try replacing it in...
Sure chubler ,

I will try replacing it in and will let you know the final result.

Cheers
Hari
17,081
Posted By Kalaihari
Thanks Chubler XL :) It worked fine!!! Now...
Thanks Chubler XL :)

It worked fine!!! Now i can easily collect the list of space issues :) Thanks thanks thanks a lot!!!

I would like to appreciate all at this moment to made this code runs...
17,081
Posted By Kalaihari
Am getting error message : awk: Not a...
Am getting error message :

awk: Not a recognized flag: H
Usage: awk [-u] [-F Character][-v Variable=Value][-f File|Commands][Variable=Value|File ...]

:(
17,081
Posted By Kalaihari
:b: THANKS A LOT !!! CHUBLER XL .. YOUR...
:b: THANKS A LOT !!! CHUBLER XL ..

YOUR CODE WORKED CHARMING !!

99% over now. I got the result but i jus want to add the server names in the table


df -g | awk 'NR>1&&($4+0)>70' | awk ' ...
17,081
Posted By Kalaihari
Hi Chubler X:L, This will work for one...
Hi Chubler X:L,

This will work for one server , but am planning to redirect the result to a .HTML format for all 17 servers which am planning to collate in a single email body and bring it as a...
17,081
Posted By Kalaihari
printf "<html>\n<body>\n" df -g | awk...
printf "<html>\n<body>\n"
df -g | awk 'NR>1&&($4+0)>70' | awk '
BEGIN {print "<table border=\"1\" cellpadding=\"4\" style=\"border-collapse: collapse\">"}
NR>1{
print "<tr>"
for( i =...
17,081
Posted By Kalaihari
Some error occured
Hi Scott and Chubler ,

When i executed the script the result came like

table>
<tr>
<td>/dev/hd4</td>
<td>0.75</td>
<td>0.56</td>
<td>26%</td>
<td>9702</td>
<td>7%</td>
<td>/</td>...
17,081
Posted By Kalaihari
Sure Scott. But if you can help me out by making...
Sure Scott. But if you can help me out by making it comes as a table formatted as requested it would be really appreciatable. I will post the output of your suggestion in my next reply. Thanks a lot
17,081
Posted By Kalaihari
Thanks corona688
Hi Corona688,

I'd really appreciate if you can help me out with the HTML encoding as am not aware of it , am unable to do it


df -g | awk 'NR>1&&($4+0)>70' |awk 'NR>1&&($4+0)<80' >...
17,081
Posted By Kalaihari
Color encoding on the disk space script
Hi All,

Hope all are doing good!! Am glad that i have utilized some ideas and written a code to make the disk space result comes better and it was successfully running in the production. The next...
2,126
Posted By Kalaihari
Doubt in tee /dev/tty
Friends,

Thanks for your valuable inputs. Will try it out and let you know asap.. But i have a doubt on the command

tee /dev/tty

tee means creation of file. Could you please explain me that...
2,126
Posted By Kalaihari
thanks for the prompt response
Hi, Thanks

I will be receiving different fileextensions like *.MOB *.TXT *.VBS *.MI so am unable to judge what kind of extension it may have sometimes it wont have an extension to find out. so...
2,126
Posted By Kalaihari
Total number of files in the folder should be listed
Hi All,

When i give the ls -lrt to list out all files with total number of files , i get the output as

ls -lrt
total 72
-rw-r--r-- 1 hari staff 796 Jul 11 09:17 va.txt...
6,871
Posted By Kalaihari
Sure Gab
Hi Gabriel,

Yeah definitely i will use the ideas which you shared and i had an idea, but could you please let me know whether this will help for me..

In this below code :

df -g | awk...
6,871
Posted By Kalaihari
Thanks for the help provided :)
Hi guys,

I have used the code given and edited some parts and implemented the code in my servers . The code implemented was given below:

#Report file format for all the servers to grep the...
6,871
Posted By Kalaihari
Hi JustIce, I apologize for the wrong tone,...
Hi JustIce,

I apologize for the wrong tone, i din mean to express like that. I dont know whether you got me or not. AM sorry for the words used. And i will try using the grep code which you...
6,871
Posted By Kalaihari
Dude, The thing is there is no threshold...
Dude,

The thing is there is no threshold limit crossed , so the output for that should be "NO issues to report" . Am i right? but i got the line "Filesystem GB blocks Free %Used Iused...
6,871
Posted By Kalaihari
Am not getting the exact output for the code ...
Am not getting the exact output for the code


df -g | awk '+$4 >= 70 {print}' >report.txtif [ ! -s report.txt ]then echo "No issues to report."fi

Please correct me if am wrong, am getting...
6,871
Posted By Kalaihari
Hi AM using AIX
Hi

AM using AIX
6,871
Posted By Kalaihari
Hi , So my code should looks like this am...
Hi ,

So my code should looks like this am i right? Am just confirming before implementing


df -g | awk '+$4 >= 70 {print}' >report.txt
if [ ! -s report.txt ]
then
echo "No issues to...
6,871
Posted By Kalaihari
Disk space threshold report
Hi All,

I have a code which will give me the result of the diskspace which reached the threshold limit 70% and am redirecting it to report.txt . The code is given below.

df -g | awk '+$4 >=...
Showing results 1 to 25 of 40

 
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy