assistance needed to add 2 other routines to my script
Hello guys,
In my script, I need to add two other routines where I Manipulate the files with a 'x'
The routine looks at CLI named qip-getobjectprof that references a input file named hosts_list.txt
Then I use the CLI named qip-setobject to set the orignal name with an 'x'and move the orginal name to another IP.
All good.
Unfortunately, I also need the input file to also look in another section of the same record using another CLI named exportdnsrr
to do the same. Put an 'X' on the orginal records that are there then use another CLI enterdnsrr to move it based on the original input file.
Then of course where the option is selected Rollback to Orig. objects to do it all in reverse.
Can someone use the script I have provided and make the additions to make this all happen?
An example of the routine I want to add in the shell script:
[root@ESM1 bin]# ./exportdnsrr -f ( for filename, using the hosts_list.txt )
192.168.0.6,richie,IN,A,-1,200.200.200.1,F,,0,0,,
Then take the hostname richie and put an 'x' so it will look like richieX
then use enterdnsrr on the rollback routine to put it back
./enterdnsrr -f ( another variable since A & B are used already) to put all the changes back
Thanks
---------- Post updated at 06:24 PM ---------- Previous update was at 11:07 AM ----------
Hi,
Is this a tough one? do you need more information?
Last edited by richsark; 11-19-2010 at 12:24 PM..
Reason: claification
We have year folder say in a path /opt/informat/Archive a folder 2012.
And in the same folder /opt/informat/Archive we have different folders month based, like 201210, 201211, 201212, this have data for each month, ie files. Now time to time i need to move the monthly folders to the main folder... (1 Reply)
First and foremost - me != unix bubba.
Here is the situation. We have a box with data AND settings in the same directory path. (Data files aren't in the SAME directories as settings.) I need a script that generates a tarred-up archive of only the INI files with the directory structure. We... (2 Replies)
Hello All
I have always had a question about find and replace in Vi. As this uses Vi, sed, and RegEx I never knew how or where to post the question but I thought I would give it a shot here. Say I have a text file filled with the following:
Sue, your IP address is 192.168.1.10 which is... (4 Replies)
Hi all,
My aim is to get the log details of datastage job using unix scipt.
we know that DSjob are used to get the log details from datastage universe through the adminstrator.can we call that DSjob rountine in our unix script.
Thanks in advance
Regards,
NimmyRaju:) (0 Replies)
the command "nawk" returns the error command cannot be found in my unix system.
Is there a specific library i need to have to use this command?
I tried, the whereis command and it returns nothing.
if there is nothing to do, what command can i use to replace this nawk command?
Appreciate some... (4 Replies)
Hello all -
I've searched this forum, but was unable to find out the info I need.
I'm trying to mount (nfs mount) a directory on another box from my Linux machine.
The mount point resides on a Tru64 digital unix machine. The machine trying to do the mount is a Linux machine (redhat 8.0).
... (2 Replies)