You can change it like this:
I also added another loop, for the opposite case: one host has multiple IP addresses.
For safety, variables should be quoted in command arguments.
But the for loop needs an unquoted variable, therefore the set -f at the beginning of the script.
A bit more safe and more elegant are while loops:
This User Gave Thanks to MadeInGermany For This Post:
I might know the answer to this, but I just want to see if any of you know any work arounds before I go and re-write the whole thing.
I have a script as follow:
$ cat testing
#! /usr/bin/ksh
f ()
{
echo "Type \"y\" \c"
read value
if ;
then
... (1 Reply)
Writing a simple test script that looks for ssh, kills if its running and verifies if its still running. If it isn't, move on. My issue, its cause I don't know how, is to verify if ssh is running still. Also, is there a way have this do this on a remote server? I already have the ssh keys... (7 Replies)
I have tried thought of using instfix -ivqc | grep BIND , but this did not return the result I was looking for; it seem to list out the the different patches that had been applied to BIND. I'm actually looking for overall version, like you'd get when checking the OS level for instance. (1 Reply)
I re-post my question to seek your help and critique. I was required to verify a very large and tab-delimited file, named 'MyFile'.
1. The each line in 'MyFile' has 7 columns, and that the values in the 5th column are integers. I need to use shell functions (and standard LINUX/UNIX filters) to... (1 Reply)
Hello Experts,
I have a script that that transfers a file (via sftp) and it works fine but we ran into a snag where the target server asked for the ssh key and the script didn't know what to do. I want to add some logic to this script that at least sends an email that it didn't complete as... (4 Replies)
Hi Experts,
I have lot of Solaris servers and in most of them, root disk is mirrored in rootdg. I just want to check all servers, if there is any server whose root disk is not mirrored. Either it may be with detached plexes or not mirrored at all. I can run a for loop for all servers. Can... (4 Replies)
I have 2 files , i need compare both files field by field, and in the fourth field some value will be interchaged and some value will be **.
ex: file1 john|0.0|4|**:25;JP:50;UY:25
file2 john|0.0|4|JP:50;**:25;UY:25 (4 Replies)
i have a script that connects to the oracle database and executes the query statements. it works fine and i would like to add some message to check if the connection to oracle is not successful.
basically this is the code snippet:
#!/bin/sh
...
...
...
sqlplus -s username/password@dbName... (2 Replies)
Hi
I write below script to show if expected file exist in /etc/library/ , print success else failed. But it will print full path I just need to print module name in output. And if it possible show time that spent to compile each module.
FYI 1: First run another script just go to the paths... (1 Reply)
Discussion started by: indeed_1
1 Replies
LEARN ABOUT CENTOS
ipa-dns-install
ipa-dns-install(1) IPA Manual Pages ipa-dns-install(1)NAME
ipa-dns-install - Add DNS as a service to an IPA server
SYNOPSIS
ipa-dns-install [OPTION]...
DESCRIPTION
Adds DNS as an IPA-managed service. This requires that the IPA server is already installed and configured.
OPTIONS -p DM_PASSWORD, --ds-password=DM_PASSWORD
The password to be used by the Directory Server for the Directory Manager user
-d, --debug
Enable debug logging when more verbose output is needed
--ip-address=IP_ADDRESS
The IP address of the IPA server. If not provided then this is determined based on the hostname of the server.
--forwarder=FORWARDER
A forwarder is a DNS server where queries for a specific non-resolvable address can be directed. To define multiple forwarders use
multiple instances of --forwarder
--no-forwarders
Do not add any DNS forwarders, send non-resolvable addresses to the DNS root servers.
--reverse-zone=REVERSE_ZONE
The reverse DNS zone to use
--no-reverse
Do not create new reverse DNS zone. If used on a replica and a reverse DNS zone already exists for the subnet, it will be used.
--zonemgr
The e-mail address of the DNS zone manager. Defaults to hostmaster@DOMAIN
-U, --unattended
An unattended installation that will never prompt for user input
EXIT STATUS
0 if the installation was successful
1 if an error occurred
IPA Jun 28, 2012 ipa-dns-install(1)