Search Results

Search: Posts Made By: Green_Star
Forum: HP-UX 06-21-2018
21,672
Posted By Green_Star
Thanks a lot Bakunin. That really helps me...
Thanks a lot Bakunin. That really helps me understand the background!!!

---------- Post updated at 11:52 AM ---------- Previous update was at 09:57 AM ----------



Just wondering what would...
Forum: HP-UX 06-19-2018
21,672
Posted By Green_Star
Hi there, sorry to bother you again. When I...
Hi there, sorry to bother you again.

When I had this command "ntpq -c rl" run on the server, this the the output I get.

associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,...
Forum: HP-UX 05-23-2018
21,672
Posted By Green_Star
Hello, One more question. Once we detect...
Hello,

One more question.
Once we detect the offset >+/- 50ms, can we correct the time within the script i.e. get the time in sync ?

Thanks!
Forum: HP-UX 05-17-2018
21,672
Posted By Green_Star
Perfect!! Thanks a lot for sharing your...
Perfect!!

Thanks a lot for sharing your knowledge - MadeInGermany.
Forum: HP-UX 05-16-2018
21,672
Posted By Green_Star
Hi MadeInGermany, Quick question for my...
Hi MadeInGermany,

Quick question for my knowledge purposes.
If NTP is scheduled to run every 10 minutes on the server, do you think the clocks get synchronised?
Will there be an explicit need...
Forum: HP-UX 05-14-2018
21,672
Posted By Green_Star
Thanks a lot for your response MadeInGermany. ...
Thanks a lot for your response MadeInGermany.

I will try this.

Thanks.
Forum: HP-UX 05-14-2018
21,672
Posted By Green_Star
Thanks rbattle1 for your response. The user...
Thanks rbattle1 for your response.

The user wants us to create a script that runs on the UNIX HP-UX server every 10 min and check for any time drifts >+/- 50 ms. If the time drift is >+/- 50 ms...
Forum: HP-UX 05-11-2018
21,672
Posted By Green_Star
Thanks for your response hicksd8. My...
Thanks for your response hicksd8.

My responses are below

You have an internal company NTP server? Yes, we have internal NTP server

You are trying to test it's accuracy, is that correct?...
Forum: HP-UX 05-10-2018
21,672
Posted By Green_Star
Script to detect time drift
Hello there,

I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it...
1,236
Posted By Green_Star
Script to detect time drift on server
Hello there,

I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it...
6,114
Posted By Green_Star
That was my fault. I was reading the wrong file...
That was my fault. I was reading the wrong file and expecting the right answer. Didn't realize that until vgersh99 mentioned he tested and it works for him.
6,114
Posted By Green_Star
OOH!!! Now it works. Thanks a lot to all of...
OOH!!! Now it works.

Thanks a lot to all of you. It was really nice help from everyone of you.
6,114
Posted By Green_Star
oh really. Nice. Which shell are you using?...
oh really. Nice.

Which shell are you using? I am using Korn Shell. Thanks
6,114
Posted By Green_Star
Thanks Scrutinizer. But the grep does not...
Thanks Scrutinizer.

But the grep does not give me the count of words present in the file.

Thanks

---------- Post updated at 03:22 PM ---------- Previous update was at 03:19 PM ----------
...
6,114
Posted By Green_Star
This seems not to work as required. My file is...
This seems not to work as required.
My file is as follows:

If I run this code
nawk '{n+=gsub("esprd","", tolower($0))}END{exit n>0}' myFile

The return value is 5. I thought the value would...
6,114
Posted By Green_Star
Help with grep & count
Thanks Corona688


if ! nawk '{n+=gsub("esprd","")}END{exit n>0}' myFile


Can gsub be used along with ignore case. Like how to make this work for esPRD/ESprd/ etc.I tried looking but didn't...
6,114
Posted By Green_Star
Thanks all. That helps a lot. Can I use the...
Thanks all. That helps a lot.

Can I use the above code like this:
count=`nawk '{n+=gsub("esprd","")}END{print n}' myFile`
if [ $count == 0 ] ; then
echo success
else
exit

I donno why I...
6,114
Posted By Green_Star
Thanks vgersh99. It seems working and i will...
Thanks vgersh99. It seems working and i will include this code in my scripts to see if i get required results. Can you please detail me on the code(ofcourse if u have time or else i will figure out...
6,114
Posted By Green_Star
thanks vgersh99
My problem is it does not give me the count of words. It gives me the count of lines. In production region "esprd" should occur only 4 times in the queues. It test region it should occur 0 times. So...
6,114
Posted By Green_Star
Help with grep & count in ksh
Hello,

I have input file with queue names

No.esprd.Queue|No.esdev.Queue|||n|120|No_User||No_User|
No.esdev.Queue|No.esdev.Queue|||n|120|No_User||No_User|

I have to check if the...
Showing results 1 to 20 of 20

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