Sponsored Content
Top Forums UNIX for Dummies Questions & Answers ksh to check second time difference between two servers Post 302814457 by MichaelFelt on Wednesday 29th of May 2013 01:02:56 PM
Old 05-29-2013
Since you are setting up ssh for automatic command execution I would recommend using dsh (distributed shell) to execute the commands in parallel - whatever that command may be. Then the output will be in one file and it should be easy to compare output.

On AIX 6.1 the fileset name is csm.dsh
On AIX 7.1 the fileset name is dsm.dsh (because csm is discontinued)

Hope this helps!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ksh to run servers

I want to write a Kshell program which will start the servers(Oracle,DataIntegrator). Can anybody help me with this? I would appreciate your help. Thanks in advance (0 Replies)
Discussion started by: pari111222
0 Replies

2. Shell Programming and Scripting

ksh: difference between $* and $@

Please ignore. I found the answer at: https://www.unix.com/shell-programming-scripting/24557-difference-between.html (1 Reply)
Discussion started by: JamesByars
1 Replies

3. UNIX for Dummies Questions & Answers

3 servers 1 .ksh script

system = AIX How can I explain this..... Keep in mind I do not want to login to the boxes, persay, and that I am fairly new to scripting and unix. I want to use SSH. I have a script on server1, this is where I want it to run from. I have server2 and server3, where I want the script to... (2 Replies)
Discussion started by: cml2008
2 Replies

4. Shell Programming and Scripting

Difference between development and Production unix servers for a application??

Hi all I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Discussion started by: sakthifire
9 Replies

5. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies

6. Shell Programming and Scripting

ksh connection to other servers

Hello, I am looking for a way for a server to launch a connection command to one of the other servers where the connection command has already embedded in it a server name, user name and a password. (2 Replies)
Discussion started by: LiorAmitai
2 Replies

7. UNIX for Dummies Questions & Answers

Difference Between executing llike ./myscript.ksh and . ./myscript.ksh

Hi , What is the diffence between executing the script like ./myscript.ksh . ./myscript.ksh I have found 2 difference but could not find the reason 1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
Discussion started by: max_hammer
5 Replies

8. Shell Programming and Scripting

Same KSH behaving differently on diff servers

HI all I have written a ksh to execute PL/sql procedure and generate the log file. The script is working fine to the extent of calling the taking input, executing PL/SQL procedure. On one server the log file is getting generated properly. i,e it shows the DBMS output . The log file size was... (9 Replies)
Discussion started by: ramakrishnakini
9 Replies

9. Shell Programming and Scripting

Time difference between two time stamps

Hi Friends, I have 2 varaibles which contain START=`date '+ %m/%d/%y %H:%M:%S'` END=`date '+ %m/%d/%y %H:%M:%S'` i want the time difference between the two variables in Seconds. Plz help. (2 Replies)
Discussion started by: i150371485
2 Replies

10. Shell Programming and Scripting

Check/Parse log file's lines using time difference/timestamp

I was looking at this script which outputs the two lines which differs less than one sec. #!/usr/bin/perl -w use strict; use warnings; use Time::Local; use constant SEC_MILIC => 1000; my $file='infile'; ## Open for reading argument file. open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
1 Replies
tag2name(8)						      System Manager's Manual						       tag2name(8)

NAME
tag2name - Display the path name of an AdvFS file SYNOPSIS
/sbin/advfs/tag2name tags_directory/file_tag /sbin/advfs/tag2name [-r] domain fileset_id file_tag OPTIONS
Specify the [-r] option to operate on the raw device (character device special file) of the fileset instead of the block device. OPERANDS
Specifies the name of an AdvFS domain. Specifies the name of an AdvFS fileset using the following format: Specify the -S tag to force the command to interpret the name you supply as a fileset name. Specify the fileset by entering either the name of the fileset, fileset, or the file's fileset tag number, -T fileset_tag. Specifies the relative path of the AdvFS tags directory for a fileset. If you do not spec- ify this directory, the default is mount_point/.tags. Specifies an AdvFS file tag number. DESCRIPTION
Internally, AdvFS identifies files by tag numbers (similar to inodes in UFS). Internal messages, error messages, and output from diagnostic utilities usually specify a tag number in place of a file name. Use the tag2name command to determine the name and path of an AdvFS file that is identified by a tag number. If you enter an invalid tag number, the command returns the range of the valid tags for the fileset. Mounted Filesets Each mounted AdvFS fileset has a directory in its mount point. To obtain a file name, specify the path to the directory for the fileset, followed by the tag number. The full path name of the corresponding file is displayed to stdout. This syntax uses AdvFS system calls. Unmounted Filesets When you use the second form, the utility does not use AdvFS code and does not depend on the filset being mounted. The path name of the file is relative to the fileset and is displayed on stdout. One use of the second form is to obtain names of files from a fileset that is unmounted and might produce a domain panic or a system panic if it were mounted. NOTES
An active domain, which is a domain with one or more of its filesets mounted, has all of its volumes opened using block device special files. These devices cannot be opened a second time without first being unmounted. However, the character device special files for the volumes can be opened more than once while still mounted. It can be misleading to use the second form of this utility on a domain with mounted filesets. Unlike the first form of the utility, the second form does not synchronize its read requests with AdvFS file domain read and write requests. To avoid this problem, unmount all the active filesets in the domain before using the second form of this utility. For example, the AdvFS can be writing to the disk as the utility is reading from the disk. Therefore, when you run the utility, metadata may not have been flushed in time for the utility to read it and consecutive reads of the same file page may return unpredictable or con- tradictory results. [The domain is not harmed.] RESTRICTIONS
The second form of this utility can fail to open a block device, even when there are no filesets mounted for the domain and the AdvFS dae- mon, advfsd is running. The daemon, as it runs, activates the domain for a brief time. If the tag2name utility fails in this situation, run it again. You must be the root user to use the tag2name utility. The tag you specify must be numeric and greater than 1. EXAMPLES
The following example displays the file name corresponding to tag 5 in the usr fileset. It assumes the current working directory is /usr: # /sbin/advfs/tag2name .tags/5 /usr/quota.group The following example displays the file name of the file whose tag is 145 in domain_1 fileset_1: # /sbin/advfs/tag2name domain_1 fileset_1 145 joe/save/oldfile FILES
Specifies the command path. Specifies the volumes in the domain. SEE ALSO
advfs(4) tag2name(8)
All times are GMT -4. The time now is 08:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy