We help IT Professionals succeed at work.
Get Started

AIX 5.3.12 Script Last Login Across Network

Bryant
Bryant asked
on
593 Views
Last Modified: 2013-05-23
Hello everyone,

I need a script that will give me the last user information (username, date and time only) for over 200 servers across the network. What I am trying to do is track user activity on the server. I would like to be able to have this information dumped into a file which I can export into a spreadsheet. I want to run this script from any box that I log into. I will be able to run it with root access. I also need to be able to exclude certain users as a few users like myself log into boxes just to see when the last time owners have used it. Output should be

servername username date time

I am new to scripting so I dont have a clue where to start.

Can someone please help.  AIX 5.3.12  - Shell Script
Comment
Watch Question
IT Engineering Manager
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 16 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE