Search Results

Search: Posts Made By: sam@sam
9,104
Posted By sam@sam
How to pass password as a variable for sshpass authentication?
Using below below command i'm able to connect or authenticate server, In below command password contains special characters
sshpass -v -p 'ASJBA%hs76)#' ssh -q -o ConnectTimeout=5 hostname

But...
3,982
Posted By sam@sam
Perfect its working Thanks you RavinderSingh,...
Perfect its working
Thanks you RavinderSingh, for your help.
3,982
Posted By sam@sam
Calculate total memory using free -m
Hi

I am trying to calculate memory used by Linux System
free -m
total used free shared buffers cached
Mem: 32109 31010 1099 0 3600 7287
-/+ buffers/cache: 20121 11987
Swap: 10239 1282 8957
...
5,680
Posted By sam@sam
Thanks for the response but The commands which...
Thanks for the response but The commands which you have provided does meet my need.

My requirement was to check only RAM (not virtual memory) consumed by OS kernel or allocated to OS kernel

...
5,680
Posted By sam@sam
Hi Bakunin, I have many application...
Hi Bakunin,

I have many application running on LINUX box, RAM allocated on this box is 15GB
I want to know how much memory is consumed by Applications and OS

total ...
5,680
Posted By sam@sam
Command to check memory used or consumed by OS kernel
I am trying to check how much memory is consumed by OS Kernel using below command, Is this the correct command that I'm using

grep Slab /proc/meminfo
Output : Slab: 3106824 kB
IF...
6,728
Posted By sam@sam
Thanks
Thanks
6,728
Posted By sam@sam
Passing credentials via .netric file in Linux
How to create netrc file...I searched in google & got to know that we have to create .netrc file in home directory, I've created .netrc file in in home directory
created .netrc file in home...
1,261
Posted By sam@sam
Perfect Thanks its working > disedorgue &...
Perfect Thanks its working > disedorgue & RudiC
1,261
Posted By sam@sam
the output stored in variable may contain either...
the output stored in variable may contain either any one of the below:
1> access Denied for server
2> access for apache is successfull
3> couldn't access the server
if the above three are not...
1,261
Posted By sam@sam
Grep strings for different cases
Hi All,
Good morning
I have a below code which is working & getting expected output. the problem in this code is it is executing 3 if conditions, my requirement is
suppose if first condition is...
1,521
Posted By sam@sam
Hello Rudi, you are right and the code works...
Hello Rudi, you are right and the code works fine...
awk '{val=(($3+0)-($4+0))/(1024*1024*1024)} val > 1.3 {printf "%s %s %s %s %.1f %s %s %s %s %s\n", $1,$2,$3,$4,val,$5,$6,$7,$8,$9 | "sort -k5,5nr...
1,521
Posted By sam@sam
Hello Aia, As per my requirement I gave input...
Hello Aia, As per my requirement I gave input parametre(limit) as 1.3, & output generated is shown in below code & from that output .........it should print only one line which contains the max...
1,521
Posted By sam@sam
Hello Aia, I have produced 2 outputs, and...
Hello Aia, I have produced 2 outputs, and compared with column 5, I see some differences,
in 2nd line for output2 its showing 1.6 but i think it should be 1.5 and vice versa for next lines . can u...
1,521
Posted By sam@sam
Thanks Aia, I got output from below code: cat...
Thanks Aia, I got output from below code:
cat sam | awk '{val=($3-$4)/(1024*1024*1024)} val > 1.3 {print $1,$2,$3,$4,val,$5,$6,$7,$8,$9;} '

but in the output column 5 should be printed as below,...
1,521
Posted By sam@sam
Subtract coloumn3 with coloumn 4 & divide it
I have a file called testfile as per my requirement I want to subtract coloumn3 with coloumn 4 & divide it with (1024*1024*1024)) and finally if the value is greater than 1.5 then it should be...
2,762
Posted By sam@sam
Hello Don, Finally I could get the results now
Hello Don, Finally I could get the results now
2,762
Posted By sam@sam
Yes, Don your assumption are right and the output...
Yes, Don your assumption are right and the output is producing correct results...let me check this cmd on my sys

---------- Post updated at 04:31 PM ---------- Previous update was at 04:25 PM...
2,762
Posted By sam@sam
Convert hexadecimal value to decimal value
Hi All,

cat filename | awk '{print $1, $2, $4, $5, $6, $7, $8, $9, $10;}' | awk 'NF > 0'
OUTPUT:
2015-01-19 00:12:32 00000000fbfa0000 000000009ae5cf80 014d 015d 0017 003c 0362de20...
2,953
Posted By sam@sam
Hello Ravinder singh, As suggested I have tried...
Hello Ravinder singh, As suggested I have tried using /usr/xpg4/bin/awk , /usr/xpg6/bin/awk , or nawk but only nawk seems to generate results but getting negative results: below are the 3 sample...
2,953
Posted By sam@sam
Hi R.Singh your code match my requirement but at...
Hi R.Singh your code match my requirement but at when use awk Im not getting expected results, can you please help me here
START=`date +"%T" | awk -F":" '{print $2 FS $3}'`
echo $START
31:36
...
2,953
Posted By sam@sam
Difference between two date values
bash-3.00$ date
Tue Oct 13 15:03:54 CEST 2015
start=`date +"%T" | awk -F":" '{print $2,$3}'`
echo $start
08 17
end=`date +"%T" | awk -F":" '{print $2,$3}'`
echo $end
08 37

how can I get the...
2,950
Posted By sam@sam
CURL syntax
Topic : cmd to check status of url using Curl
I have below 2 lines which r working fine
/usr/bin/curl -u user:pasword http://hostname
/usr/bin/curl -connect-timeout=10 http://hostname

Now I...
6,661
Posted By sam@sam
I have below three commands can you suggest...
I have below three commands can you suggest which is the best and secured, or any other alternate solution for this

ssh -q user@$server1 exit
ssh -o ConnectTimeout=3 user@$server1 exit
ssh -o...
6,661
Posted By sam@sam
Command to check if the server is not reachable using ssh
I have list for servers say server1, server2, server3.....server20
I want to test the ssh connectivity of each server, if any one of the server is down then ssh connectivity fails and the script ...
Showing results 1 to 25 of 35

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