Sponsored Content
Full Discussion: UNIX user monitoring tools
Top Forums UNIX for Dummies Questions & Answers UNIX user monitoring tools Post 302818813 by MadeInGermany on Sunday 9th of June 2013 11:02:33 AM
Old 06-09-2013
First of all, who and users do less than w, so for only counting the user's logins I propose
Code:
logins=`users | grep -wc "${LOGNAME:-$USER}"`

(2nd attempt with $USER in case $LOGNAME is not set.)
--
For your processes requirement, check if you can use the information from
Code:
LC_ALL=C ps -u "${LOGNAME:-$USER}" -o pid,stime,etime,time

Hint: stime is neither well parse-able nor portable; etime is often better.
 

10 More Discussions You Might Find Interesting

1. IP Networking

Networking Monitoring Tools

Any idea where can I get a freware to monitor the network traffic in my department? The best is this tool can store the log files. Thanks! (5 Replies)
Discussion started by: zheng_soon
5 Replies

2. Infrastructure Monitoring

UNIX Monitoring tools

I need some monitoring tools for SCO 7.1.4 Does anybody reccomend some software that I can install to monitor mem leaks and odd SAR values etc (2 Replies)
Discussion started by: trebor1
2 Replies

3. UNIX for Advanced & Expert Users

UNIX monitoring tools

Guys, I would like to know who are using monitoring tools? I use Nagios before but it seems is more on Linux and Windows platform. - Nagios - BigBrother - BigSister - Cacti - MRTG - JFFNMS - anymore? Please give comment too I would like to have some comment on UNIX monitoring tools.... (2 Replies)
Discussion started by: dwarf007
2 Replies

4. Red Hat

Monitoring tools

Hi, In HPUX there is a grate monitor tools named GLANCE, which give you information on the disks load, memory usage, cpu ... What is the equivalent tool in LINUX Redhat 4. Thanks (3 Replies)
Discussion started by: yoavbe
3 Replies

5. Infrastructure Monitoring

Solaris Performance Monitoring Tools????

Hi, Are there any GUI (preferably web based) Solaris monitoring tools available for the SPARC platform. Just to clarify, when i say GUI, I don't mean buttons to configure the Software, of course that would be a plus, but rather GUI in terms of output, like Graphs. Thanks (6 Replies)
Discussion started by: Mack1982
6 Replies

6. Infrastructure Monitoring

AIX monitoring tools for graphical output

Hi , I am new for Aix i am using IBM AIX server in our org. I am using tomcat and JDK 1.6 for our own ERP software the data base was stored in another server (windows ) i want to monitor my AIX server with graphical output from another system it is possible please help me, any other... (7 Replies)
Discussion started by: krishna_vnr`
7 Replies

7. Infrastructure Monitoring

Monitoring tools

I am interested whitch tools are the best by monitoring the UNIX processes and network interfaces ? and whitch tools for management UNIX ? I know that the nagios very good monitoring tools, but interested me and others who have ? (4 Replies)
Discussion started by: danyy
4 Replies

8. Solaris

How can i monitor solaris server by using any monitoring tools

Hi forum We have nearly 240 servers inclding zones . How can i monitor server and its performance by using any monitoring tools. My indentions is to plot graphs based on server utilization interms of cpu and memory Is there any opensource tools for this. I saw collectd and it has agent... (3 Replies)
Discussion started by: bentech4u
3 Replies

9. Infrastructure Monitoring

Monitoring tools that do NOT require root privileges

Hi guys, I am currently managing an application running on around 150 servers. I only have application usage rights on those servers and do not have any root privileges. I have an external node that can connect to those servers and I have root privileges on that one box. I want to setup... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

10. AIX

Monitoring tools

The monitoring tools what we have not able to see historical information about the process name or pid number for the process that consumed high CPU or memory or paging space. Can you please suggest some of the best monitoring tools available in the market that monitors primarily AIX and other Unix... (0 Replies)
Discussion started by: baladelaware73
0 Replies
ENVIRON(7)						 Miscellaneous Information Manual						ENVIRON(7)

NAME
environ - user environment SYNOPSIS
extern char *const *environ; DESCRIPTION
An array of strings called the `environment' is made available by execve(2) when a process begins. By convention these strings have the form `name=value'. The following names are used by various commands: PATH The sequence of directory prefixes that sh, time, nice(1), etc., apply in searching for a file known by an incomplete path name. The prefixes are separated by `:'. Login shells set PATH=:/bin:/usr/bin. Note that the empty space between the `=' and the `:' indicates the current directory. Security aware people move the extra `:' to the end of their path or omit it. HOME A user's login directory, set by login(1) from the password file passwd(5). TERM The kind of terminal for which output is to be prepared. This information is used by programs that wish to exploit special termi- nal capabilities, a screen oriented text editor for instance. The terminal type is set by login(1) from the tty database ttytab(5). SHELL The file name of the users login shell, set by login(1) from the password file passwd(5). TERMCAP The string describing the terminal in TERM, or the name of the termcap file, see termcap(5), termcap(3). EXINIT A startup list of commands read by elvis(1). USER The login name of the user, set by login(1) from the password file passwd(5). LOGNAME Set to the same value as USER. BSD derived systems have USER, System V has LOGNAME, so modern systems have both to avoid problems. Further names may be placed in the environment by the export command and `name=value' arguments in sh(1). Arguments may also be placed in their environment by programs if they use putenv(3). Or in the environment of another program by building a new environment for one of the exec functions that accepts an environment list, like execle(2) or execve(2). It is unwise to conflict with certain sh(1) variables that are frequently set and/or exported by `.profile' files: MAIL, PS1, PS2, IFS. SEE ALSO
elvis(1), login(1), sh(1), execl(2), execve(2), system(3), termcap(3), termcap(5), ttytab(5). 4.2 Berkeley Distribution May 20, 1985 ENVIRON(7)
All times are GMT -4. The time now is 05:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy