Compare Directories and folders on two remote lpar


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Compare Directories and folders on two remote lpar
# 1  
Old 07-04-2014
Compare Directories and folders on two remote lpar

Hello,

i'm trying to script to compare the same directory on the lpar.
The problem is i'm using the command :
Code:
 find /etc -type d -ls

but i cannot reach the remote lpar.

I have another solution to put that command in a text file and compare with Excel.

but i could be fine to have the result direct .

So could you help me please.

Thanks

Last edited by vbe; 07-04-2014 at 09:59 AM.. Reason: code tags please
# 2  
Old 07-04-2014
Without being able to connect to the LPAR in some meaningful way, I doubt you will get any useful data from it.

Can you tell us:-
  • Why do you not think you can reach the remote LPAR?
  • What have you tried?
  • What OS and versions are they running?
  • How do the LPARs relate to each other?
Regards,
Robin

Last edited by rbatte1; 07-04-2014 at 12:12 PM.. Reason: Spelling
# 3  
Old 07-04-2014
Compare directories

Hello,

thanks;

I'm on aix Server : AIX lpar14 1 6 00F91FE94C00

How could you check on another lpar. I only know the ssh root@lpar command

Thanks
# 4  
Old 07-04-2014
Can you answer the other questions too. I've not really got anything to work with yet.

Does your ssh root@lpar command connect?


Thanks,
Robin
# 5  
Old 07-07-2014
Hello,

the command ssh root@lpar ask the password and after entering it it connects.

So i think i must put an rsa key to authentication ???

Thanks for your help
# 6  
Old 07-07-2014
Yes.

To automate things, you will need to generate an SSH key pair on the client and share the public key with the server. Putting the shared public key in the right place on the server, you will then be able to issue client commands like:-
Code:
ssh root@lpar my_script

This will run you remote script and disconnect. You need to make all the processing so that it does not need interaction as this complicates things massively.

Do you need some assistance with this process?



Robin
# 7  
Old 07-09-2014
Compare two directories on two lpars

Hello,
thanks for your help.

I put the two pub keys on the two serveurs. So now when i try to connect it ask me first to tape the parhphrase. It's correct.

Please could you help me for that servers.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do you compare two folders and copy the difference to a third folder in a remote server?

How do you compare one local folder and a remote folder and copy the difference to a third folder in a remote folder.e.g. Folder A -- Is in a remote server and it has the following files TEST1.OUT TEST2.OUT TEST3.OUT Folder B --Is in a local server and it has the following files ... (5 Replies)
Discussion started by: cumeh1624
5 Replies

2. Shell Programming and Scripting

Compare two folders and file content

Hi, I am having two folders where i need to compare the content of files and also to know if any new files been added and redirect the difference output in respective filename logs. For e.g.: Directory D1: f1 f2 f3 Directory D2: f1 f2 f3 f4 i Need to compare the directories... (25 Replies)
Discussion started by: rohit_shinez
25 Replies

3. Shell Programming and Scripting

How to compare files in two folders using cmp?

i recently copied 400GB of data from a NTFS drive to a ext4 drive. I want to verify that the data is 100% identical to the original. I wanted to use cmp but it only does two files. The directory that was copied contains many subdirectories and all sorts of files (not just text). So I guess... (5 Replies)
Discussion started by: fuzzylogic25
5 Replies

4. Shell Programming and Scripting

Compare the checksum of files in 2 different folders

Hi I have 2 different folders on different machines. they are supposed to be same but some time for unknown reason they are not. then we have to generate a report for files which are not matching. I was doing as below - cd folder1 find . -type f | sort | cksum >1.txt cd folder2 find .... (7 Replies)
Discussion started by: reldb
7 Replies

5. Shell Programming and Scripting

Compare 2 folders...

Hello, I try to compare 2 folders, i explain, i have file in this 2 folder and i want to print out the difference in this folders... ex: folder1: file1 file2 file3 folder2: file1 file2 print file3 I do a ls of the 2 folders and i use the command diff (diff $var1 $var2) without... (8 Replies)
Discussion started by: protocomm
8 Replies

6. Shell Programming and Scripting

Replace missing standard folders from home directories.

Hi, I want to develop a script to replace missing folders from home directories. These may have been deleted by the user. A standard home directory will have these folders in it and nothing else: Desktop, Documents, Downloads, Library, Movies, Music, Pictures, Public, Sites I also want to... (3 Replies)
Discussion started by: z399y
3 Replies

7. UNIX for Dummies Questions & Answers

To compare selective file in different folders

Hello, I am using dircmp -d <folde1> <Folder2> to compare the files from two different foldes, but this command compares for all the files. Is there any option to select only some files for comparision. For example in Folder1: file1.txt file2.txt file3.txt Folder2 file1.txt file2.txt... (0 Replies)
Discussion started by: gmahesh2k
0 Replies

8. UNIX for Advanced & Expert Users

how to sync remote folders without overwriting

Hi, I need to sync 2 remote folders so i setup with rsync which is working very fine. But, there comes another requirement to maintain multiple versions of files on destination (NOT to overwrite the destination file). If there is difference between source file and destination file, it must... (2 Replies)
Discussion started by: prvnrk
2 Replies

9. Shell Programming and Scripting

sync remote folders

Hi, I need to sync 2 remote folders so i setup with rsync which is working very fine. But, there comes another requirement to maintain multiple versions of files on destination (NOT to overwrite the destination file). If there is difference between source file and destination file, it must... (0 Replies)
Discussion started by: prvnrk
0 Replies

10. Shell Programming and Scripting

Remote compare of folders

Hi, Is there a way (either commands/tools/scripts/logic) to compare two given folders on different unix boxes. I want to compare folder a in Unix box 'A' with folder 'b' in Unix box 'B'. I can run the script in Unix box 'A'. I am looking. for following results: files/sub folders only in a... (1 Reply)
Discussion started by: sunilav
1 Replies
Login or Register to Ask a Question