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
325 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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 …
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…

695 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