good day. i jsut wanted to know what is the best script or the best way changing a lot of Ip's in all servers. Do you have any idea? im using awk to change IP,what if, you have lots of servers. You need to change it one by one? It will take time to change it manually. (2 Replies)
Hi All,
Okay, I need help.
I need to ssh in to multiple linux servers execute certain commands and get them to email and print on the screen when the script is being executed.
So below is my script. Its not working :-(.
#!/bin/bash
#linux/UNIX box with ssh key based login... (7 Replies)
Requirement:
Run a shell script with below inputs
file name
checksum
path
the script should go to multiple servers (around 35) and verify the input cksum and if there is a mismatch display a simple message to the user that cksum verification failed.
host details, user id /... (1 Reply)
Hello,
I have access to several linux servers (mostly centos based) located in a DC in another country.
from day to day I need to login to each of them to do some work (they dont have gui/window manager installed, I work only from console), or even to just do a check like df -h for disc usage.... (3 Replies)
Hi all.
Im working in a telco Environment and recently setup a new server. The other servers are a combination of Solaris + Linux machines.
Using my new server , I can ping all other servers ( solaris + redhat linux )
but the issue lies where I try to ssh.
I can only successfully ssh linux... (3 Replies)
Hi Experts,
I am new to scripting. We have around 400 Linux servers in our environment. I want to add a new user to a perticular group on all the servers using SSH.
Requirements:
1) Need to take the server names from a text file.
2) Login into each server and check whether perticular... (1 Reply)
Hi
I have an ssh 'for' loop script to login and put a key on multiple servers. I need to append a file on each server but the command which works ok from the prompt does not work via the script. I have
cat filename | ssh user@servername "cat >>append.file.name"
I have tried to 'spawn' this in... (0 Replies)
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)
Hi,
I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step:
#!/bin/bash
# LAN SSH KEYS DISCOVERY SCRIPT
</etc/passwd \
grep /bin/bash |
cut -d: -f6 |
sudo xargs -i -- sh -c '
&& cat... (11 Replies)
Hi ,
Can any please help the below requirement on all multiple servers and multiple dbs.
update configuration set value='yes' ;1)
the above statement apply on 31 Databases at a time on different Ip address
eg : 10.104.1.12 (unix ip address )
the above ip box contains 4 db's eg : db... (2 Replies)
Discussion started by: venkat918
2 Replies
LEARN ABOUT SUSE
net::server::fork
Net::Server::Fork(3) User Contributed Perl Documentation Net::Server::Fork(3)NAME
Net::Server::Fork - Net::Server personality
SYNOPSIS
use Net::Server::Fork;
@ISA = qw(Net::Server::Fork);
sub process_request {
#...code...
}
__PACKAGE__->run();
DESCRIPTION
Please read the pod on Net::Server first. This module is a personality, or extension, or sub class, of the Net::Server module.
This personality binds to one or more ports and then waits for a client connection. When a connection is received, the server forks a
child. The child handles the request and then closes.
With the exception of parent/child signaling, this module will work (with basic functionality) on Win32 systems.
ARGUMENTS
check_for_dead
Number of seconds to wait before looking for dead children. This only takes place if the maximum number of child processes
(max_servers) has been reached. Default is 60 seconds.
max_servers
The maximum number of children to fork. The server will not accept connections until there are free children. Default is 256 children.
max_dequeue
The maximum number of dequeue processes to start. If a value of zero or undef is given, no dequeue processes will be started. The
number of running dequeue processes will be checked by the check_for_dead variable.
check_for_dequeue
Seconds to wait before forking off a dequeue process. It is intended to use the dequeue process to take care of items such as mail
queues. If a value of undef is given, no dequeue processes will be started.
CONFIGURATION FILE
See Net::Server.
PROCESS FLOW
Process flow follows Net::Server until the post_accept phase. At this point a child is forked. The parent is immediately able to wait for
another request. The child handles the request and then exits.
HOOKS
The Fork server has the following hooks in addition to the hooks provided by the Net::Server base class. See Net::Server
"$self->pre_accept_hook()"
This hook occurs just before the accept is called.
"$self->pre_fork_hook()"
This hook occurs just after accept but before the fork.
"$self->post_accept_hook()"
This hook occurs in the child after the accept and fork.
"$self->run_dequeue()"
This hook only gets called in conjuction with the check_for_dequeue setting.
TO DO
See Net::Server
AUTHOR
Paul Seamons <paul@seamons.com>
Rob Brown <bbb@cpan.org>
SEE ALSO
Please see also Net::Server::INET, Net::Server::PreFork, Net::Server::MultiType, Net::Server::SIG Net::Server::Single
perl v5.12.1 2007-02-03 Net::Server::Fork(3)