06-27-2013
Script to validate between two environments
Hi,
I trust that you are well - I'm a bit new into AIX and I've been assigned a task to write a script that will always validate between our two Prod (Prod A and Prod B) environments to confirm which prod we live at. The two environments are exact replicas and this check I need to put in will be in place before we clone the secondary environment from the primary one which is a weekly exercise of keeping the two environments in sync. Could you please advise on which options can I look at and what the best approach to this might be.
Thank you in this regard.
Thanks
Twaggz
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need a script to validate and add more than one user at one time
Field 1 - FirstName LastName Field 2 - userid Field 3 - email address Field 4 - department
Validation for Field 1
No... (3 Replies)
Discussion started by: karthikn7974
3 Replies
2. Shell Programming and Scripting
Hello,
Is there some way to validate a bash script before running it. I want to make sure all of the syntax and everything is good so that I dont get a false return code.
Thanks,
tom (7 Replies)
Discussion started by: tjones1105
7 Replies
3. Shell Programming and Scripting
I was going write a script from following site.
Unix Shell Script to Execute Oracle SQL Query (link removed)
My configuration setting for oracle XE.
export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=XE
but after... (4 Replies)
Discussion started by: pinga123
4 Replies
4. Shell Programming and Scripting
Hi all,
This is my Script
#!/bin/bash
current_date=`date +%d-%m-%Y_%H.%M.%S`
Date=`date +%d%m%Y`
Lfriday=`date +%d%m%Y -d last-friday`
RootPath=/var/domaincount/com
mysql zonefile<<EOFMYSQL
CREATE TABLE com$Date(domain VARCHAR(255),col2 VARCHAR(255),col3 VARCHAR(255),col4... (10 Replies)
Discussion started by: anishkumarv
10 Replies
5. Shell Programming and Scripting
Hi Guys,
Im a newbie to scripting and have a small assignment. can someone please confirm if the script i have written would work fine as we dont have a test server to test :(
Scenario - copy 2 files from an ftp server (windows) to a linux machine (a perticular folder). run 2 different... (0 Replies)
Discussion started by: nishantvshah
0 Replies
6. Shell Programming and Scripting
Hi,
I need a script that validates a file header/detail/trailer. File layout is:
Header - Rec_Type|File_name|File_Date
Detail - Rec_Type|field1|field2|field3...
Trailder - Rec_Type|File_name|File_Date|Record_count
Sample Data:
HDR|customer_data.dat|20120709... (7 Replies)
Discussion started by: ash_sh
7 Replies
7. Shell Programming and Scripting
Hi All,
I am very new to unix and just started to work with unix and shell scripting.I have a query anyone help would be much appreciated
I am using sun solaris OS
I want to validate a file according to its date and if validate successful then it would write the file name,size,date and... (3 Replies)
Discussion started by: sv0081493
3 Replies
8. Shell Programming and Scripting
Hi All,
Looking forward a script with below requirement.Please let me know if any pointers.
- there is a file which contains date
- script will go inside the file and validate date is T-1 and for Friday T-3
- Send email with status
-Shell is Ksh (2 Replies)
Discussion started by: dattatraya
2 Replies
9. Shell Programming and Scripting
Hi Experts,
Please advise to Write a Shell script,
To check , whether the user has access to UNIX PRODUCTION server or not?
If no, then need to provide the access to UNIX PRODUCTION server and then need to provide access to print only few FILES.
After connecting to ther server, again... (5 Replies)
Discussion started by: vasuvv
5 Replies
10. Shell Programming and Scripting
Hi All;
I am struggling to write a script that validates file header.
Header file would be like below with TAB separated
TRX # TYPE REF # Source Piece Code Destination Piece Code
every time I need to check the txt file if the header was same as above fields if validation success... (6 Replies)
Discussion started by: heye18
6 Replies
LEARN ABOUT OPENSOLARIS
lutab
lutab(4) lutab(4)
NAME
lutab - list of boot environments
SYNOPSIS
/etc/lutab
DESCRIPTION
The file /etc/lutab is a list of the boot environments (BEs) configured on a system. There are two entries for each BE. These entries have
the following form:
BE_id:BE_name:completion_flag:0
BE_id:root_slice:root_device:1
The fields in the lutab entries are described as follows:
BE_id A unique, internally generated id for a BE.
BE_name The user-assigned name of a BE.
completion_flag Indicates whether the BE is complete (C) or incomplete (NC). A complete BE is one that is not involved in any copy or
upgrade operation. A BE can be activated or compared only when it is complete.
0 Indicates first of two lines.
BE_id As described above.
root_slice Designation of the root slice.
root_device Device on which the root slice is mounted.
1 Indicates second of two lines.
The lutab file must not be edited by hand. Any user modification to this file will result in the incorrect operation of live upgrade.
SEE ALSO
lu(1M), luactivate(1M), lucreate(1M), lucurr(1M), lufslist(1M), lustatus(1M), luupgrade(1M), attributes(5), live_upgrade(5)
WARNINGS
The lutab file is not a public interface. The format and contents of lutab are subject to change. Use lufslist(1M) and lustatus(1M) to
obtain information about BEs.
SunOS 5.10 8 Jun 2001 lutab(4)