03-16-2009
This User Gave Thanks to TonyFullerMalv For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
If we have a process p1 running and then p2 attempts to shutdown p1. Is there a means for p1 to know who has requested him to shutdown
Thanks and regards,
Reji (1 Reply)
Discussion started by: rejise
1 Replies
2. Programming
Hello,
I am working on Sun Solaris 5.7. I am trying to read the running time of a process through a C program.
One way I am reading it is by using the command ps -<pid> -f
The other way is from the struct psinfo_t which is there under /proc/pid/psinfo.
However, the two times are... (1 Reply)
Discussion started by: hmurali
1 Replies
3. Programming
I have written a program to collect some performance metrics on and AIX box, but I'm having difficultly getting the process information.
I'm lead to believe that I'm not getting the correct information because I'm trying to run the program on AIX 5.1 (5100-03), but I'm not convinced as the... (0 Replies)
Discussion started by: StuBob
0 Replies
4. Shell Programming and Scripting
I need a script to record top 5 processes to a file. I need the timestamp, cpu and memory utilization along with the process ID.
Thanks in advance! (1 Reply)
Discussion started by: jabcd
1 Replies
5. Shell Programming and Scripting
Hello,
We have a domain where instances attached to it are in multiple machines. Is there any way that I can get the process information of the domain of a secondary server from the primary.
ssh authentication is enabled on the functional ID and if I scsu to that ID and do the ssh: $ssh machine2... (0 Replies)
Discussion started by: chiru_h
0 Replies
6. UNIX for Dummies Questions & Answers
What sort of statistical information related to a running process can we retrieve using commands? For example, we can get the process id, memory usage and running time of a process using the commands ps and ipcs . Can we get any more information about a running process?
Please list them. Also... (4 Replies)
Discussion started by: fermisoft
4 Replies
7. Shell Programming and Scripting
Hello all
im trying to build small script in tcsh that will monitor some process
that are making some api calles to some server .
first of all im trying to find way to see how many threads each process is using , and else how can i print each
Thread id .
can it be done ? ( using sunOs ) (2 Replies)
Discussion started by: umen
2 Replies
8. Programming
Can any one tell me is there any problem in reading the /proc/#/status file for finding out the exact process name..??? (4 Replies)
Discussion started by: clintoo
4 Replies
9. Solaris
Hi Guys
Is it possible to display which process generates the most i/o on my zpool?
With # zpool iostst 3 and iostat i just see the general i/o but not the i/o on the process level.
thx in advance,
Fry (0 Replies)
Discussion started by: fryzh
0 Replies
10. Shell Programming and Scripting
I want to extract the process having highest utilization on each processor core
and then output its information (PID etc.) to a file. How can I do it by using either top or ps command?
Thanks. (1 Reply)
Discussion started by: Vaibhavs1985
1 Replies
LEARN ABOUT OPENSOLARIS
ntp_adjtime
ntp_adjtime(2) System Calls ntp_adjtime(2)
NAME
ntp_adjtime - adjust local clock parameters
SYNOPSIS
#include <sys/timex.h>
int ntp_adjtime(struct timex *tptr);
DESCRIPTION
The ntp_adjtime() function adjusts the parameters used to discipline the local clock, according to the values in the struct timex pointed
to by tptr. Before returning, it fills in the structure with the most recent values kept in the kernel.
The adjustment is effected in part by speeding up or slowing down the clock, as necessary, and in part by phase-locking onto a once-per
second pulse (PPS) provided by a driver, if available.
struct timex {
uint32_t modes; /* clock mode bits (w) */
int32_t offset; /* time offset (us) (rw) */
int32_t freq; /* frequency offset (scaled ppm) (rw) */
int32_t maxerror; /* maximum error (us) (rw) */
int32_t esterror; /* estimated error (us) (rw) */
int32_t status; /* clock status bits (rw) */
int32_t constant; /* pll time constant (rw) */
int32_t precision; /* clock precision (us) (r) */
int32_t tolerance; /* clock frequency tolerance
(scaled ppm) (r) */
int32_t ppsfreq; /* pps frequency (scaled ppm) (r) */
int32_t jitter; /* pps jitter (us) (r) */
int32_t shift; /* interval duration (s) (shift) (r) */
int32_t stabil; /* pps stability (scaled ppm) (r) */
int32_t jitcnt; /* jitter limit exceeded (r) */
int32_t calcnt; /* calibration intervals (r) */
int32_t errcnt; /* calibration errors (r) */
int32_t stbcnt; /* stability limit exceeded (r) */
};
RETURN VALUES
Upon successful completion, ntp_adjtime() returns the current clock state (see <sys/timex.h>). Otherwise, it returns -1 and sets errno to
indicate the error.
ERRORS
The ntp_adjtime() function will fail if:
EFAULT The tptr argument is an invalid pointer.
EINVAL The constant member of the structure pointed to by tptr is less than 0 or greater than 30.
EPERM The {PRIV_SYS_TIME} privilege is not asserted in the effective set of the calling process.
SEE ALSO
xntpd(1M), ntp_gettime(2), privileges(5)
SunOS 5.11 1 Feb 2003 ntp_adjtime(2)