Solved

Read logs on Solaris

Posted on 2000-02-25
6
186 Views
Last Modified: 2013-12-05
I need a perl script that can touch about 300 Solaris boxes, and read the logs and pull out the uptime for the box. I need to save these uptimes to a text file, with system name.

If I get it by Tuesday 2-29 the points double.
0
Comment
Question by:lamar1
  • 4
  • 2
6 Comments
 
LVL 3

Expert Comment

by:jyu_88
ID: 2560420
'ruptime' will give you uptime for all local servers, i.e., you don't reall y need perl to get just uptime.

what kind of permission/authentication scheme you have to allow you to access those 300 machines? If all permission granted, it is trivial to gather the info and present in a nice format.
0
 

Author Comment

by:lamar1
ID: 2560622
I have root on all the machines.
Is ruptime included as part of Solaris,
I'm and NT person, and don't know a lot about Solaris..I'll check it out on Monday.
0
 
LVL 3

Accepted Solution

by:
jyu_88 earned 200 total points
ID: 2561260
ruptime is from SUNWcsu (core Solaris (usr)) package.

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:lamar1
ID: 2561263
Thanks for the info, I'll run the command on Monday and see if it gives back the information I need. I had done some research on it this morning, and checked on one of my systems and found it.
0
 

Author Comment

by:lamar1
ID: 2561266
Adjusted points to 200
0
 

Author Comment

by:lamar1
ID: 2561268
Thanks for your help...Lamar
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now