Awk File For Jitter

Sir, send me some awk file to calculate Jitter.......


Similar Content



Do Iptables Support Jitter Simulation?

I'm trying to find out if Iptables supports creating jitter, like it does for packet loss. I'm using 'iptables -A INPUT -m statistic --mode random --probability 0.02 -j DROP' to simulate packet loss, but can I do something similar to create jitter? I think TC will do it, but our firmware does not support it. If there is an alternate solution, any advice would be greatly appreciated.

NTP Synchronization Failed

I have two clients : exa02db01 & exa02db02

While querying for NTP server from exa02db01, we see that it is syncing to LOCAL time on the node. However, on exa02db02 it points to the NTP server on the network.

Code:
[root@exa02db01 ~]# ntpq -pn
    remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*127.127.1.0     .LOCL.          10 l    7   64  377    0.000    0.000   0.001
192.168.1.82    .INIT.          16 u    -   16    0    0.000    0.000   0.000
-------------------------
Node-2:
---------------------
[root@exa02db02 ~]# ntpq -pn
    remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
127.127.1.0     .LOCL.          10 l   42   64  377    0.000    0.000   0.001
*192.168.1.82    66.228.59.187    3 u    6   16  377    3.145    5.747   3.683

Both the clients have exact same configuration but why its is failing on db01.

[root@exa02db01 ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root@exa02db01 ~]# ntpdate -b -v 192.168.1.82
17 Mar 10:12:01 ntpdate[84316]: ntpdate 4.2.2p1@1.1570-o Mon Dec 9 14:55:56 UTC 2013 (1)
17 Mar 10:12:05 ntpdate[84316]: no server suitable for synchronization found
[root@exa02db01 ~]# service ntpd start
ntpd: Synchronizing with time server: .....................[FAILED]
Starting ntpd: [ OK ]

How To Shrink A Large Audio Ogg File

I would like to learn how to create a zip file. The word zip file is a Windows/Microsoft word. I do not know what word is used in Linux OS.
What I am trying to do is send a copy of an internet radio show. The show is two hours long. When I try to attach the audio file to an email. I am told the file is too large.
I have permission from the host of the radio show to make a copy and send it to a friend.

Need Commands For The Following Scenario

scenario: two servers A and B are connected together
server A can not send a file name F directly to server B
server B can send anything to server A

How can we copy or move the file F from server A TO B with all file permissions

Thanks for your kind help

Making A DB Backup And Send It To Another Server

Hello everyone;

At this time I need to make a sh script to make a db backup an send it to another server.

Thinking about this, I think I have to:
1.- Make a connection beetween the servers without password
2.- The scrip must to do:
a.- Make the mysqldump
b.- Put it in a gzip file
c.- Send througth scp the gzip file and ONLY when the copy has done the script have to delete the files that are 3 days old.

Could you help me with this?

Do you consider that is a good idea or you have a better one?

Thanks in advance.

How To Copy File From Remote Host To Local Host Then Delete From Remote Host

I have an expect script to SSH to a remote host and obtain some user inputs and information about the server/network configuration. The responses are saved in a text file that I then need to copy to my local host so that I can read the lines into variables for use in the parent shell script.

Is there a way to do this without needing to enter the username and password for the local host to use function scp? I have tried the following in my expect script to no avail:
Code:
spawn scp $usr@$host:$flnm .
expect {
	-re "(.*)assword:" { 
		send -s "$pswd\r"
	}
}

I have also tried to directly scp the file and enter the username and password to try to debug the issue, and that doesn't work either:
Code:
spawn scp file.txt user@host:file.txt
expect {
	-re "(.*)assword:" {
		send -s "password\r"
	}
	"you sure you want to continue connecting" {
		send -s "yes\r"
		exp_continue
	}
}

In both scenarios I have used exp_internal 1, and there are no errors. But I do not end up with the file on my local host.

Following the copy, I would like to delete the file from the remote host. Any suggestions on how to accomplish this?

(Kali Linux User Only) .bashrc File Is Messed Up.

Could someone that is using Kali Linux please send me their bash.rc file?! I accidently screwed mine up and I can't reset it back to default. Thanks.

Script To Find The File Creation Time Is More Than Ten Minutes

Hi All,

Im trying to create a script which checks the creation time of a file and if it is more than ten minutes, send out an alert.

For ex : Creation date of file is 10:30 AM
current time is 10:45 AM

Then send an alert/ message.

This is the script i wrote below :

Code:
#!/bin/ksh

filename="/apps/log/file.txt"

if [ -f "${filename}" ]
then
        createTime=`ls -lad "${filename}" | awk '{print $8}'`
        echo "$createTime"
        currentTime=`date '+%M'`
        echo "$currentTime"
        DIFF=$(( $currentTime - $createTime )) 
        echo "$DIFF"

else

        exit 1

fi

I am getting syntax error on the subraction when i try to run this script . I can understand that creation time and current time is in different format thats y this error throws, but i dont know how to rectify it .

I need to find out if the file creation time is more than ten minutes.

Please help me in achieving this output.

Regarding The Processing Of A File Based On The Date Present In File Name Dynamically

Hi Experts,

i am completely new to scripting.i had a requirement where i need to add the time to name of the file and i need to get the latest file. in order to fulfill this i need a script. and my os is unix.so please help me guys




Thanks
Giridhar

Need Help In Bash Scripting

I have two files which has exact same number of lines.
I want first line of first file should be filename of new file and content of this new file should be first line of second file.
Then second line of first file should be filename of again new file and content of this new file should be second line of second file.
then third line of first file should be filename of again new file and content of this new file should be third line of second file.
and so on...
I am trying to do it using for loop but I am not able to create two for loops.
This is what I have done
Code:
IFS=$'\n'
var=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\".*/\2/g' 1797.csv) # filenames of all files
var2=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\"\(.*\)\"$/\3/g' 1797.csv) # contents of all files
for j in $var;
do
#Here I do not know how to use $var2
done

Please help.