Sponsored Content
Operating Systems Linux Unique Linux ID in virtualized environment Post 302910274 by skyineyes on Wednesday 23rd of July 2014 11:44:50 AM
Old 07-23-2014
since its based on hardware, so i think it won't be unique in virtualised environment. Could you please tell?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

System environment Path in Linux

HI there people!! I'm really new with this great OS. I just installed a RedHat Linux 7.1 on my unit. Got it to work on dual boot with my Windows 2000. And I have some problem... how do i change/modify the system environment path? Thanks... and sorry for the ignorance ;) (5 Replies)
Discussion started by: spine_me
5 Replies

2. UNIX for Dummies Questions & Answers

how to set up linux environment variables?

Hi I'm using Linux, in the directory /root/my there is a.out. but when I try to run it , the shell indicate "bash:a.out: command not found" but I AM working in this directory. if I use "./a.out" , it works perfectly. can any body tell me how to do a permanent set up so that I can use... (5 Replies)
Discussion started by: dell9
5 Replies

3. UNIX for Advanced & Expert Users

Mail Receiving issue in linux Environment

we got one critical issue in job scheduling.we are migrating one application from solaris environment (Current PROD) to SUSE linux 9 environment (New or ported PROD).The application actually schedules the job by filtering the subject of the incoming mail (using PROCMAIL).Here incoming mail is... (0 Replies)
Discussion started by: prisaras
0 Replies

4. UNIX for Dummies Questions & Answers

Linux Dev environment for c/c++ on Fedora 10

Hello I have never used linux before and I am a bit confused as to what I am doing. I have been asked to port over some of our in house sdk to linux. Currently I am using .Net and c++. I have installed Fedora 10 on my computer and got that up and running nicely. I also installed eclipse for my... (1 Reply)
Discussion started by: morty346
1 Replies

5. Shell Programming and Scripting

sed command working different in linux environment.

Hi I tried running the code scrname=`whence $0 | sed -e 's/\.\///g'` where $0 is substituted by cm_dsjobrun.sh in unix env then the value it returns me is SCRNAME=/data/ds/dpr_ebicm_uat/etl/cm3_0/scripts/shell/cm_dsjobrun.sh whereas i ran the same code on linux env The value... (9 Replies)
Discussion started by: vee_789
9 Replies

6. Shell Programming and Scripting

select unique values from duplicates in linux

I have values in the variable as so the for loop just fetches one by one params=$'$HEW_SRC_DATABASE_LIB\nprmAttunityUser\nprmAttunityPwd\nprmODBCDataSource\nprmLoadInd\nprmSrc_Lib_ATM\nprmODBCDataSource_ATM' and i have a grep command like this ret=`grep \$y $pf` ... (0 Replies)
Discussion started by: vee_789
0 Replies

7. UNIX for Dummies Questions & Answers

setting a environment variable on linux

I want to set a enviroment variable VDC_DIR to a particular directory. I am doing it as export VDC_DIR=/abc it gets set but when i logout and do relogin than its not there. one way could be setting it in .profile file. but i have seen it on another box where it is not present in... (2 Replies)
Discussion started by: Jcpratap
2 Replies

8. HP-UX

Unique ID on HPUX in visualized environment?

Hi I need to know what is the unique identifier for HPUX OS even in a virtualized environment? Thanks (0 Replies)
Discussion started by: skyineyes
0 Replies

9. Solaris

Unique ID on Solaris in visualized environment?

Hi I need to know what is the unique identifier for solaris OS even in a virtualized environment? Will "Using Universally Unique Identifiers" help? virtinfo -u Domain UUID: 9db53f14-f27c-69f9-a71c-8926e9ae6eed If Not, then let me know? Would appreciate if similar UNIQUE id (of... (3 Replies)
Discussion started by: skyineyes
3 Replies
gethrtime(3C)						   Standard C Library Functions 					     gethrtime(3C)

NAME
gethrtime, gethrvtime - get high resolution time SYNOPSIS
#include <sys/time.h> hrtime_t gethrtime(void); hrtime_t gethrvtime(void); DESCRIPTION
The gethrtime() function returns the current high-resolution real time. Time is expressed as nanoseconds since some arbitrary time in the past; it is not correlated in any way to the time of day, and thus is not subject to resetting or drifting by way of adjtime(2) or settime- ofday(3C). The hi-res timer is ideally suited to performance measurement tasks, where cheap, accurate interval timing is required. The gethrvtime() function returns the current high-resolution LWP virtual time, expressed as total nanoseconds of execution time. The gethrtime() and gethrvtime() functions both return an hrtime_t, which is a 64-bit (long long) signed integer. EXAMPLES
The following code fragment measures the average cost of getpid(2): hrtime_t start, end; int i, iters = 100; start = gethrtime(); for (i = 0; i < iters; i++) getpid(); end = gethrtime(); printf("Avg getpid() time = %lld nsec ", (end - start) / iters); ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
proc(1), adjtime(2), gettimeofday(3C), settimeofday(3C), attributes(5) NOTES
Although the units of hi-res time are always the same (nanoseconds), the actual resolution is hardware dependent. Hi-res time is guaran- teed to be monotonic (it won't go backward, it won't periodically wrap) and linear (it won't occasionally speed up or slow down for adjust- ment, like the time of day can), but not necessarily unique: two sufficiently proximate calls may return the same value. SunOS 5.11 7 Sep 2004 gethrtime(3C)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy