Solved

Read logs on Solaris

Posted on 2000-02-25
6
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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.:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

730 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