Help with Projects - process in wrong project


 
Thread Tools Search this Thread
Operating Systems Solaris Help with Projects - process in wrong project
# 1  
Old 05-21-2008
Help with Projects - process in wrong project

So I have 2 projects (proj1 and proj2) and 2 users (usr1 and usr2). Entries in /etc/project and /etc/user_attr to assign usr1 to proj1 (collectively the app) and usr2 to proj2 (collectively the db). All looks just great, but I see process that are owned by usr2, but have a projid from proj1. usr1 has no rights to that project as dictated by /etc/user_attr and has not even been assigned to that project as seen in /etc/project. So how can this happen?

Granted yes, the app makes connections to the db to do work, but these are DB processes in the app's project. And yes, I can use newtask to reassign them back to their correct project, but if this is going to happen a lot, it sounds like something might be wrong, no?

Any ideas what to look at and how this might have happened?

TIA.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FINDING DUPLICATE PROJECT ( directory project )

I have a project tree like that. after running find command with the -no -empty option, i am able to have a list of non empty directory DO_MY_SEARCH="find . -type d -not -empty -print0" MY_EXCLUDE_DIR1=" -e NOT_IN_USE -e RTMAP -e NOT_USEFULL " echo " " > $MY_TEMP_RESULT_1 while... (2 Replies)
Discussion started by: jcdole
2 Replies

2. Solaris

Projects in Solaris 10

I need help with projects in Solaris 10, sparc system; and I am fairly new at this. I know I can add new parameters for projects in /etc/projects or projmod -a -K "task.max-lwps=(priv,100,deny)" myproject I know that there are current process using that old attribute. Logging the user out and... (3 Replies)
Discussion started by: br1an
3 Replies

3. News, Links, Events and Announcements

A new project was posted on The UNIX and Linux Forums project board.

A new project was posted on your project board. Project title: Bash Shell Tutoring Estimated Budget: $50/hr Start date: Immediately Required skills: Linux, Bash, Shell, UNIX I work as a datawarehouse designer and developer. Although I usually stick to the role of an analyst,... (0 Replies)
Discussion started by: Neo
0 Replies

4. Shell Programming and Scripting

Why result is wrong here ? whether break statement is wrong ?

Hi ! all I am just trying to check range in my datafile pls tell me why its resulting wrong admin@IEEE:~/Desktop$ cat test.txt 0 28.4 5 28.4 10 28.4 15 28.5 20 28.5 25 28.6 30 28.6 35 28.7 40 28.7 45 28.7 50 28.8 55 28.8 60 28.8 65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

5. Solaris

what is the use of /etc/project file and project administration commands?

i have two doubts.. 1. what is the use /etc/project file. i renamed this file and when i tried to switch user or login with some user account the login was happening slowly. but when i renamed it to original name it was working fine... why so? 2. unix already has useradd and grouadd for... (4 Replies)
Discussion started by: chidori
4 Replies

6. Shell Programming and Scripting

Killing the Wrong Background Process

