Sponsored Content
Top Forums Shell Programming and Scripting shell script related to server Post 82801 by reborg on Tuesday 6th of September 2005 05:28:22 PM
Old 09-06-2005
You will need to be a lot more specific if you want to get help with this.

What do you want to do with the script, how many servers, how are the servers related to one another, do you use a naming service, do they have nfs mounts etc.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to move a file from one server to another server using FTP in shell script?

I have a file --> file1.txt i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... (4 Replies)
Discussion started by: forevercalz
4 Replies

2. Shell Programming and Scripting

shell script related query

Hi I have an input to a file. I want the script to return it formatted the input is a number, say , 1234567895 and the output should be 21 43 65 87 59 ,ie, the pair of two digits should be reversed. How can I do this using a shell script? (1 Reply)
Discussion started by: gopsman
1 Replies

3. Shell Programming and Scripting

what is problem with this small shell script.. case statement related

Hi All, this small script is written to recognize user input character.. it is in small case .. upeer case or is a number... but when i input first capital letter say A.. it always gives small character.... what is the problem. #!/bin/bash echo "Enter the character" read a case $a in )... (2 Replies)
Discussion started by: johnray31
2 Replies

4. Shell Programming and Scripting

Simple Shell Script Question.... [java related]

Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I... (3 Replies)
Discussion started by: Drags111
3 Replies

5. Shell Programming and Scripting

Shell script for FTP a file from one server to another server

Hi Can any one help me for script. I need a script and this script has to execute daily to move the files. FTP from one server to another server EX: Sep 10 06:24 abc.txt Sep 11 06.56 abc.txt Sep 12 08.23 abc.txt these files are located at a/b/c/e/f in 123 server and copy... (0 Replies)
Discussion started by: mahantysk
0 Replies

6. Programming

Issue Related to Proxy Server

Hi All, I am establishing the proxy server to communicate the date between devices using serial port but after serial port connection,it should start the Proxy Server and still run till the communication is happening...but server became started but it became halted due to error - Please... (1 Reply)
Discussion started by: smartgupta
1 Replies

7. Shell Programming and Scripting

Problem related to shell script

I am new in shell script.I want to write a shell script to read username and password from file and compare it with the username and password which is entered by the GUI application. (1 Reply)
Discussion started by: shubhig15
1 Replies

8. Shell Programming and Scripting

Shell script to copy a file from one server to anther server and execute the binary

Hi , Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file. We want to copy a file on multiple servers and run the installation. Thanks (1 Reply)
Discussion started by: Nawrajesh
1 Replies

9. Shell Programming and Scripting

Except script to run a local shell script on remote server using root access

local script: cat > first.sh cd /tmp echo $PWD echo `whoami` cd /tmp/123 tar -cvf 789.tar 456 sleep 10 except script: cat > first #!/usr/bin/expect set ip 10.5.15.20 set user "xyz123" set password "123456" set script first.sh spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
NFSD(8) 						    BSD System Manager's Manual 						   NFSD(8)

NAME
nfsd -- remote NFS server SYNOPSIS
nfsd [-arduteo] [-n num_servers] [-h bindip] [--maxthreads max_threads] [--minthreads min_threads] DESCRIPTION
The nfsd utility runs on a server machine to service NFS requests from client machines. At least one nfsd must be running for a machine to operate as a server. Unless otherwise specified, eight servers per CPU for UDP transport are started. The following options are available: -r Register the NFS service with rpcbind(8) without creating any servers. This option can be used along with the -u or -t options to re-register NFS if the rpcbind server is restarted. -d Unregister the NFS service with rpcbind(8) without creating any servers. -n threads Specifies how many servers to create. This option is equivalent to specifying --maxthreads and --minthreads with their respective arguments to threads. --maxthreads threads Specifies the maximum servers that will be kept around to service requests. --minthreads threads Specifies the minimum servers that will be kept around to service requests. -h bindip Specifies which IP address or hostname to bind to on the local host. This option is recommended when a host has multiple interfaces. Multiple -h options may be specified. -a Specifies that nfsd should bind to the wildcard IP address. This is the default if no -h options are given. It may also be speci- fied in addition to any -h options given. Note that NFS/UDP does not operate properly when bound to the wildcard IP address whether you use -a or do not use -h. -t Serve TCP NFS clients. -u Serve UDP NFS clients. -e The new NFS server that includes NFSv4 support is now the default, so this option is now a no-op and should be considered deprecated. -o Forces the use of the old NFS server that does not include NFSv4 support in it. For example, ``nfsd -u -t -n 6'' serves UDP and TCP transports using six daemons. A server should run enough daemons to handle the maximum level of concurrency from its clients, typically four to six. The nfsd utility listens for service requests at the port indicated in the NFS server specification; see Network File System Protocol Specification, RFC1094, NFS: Network File System Version 3 Protocol Specification, RFC1813 and Network File System (NFS) Version 4 Protocol, RFC3530. If nfsd detects that NFS is not loaded in the running kernel, it will attempt to load a loadable kernel module containing NFS support using kldload(2). If this fails, or no NFS KLD is available, nfsd will exit with an error. If nfsd is to be run on a host with multiple interfaces or interface aliases, use of the -h option is recommended. If you do not use the option NFS may not respond to UDP packets from the same IP address they were sent to. Use of this option is also recommended when securing NFS exports on a firewalling machine such that the NFS sockets can only be accessed by the inside interface. The ipfw utility would then be used to block nfs-related packets that come in on the outside interface. If the server has stopped servicing clients and has generated a console message like ``nfsd server cache flooded...'', the value for vfs.nfsd.tcphighwater needs to be increased. This should allow the server to again handle requests without a reboot. Also, you may want to consider decreasing the value for vfs.nfsd.tcpcachetimeo to several minutes (in seconds) instead of 12 hours when this occurs. Unfortunately making vfs.nfsd.tcphighwater too large can result in the mbuf limit being reached, as indicated by a console message like ``kern.ipc.nmbufs limit reached''. If you cannot find values of the above sysctl values that work, you can disable the DRC cache for TCP by setting vfs.nfsd.cachetcp to 0. The nfsd utility has to be terminated with SIGUSR1 and cannot be killed with SIGTERM or SIGQUIT. The nfsd utility needs to ignore these sig- nals in order to stay alive as long as possible during a shutdown, otherwise loopback mounts will not be able to unmount. If you have to kill nfsd just do a ``kill -USR1 <PID of master nfsd>'' EXIT STATUS
The nfsd utility exits 0 on success, and >0 if an error occurs. SEE ALSO
nfsstat(1), kldload(2), nfssvc(2), nfsv4(4), exports(5), stablerestart(5), gssd(8), ipfw(8), mountd(8), nfsiod(8), nfsrevoke(8), nfsuserd(8), rpcbind(8) HISTORY
The nfsd utility first appeared in 4.4BSD. BUGS
If nfsd is started when gssd(8) is not running, it will service AUTH_SYS requests only. To fix the problem you must kill nfsd and then restart it, after the gssd(8) is running. BSD
January 1, 2015 BSD
All times are GMT -4. The time now is 10:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy