Sponsored Content
Top Forums UNIX for Dummies Questions & Answers NTP high offset | no servers can be used, exiting Post 302838869 by cjcox on Tuesday 30th of July 2013 04:34:05 PM
Old 07-30-2013
Sometimes an answer is turning off the local clock (127.127.1.0). You might also want to look at the "tinker panic" option.
 

9 More Discussions You Might Find Interesting

1. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies

2. UNIX for Dummies Questions & Answers

How to setup NTP on unix and linux servers?

I have a hostname/ip of our network time server. What are the steps to take to set each server up to synchronize the clocks? Thanks (4 Replies)
Discussion started by: ChadKam
4 Replies

3. AIX

Configure one host against two ntp servers for redundancy

Dears all is it possible to have two NTP servers in one host ? how i can configure them . please advice (5 Replies)
Discussion started by: thecobra151
5 Replies

4. Solaris

NTP client offset

How to add offset to NTP client so that, for eg., clock is -20 seconds? (2 Replies)
Discussion started by: orange47
2 Replies

5. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

6. Solaris

Client does not sync date with ntp servers

We had a network problem a couple of days before that caused 1 interface to down and up. But today I have noticed that our date is wrong, our system have 4 servers and the other 3 are OK. I used <date> command, the result is: Fri Jan 2 17:57:55 ICT 1970 I have tried set date to be the same as... (3 Replies)
Discussion started by: salvation3103
3 Replies

7. UNIX for Advanced & Expert Users

Grep --byte-offset not returning the offset (Grep version 2.5.1)

Hi, I am trying to get the position of a repeated string in a line using grep -b -o "pattern" In my server I am using GNU grep version 2.14 and the code is working fine. However when I am deploying the same code in a different server which is using GNU grep version 2.5.1 the code is not... (3 Replies)
Discussion started by: Subhamoy
3 Replies

8. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

9. Shell Programming and Scripting

High availability of a process between two Linux servers

Hello, I would like to create a script that will maintain HA/failover of a process between two servers. I wanted to send a continuous heartbeat message through a script to another server when everything is working fine, if a process has gone down then the same message should be sent another... (4 Replies)
Discussion started by: Mahesh_RPM
4 Replies
IMAGECOLORRESOLVEALPHA(3)						 1						 IMAGECOLORRESOLVEALPHA(3)

imagecolorresolvealpha - Get the index of the specified color + alpha or its closest possible alternative

SYNOPSIS
int imagecolorresolvealpha (resource $image, int $red, int $green, int $blue, int $alpha) DESCRIPTION
This function is guaranteed to return a color index for a requested color, either the exact color or the closest possible alternative. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $red -Value of red component. o $green -Value of green component. o $blue -Value of blue component. o $alpha - A value between 0 and 127. 0 indicates completely opaque while 127 indicates completely transparent. The colors parameters are integers between 0 and 255 or hexadecimals between 0x00 and 0xFF. RETURN VALUES
Returns a color index. EXAMPLES
Example #1 Using imagecoloresolvealpha(3) to get colors from an image <?php // Load an image $im = imagecreatefromgif('phplogo.gif'); // Get closest colors from the image $colors = array(); $colors[] = imagecolorresolvealpha($im, 255, 255, 255, 0); $colors[] = imagecolorresolvealpha($im, 0, 0, 200, 127); // Output print_r($colors); imagedestroy($im); ?> The above example will output something similar to: Array ( [0] => 89 [1] => 85 ) NOTES
Note This function requires GD 2.0.1 or later (2.0.28 or later is recommended). SEE ALSO
imagecolorclosestalpha(3). PHP Documentation Group IMAGECOLORRESOLVEALPHA(3)
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy