Sponsored Content
Top Forums Shell Programming and Scripting Ssh to validate multiple remote hosts connection validation. Post 303013267 by vbe on Monday 19th of February 2018 03:48:56 AM
Old 02-19-2018
What is not working?
We need the output to understand...
also Looking at don's code I cant believe it failed reading a line, to convince yourself, add a counter in the loop as you know what is expected based on the config file given in input
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remote Connection (SSH)

Hello all, I connect usually to one enviornment "dev" daily and then ftp some files to some other enviorment "uat" and then login to "uat" and run some scripts to process these files. I was thinking to automate the process, where running one script from "dev" will complete all task required... (11 Replies)
Discussion started by: RishiPahuja
11 Replies

2. Shell Programming and Scripting

Remote SSH Connection Using Script

Hi, I am new to Shell Scripting. Can anybody help me in writing a Script Which Could Login from a Unix box to a Remote Unix box which accepts the user credentials automatically and display the result for checking the Disk Space Utilisation (Without running any SSH agent). (1 Reply)
Discussion started by: ajith_tg
1 Replies

3. Shell Programming and Scripting

Logon to multiple hosts using ssh hardcode password

Hi im trying to write a script to logon to list of servers with same userID. I have no option/plan to implement ssh-keygen sharing between the systems, so i have written script creating 2 files, file1 holds list of hosts host1 host2 host3 file2 has following script for i in `cat file1`... (1 Reply)
Discussion started by: dreamaix
1 Replies

4. Shell Programming and Scripting

Running a script on multiple remote hosts at once

I have a script on about 15 hosts that I need to run for each host whenever I want (not crontab). Problem is, this script takes 5-10 mins to run for each host. Is there a way I can run the script in parallel for all the hosts instead of 1 at a time? Also, I'm remotely running the script on the... (3 Replies)
Discussion started by: mrskittles99
3 Replies

5. Shell Programming and Scripting

SSH to remote hosts in shell scripting

Hi There, I have a file contaning some 100 servers names one by one the file called redhat_servers.txt I want to prepare a script where it should give me the host name and kernal version. I wrote like this, #!/bin/bash while read line do ssh $line "uname -nr" done <... (3 Replies)
Discussion started by: kumar85shiv
3 Replies

6. UNIX for Dummies Questions & Answers

How to search using ssh on multiple hosts?

Hi guys - I am having a hard time trying to figure how to search for a certain string on config files hosted on multiple hosts. This is an example: Hostnames: myhost1.mycompany.com|myhost2.mycompany.com|myhost3.mycompany.com String to search for: myipaddress.somehost.com Directory... (9 Replies)
Discussion started by: DallasT
9 Replies

7. Shell Programming and Scripting

Ssh to multiple hosts and then run multiple for loops under remote session

Hello, I am trying to login to multiple servers and i have to run multiple loops to gather some details..Could you please help me out. I am specifically facing issues while running for loops. I have to run multiple for loops in else condition. but the below code is giving errors in for... (2 Replies)
Discussion started by: mohit_vardhani
2 Replies

8. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

9. Shell Programming and Scripting

Grep remote multiple hosts output to local server

Hello all, i'm trying to create a report by greping a pattern on multiple remote hosts and creta a simple report, actually i did this, is ther any better way to do this. #!/bin/bash for host in `cat RemoteHosts` do ssh $host -C 'hostname 2>&1; grep ERROR /var/log/WebServer.log.2019-09-21... (0 Replies)
Discussion started by: charli1
0 Replies

10. Shell Programming and Scripting

awk remote multiple hosts print remote hostname and output

Hi all, i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern, ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r ' The output is the following, remoteserver1 ... (8 Replies)
Discussion started by: charli1
8 Replies
zonec(8)							    nsd 3.2.12								  zonec(8)

NAME
zonec - NSD zone compiler version 3.2.12. SYNOPSIS
zonec [-v] [-h] [-C] [-L] [-F] [-c configfile] [-d directory] [-o origin] [-z zonefile] [-f database] DESCRIPTION
Zonec is the nsd(8) database compiler for creating name space databases from a set of input master zone files specified in nsd.conf(5) file. It is normally invoked via nsdc(8) rebuild command. Zonec will then parse every zone in nsd.conf(5) file and add it to the name space database, /var/lib/nsd3/nsd.db by default, that is used by nsd(8) to answer incoming queries. OPTIONS
-c configfile Read specified configfile instead of the default /etc/nsd3/nsd.conf. -C No config file is read (use with -f, -o and -z). -d directory Change the working directory to directory before doing any work. Overrides zonesdir: option in config file. -f database Create the specified database instead of the file specified as database: in the config file. -o origin Use this as the first origin. Zone information is read from zonefile specified with -z. When reading zones from config file this option is ignored. -z zonefile Reads all zone information from zonefile. If zonefile equals `-`, then all zone information is read from stdin, making constructs like: # cat zones* | ./zonec -C -f nsd.db -o example.net -z - possible. When reading zones from config file this option is ignored. -v Increase the verbosity of zonec. This flag can be specified multiple times to increase the level of verbosity. The first level of verbosity will print per zone summary information. The second level of will print progress information for each 10,000 RRs pro- cessed. -F Set debug facilities. (If compiled with --enable-checking.) -L Set debug level. (If compiled with --enable-checking.) FILES
/var/lib/nsd3/nsd.db default NSD database /etc/nsd3/nsd.conf default NSD configuration file DIAGNOSTICS
Zonec will log all the problems via the standard error output and progress via stdout if the v option is specified. SEE ALSO
nsd(8), nsdc(8), nsd.conf(5), nsd-checkconf(8), nsd-notify(8), nsd-patch(8), nsd-xfer(8) AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details. BUGS
Zonec has rather weak error diagnostics that will change in further versions. Zonec expects the input files to be free of syntax errors and very little fool proof checks are done. NLnet Labs jul 19, 2012 zonec(8)
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy