Error when running script involving machine name and local network
Hi everyone, I'm trying to write a script that takes a machine name as a command line argument and displays a message informing me whether the host is on the local network.
Here's what I have:
Whenever I run it with my machine name (ubuntu) I get the following output:
I'm not sure what the error means and why I'm getting it, as well as if the script is even doing what it should be doing. Any advice would be appreciated. Thanks!
Hi guys,
I need to run and test some shell script. At work, i work on ksh. I don't have any such software/client installed at home and i cannot always connect to work from home. At home i have Windows Vista.
Is there a free and reliable software where i can run my ksh script?
Please let me... (4 Replies)
Hi All,
URGENT - Please help me form a scipt for this:
I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server)
I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Hi ,
How to check whether web server is running from remote machine
How to check whether web server is running on web server itself
Can any one help me soon (1 Reply)
Hi,
i have been developing a shell script to transfer a set of files from one ubuntu system to another.
Task: while executing the script the files ( ls, dir, cat) in the source machine should transfer to destination machine(at /home/mac/mac/bin)
While the script is executed once again, It... (0 Replies)
Hi All..
Am new to Unix!!
Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).
And also i have to transfer the input file from the local directory to Unix machine (Server)
Any help from you... (1 Reply)
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
I need to run a local shell script on a remote machine. I am able to achieve that by executing the command
> ssh -qtt user@host < test.sh
However, when I try to pass arguments to test.sh it fails.
Any pointers would be appreciated. (7 Replies)
I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99
Source Destination was UP, with IP 192.168.1.15.
This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Team,
Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
I have a script in local server
cd /home/dell/work/BOP/testdir
./processchk po (here processchk is a script & po is passed as an argument)
Now I want to execute this script from remote server
ssh $username@$hostname "cd /home/dell/work/BOP/testdir; ./processchk po"
But Its getting error... (9 Replies)
Discussion started by: manohar2013
9 Replies
LEARN ABOUT OSF1
timed
timed(8) System Manager's Manual timed(8)NAME
timed - The network time daemon
SYNOPSIS
timed [-tME] [-n | -i network]
FLAGS
Specifies the names of the networks (as defined in the /etc/networks file) to be excluded from clock synchronization. Each network name
that is an argument to the -i flag is added to the list of networks that the timed daemon will ignore. If the -i flag is used, timed
accesses all networks to which the host is connected except for the specified networks.
If neither the -i flag nor the -n flag is used, timed tries to access all the network devices connected to the local host.
Do not use the -i and -n flags together. Specifies that a machine can become the time server if the master time server becomes
inoperative. See the Restrictions section for more information. Overrides the input of slaves. Use the -E flag in conjunction
with the -M flag. It specifies that a master timed system will not average the times of the slaves to calculate the network time.
Instead, it distributes the time of its local host as the network time. This flag allows a master timed system to distribute time
to a network while the network time is controlled by an outside agent (such as the Network Time Protocol (NTP)). Specifies the
names of the networks (as defined in the /etc/networks file) to be included in clock synchronization. When timed is started, it
gathers information about all the network devices connected to the local host. The network argument to the -n flag is the name of
the network that timed should access. If the -n flag is used, only the specified networks are accessed.
If neither the -n flag nor the -i flag is used, timed tries to access all the network devices connected to the local host.
Do not use the -n and -i flags together. Enables tracing of messages received in /usr/adm/timed.log.
DESCRIPTION
The timed daemon is not invoked at boot time by default. You can use /usr/sbin/timedsetup to configure the timed daemon.
The timed daemon synchronizes the host's clock with those of other machines on the local area network that are also running the timed dae-
mon. The timed daemon slows the clocks of some machines and speeds up the clocks on other machines to create an average network time. The
average network time is computed from measurements of clock differences using the Internet Control Message Protocol ICMP timestamp request
message.
The service provided by timed is based on a master/slave (client/server) scheme. When timed is started on a machine, it asks the master
timed daemon for the network time and sets the host's clock to that time. After that, the host accepts synchronization messages periodi-
cally sent by the master and calls the adjtime system call to perform the needed corrections on the host's clock.
The timed daemon also communicates with the date command to set the date globally, and with timedc, the timed control program.
If the machine running the master ceases to function, a machine that is running the timed daemon with the -M flag becomes the new master
timed daemon.
Note
The timed daemon is provided for compatibility. Tru64 UNIX also provides support for the Network Time Protocol through the xntpd daemon.
You should use NTP for time synchronization. If you need to run both NTP and the timed daemon, you must run the timed daemon with the -E
flag.
If you plan to run both the timed daemon and NTP, you should also configure NTP first.
RESTRICTIONS
In configurations with two or more hosts each connected to the same two or more subnetworks, only one of the host can run the timed with
the -M option.
FILES
Specifies the command path Contains messages traced for the timed command Contains information about the known networks
RELATED INFORMATION
Commands: date(1), timedc(8), timedsetup(8)
Daemons: xntpd(8)
Functions: adjtime(2), gettimeofday(2) delim off
timed(8)