BASH on Solaris Hi All, I posted a problem whereby I was looking to Kill a background (calling Send)mail) process after a certain time had elapsed. A User Scottn very kindly provided a useful function to do this as below CheckAndKill() { sleep "$EMAIL_TIMEOUT_THEN_KILL" ... (2 Replies)
Discussion started by: satnamx
2 Replies

7. Shell Programming and Scripting

Interested in getting new projects

Hi , I am interested in getting some new projects on shell scripting . Can some one suggest me some bidding site where I can get the projects. Regards (0 Replies)
Discussion started by: himvat
0 Replies

8. Solaris

SSH doesn't pick up user's project from /etc/project

We have a system running ssh. When a user logs in, they do not get the project they are assigned to (they run under "system"). I verify the project using the command "ps -e -o user,pid,ppid,args,project". If you do a "su - username", the user does get the project they are assigned to (and all... (2 Replies)
Discussion started by: kurgan
2 Replies
Login or Register to Ask a Question
Kstat(3PERL)						      Perl Library Functions						      Kstat(3PERL)

NAME
Kstat - Perl tied hash interface to the kstat facility SYNOPSIS
use Sun::Solaris::Kstat; Sun::Solaris::Kstat->new(); Sun::Solaris::Kstat->update(); Sun::Solaris::Kstat->{module}{instance}{name}{statistic} DESCRIPTION
Kernel statistics are categorized using a 3-part key consisting of the module, the instance, and the statistic name. For example, CPU information can be found under cpu_stat:0:cpu_stat0, as in the above example. The method Sun::Solaris::Kstat->new() creates a new 3-layer tree of Perl hashes with the same structure; that is, the statistic for CPU 0 can be accessed as $ks->{cpu_stat}{0}{cpu_stat0}. The fourth and lowest layer is a tied hash used to hold the individual statistics values for a particular system resource. For performance reasons, the creation of a Sun::Solaris::Kstat object is not accompanied by a following read of all possible statistics. Instead, the 3-layer structure described above is created, but reads of a statistic's values are done only when referenced. For example, accessing $ks->{cpu_stat}{0}{cpu_stat0}{syscall} will read in all the statistics for CPU 0, including user, system, and wait times, and the other CPU statistics, as well as the number of system call entries. Once you have accessed a lowest level statistics value, calling $ks->update() will automatically update all the individual values of any statistics you have accessed. There are two values of the lowest-level hash that can be read without causing the full set of statistics to be read from the kernel. These are "class", which is the kstat class of the statistics, and "crtime"n, which is the time that the kstat was created. See kstat(3KSTAT) for full details of these fields. Methods new() Create a new kstat statistics hierarchy and return a reference to the top-level hash. Use it like any normal hash to access the statistics. update() Update all the statistics that have been accessed so far. In scalar context, update() returns 1 if the kstat structure has changed, and 0 otherwise. In list context, update() returns references to two arrays: the first holds the keys of any kstats that have been added, and the second holds the keys of any kstats that have been deleted. Each key will be returned in the form "module:instance:name". EXAMPLES
Example 1 Sun::Solaris::Kstat example use Sun::Solaris::Kstat; my $kstat = Sun::Solaris::Kstat->new(); my ($usr1, $sys1, $wio1, $idle1) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; print("usr sys wio idle "); while(1) { sleep 5; if ($kstat->update()) { print("Configuration changed "); } my ($usr2, $sys2, $wio2, $idle2) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; printf(" %.2d %.2d %.2d %.2d ", ($usr2 - $usr1) / 5, ($sys2 - $sys1) / 5, ($wio2 - $wio1) / 5, ($idle2 - $idle1) / 5); $usr1 = $usr2; $sys1 = $sys2; $wio1 = $wio2; $idle1 = $idle2; } SEE ALSO
perl(1), kstat(1M), kstat(3KSTAT), kstat_chain_update(3KSTAT), kstat_close(3KSTAT), kstat_open(3KSTAT), kstat_read(3KSTAT) NOTES
As the statistics are stored in a tied hash, taking additional references of members of the hash, such as my $ref = ks->{cpu_stat}{0}{cpu_stat0}{syscall}; print("$$ref "); will be recorded as a hold on that statistic's value, preventing it from being updated by refresh(). Copy the values explicitly if persis- tence is necessary. Several of the statistics provided by the kstat facility are stored as 64-bit integer values. Perl 5 does not yet internally support 64-bit integers, so these values are approximated in this module. There are two classes of 64-bit value to be dealt with: 64-bit intervals and times These are the crtime and snaptime fields of all the statistics hashes, and the wtime, wlentime, wlastupdate, rtime, rlentime and rlastupdate fields of the kstat I/O statistics structures. These are measured by the kstat facility in nanoseconds, meaning that a 32-bit value would represent approximately 4 seconds. The alternative is to store the values as floating-point numbers, which offer approximately 53 bits of precision on present hardware. 64-bit intervals and timers as floating point values expressed in seconds, meaning that time-related kstats are being rounded to approximately microsecond resolution. 64-bit counters It is not useful to store these values as 32-bit values. As noted above, floating-point values offer 53 bits of precision. Accordingly, all 64-bit counters are stored as floating-point values. SunOS 5.11 21 Jul 2005 Kstat(3PERL)