Solved

Is there a freeware application that can print out the details of Solaris file structure, and other file info (size, date modified) ?

Posted on 2004-09-14
4
298 Views
Last Modified: 2013-12-27
I need an application that I can use to compare the files contained on 8 different Solaris 9 servers.  It would be nice if the application could print out differences between the file structures, or at least give detailed file information about directories and files on each system.   We are trying to take an inventory of the Solaris servers, to see where duplicate files reside, and if there are certain machines that contain files they may have an older version of an application running on it.  Any ideas?





0
Comment
Question by:juli_ann
  • 2
4 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 500 total points
ID: 12058595
> differences between the file structures
As in the structures of database files, tables etc? I suspect you would need a utility from the database supplier to extract that info..

If you ran `ls -lR /directoryname > filelist.`hostname`  you could then use `diff` to compare the two directory listings.

You could use rysync ( http://www.sunfreeware.com or http://rsync.samba.org/ ) with the -n option, to see what changes _would_ be made to a directory tree to bring them in sync. Obviously this would mainly be useful for application code.
0
 

Author Comment

by:juli_ann
ID: 12058659
Luckily, I don't have to worry about our Sybase file structure, or other database files :o)  I mostly have to deal with source code files (.sh , .pl , .sqr ).  Thank you for the quick response! I'm going to try doing the diff on the directories- that is a great idea!  I'll let you know how it goes :)
0
 
LVL 48

Expert Comment

by:Tintin
ID: 12059656
I would second the rsync suggestion as that will give you an efficient, fine grained control over what attributes you want to check for differences, eg: file sizes, checksums, permissions, ownerships etc.
0
 

Author Comment

by:juli_ann
ID: 12060984
It worked perfectly, it's exactly what I needed -thank you soooo much!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

758 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

23 Experts available now in Live!

Get 1:1 Help Now