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
318 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
[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
  • 2
4 Comments
 
LVL 21

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

Industry Leaders: 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!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

749 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