Usage Report


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Usage Report
# 1  
Error

Hey Guys I need help quick!

Our regular SYSOP is ill and I've been assigned
the job of creating a usage report.

I've got to figure out who has logged on in the
last month and how long they were logged on.

# 2  
Use the 'last' command.
# 3  
Not much help

The 'last' command doesn't help much since I need
to have a summary of each user's total time online
and number of logins for an entire month.

The previous report looked like this:

time #logins
ab 3:17:29 23
...
val 73:58:12 82

I'm pretty sure it wasn't created by a script.

# 4  
Quote:
The 'last' command doesn't help much since I need to have a summary of each user's total time online and number of logins for an entire month.
Really? On my systems, last provides the username, when they logged in, from where, on what tty, when they logged off, and total time spent logged in (so you dont have to calculate yourself).

Seems like this fits your needs. You would have to either write a script, or add the totals by hand to get the output you want.
# 5  
PxT is correct. Here are some examples:

root pts/0 ibs.silkroad.com Thu Mar 22 20:30 still logged in
root pts/0 ibs.silkroad.com Wed Mar 21 22:11 - 00:31 (02:19)
root pts/0 ibs.silkroad.com Wed Mar 21 17:21 - 18:38 (01:16)
root pts/0 ibs.silkroad.com Wed Mar 21 09:05 - 14:08 (05:02)
root pts/1 ibs.silkroad.com Tue Mar 20 22:23 - 01:22 (02:58)

I think last works quite nicely and more details can come from either a wrapper script or the command line switches for last (man on last for details)
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #1006
Difficulty: Medium
In calculus and most other branches of mathematics beyond practical geometry, angles are universally measured in degrees.
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

UNIX cluster disk usage report generation for yesterday & today and email

HI Team, I am trying to create a shell script to generate a yesterday and today report to compare and email in daily basis. can you please help me on the same. #!/bin/bash #Author: ******************* #Description: This script will return the following set of system information: ... (2 Replies)
Discussion started by: Mi4304
2 Replies

2. UNIX for Advanced & Expert Users

HPUX 11iV3 get Memory Usage report

Hello, Is there a way to get a Memory Usage report of for example one month?? I do know glance -m, top, swapinfo -tam and SAM. But that's all real time memory stuff. I do want to create a report/graph for a longer period. It concerns a Superdome 2 with HPUX 11iV3 Anyone? Many thanks in... (2 Replies)
Discussion started by: velde_van_der_a
2 Replies

3. Shell Programming and Scripting

Tcl - how to report out metal layer usage in a design and measure its width and length?

Hi guys, I am very new to tcl here. would like to request some help please let say i have a design .it's a IC design . I would like to know each usage of metal layer of that design and also measure its length and width? how to code in such way? thanks for any guidance/help (3 Replies)
Discussion started by: teddy6507
3 Replies

4. Linux

How to calculate total CPU usage from SAR report?

Hi, I want to calculate the total cpu usage from the sar report. Say for example, Linux 2.6.24-21-generic (blade10) 09/10/2012 04:54:36 PM CPU %user %nice %system %iowait %steal %idle 04:54:37 PM all 0.00 0.00 0.00 0.00 ... (1 Reply)
Discussion started by: rohitmd
1 Replies

5. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

6. Shell Programming and Scripting

basic computer usage report

Our small company, about 5 users, need a basic script that scans mapped network drives (example: drive b,c,d, e, and f) for hard drive usage. This needs to send a report to myself in any type of basic notepad format (easy to read and decipher) for drives that have reached 80% usage... any ideas? ... (1 Reply)
Discussion started by: jessessays
1 Replies

7. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

8. UNIX for Dummies Questions & Answers

Uncertainty on disk usage report

Hi all, My system is running on RHEL4. I've just deleted 2 huge tablespaces from Oracle. Then I saw the disk usage. The report by df differs from the du. Do you know why they shows different results? Which one is correct? # df -h Filesystem Size Used Avail Use% Mounted... (1 Reply)
Discussion started by: mr_bold
1 Replies

9. AIX

AIX 4.3 storage usage report

hi, i'm new to this company and i'm using old AIX 4.3 with DAS and SSA storage. What is the best way to query a report for disk capacity, usage, free, etc. I know in AIX 5 there's a command for "du -g /" or "du -m /" to report the total usage but I'm not using AIX5. In AIX 4.3 I can use "df... (5 Replies)
Discussion started by: venerayan
5 Replies

Featured Tech Videos