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
gateways
gateways(4) Kernel Interfaces Manual gateways(4)NAME
gateways - Specifies Internet routing information to the routed daemon
SYNOPSIS
/etc/gateways
DESCRIPTION
The /etc/gateways file identifies gateways for the routed daemon. Ordinarily, the routed daemon queries the network and builds routing
tables. The routed daemon builds the tables from routing information transmitted by other hosts directly connected to the network. How-
ever, there may be gateways that this command cannot identify through its queries. These unidentified gateways are known as distant gate-
ways. Such gateways should be identified in the /etc/gateways file, which the routed daemon reads when it starts.
The general format of an file entry in the /etc/gateways file is: Destination Name1 gateway Name2 metric Value Type
The following is a brief description of each element in an /etc/gateways file entry: A keyword that indicates whether the route is to a
network or to a specific host. The two possible keywords are net and host. The name associated with Destination. Name1 can be either a
symbolic name (as used in the /etc/hosts or /etc/networks file) or an Internet address specified in dotted-decimal format. An indicator
that the following string identifies the gateway host. The name or address of the gateway host to which messages should be forwarded. An
indicator that the next string represents the hop count to the destination host or network. The hop count, or number of gateways, from the
local network to the destination network. A keyword that indicates whether the gateway should be treated as active, passive, or external.
The three possible keywords are as follows: An active gateway is treated like a network interface. That is, it is expected to exchange RIP
(Routing Information Protocol) routing information. Information about it is maintained in the internal routing tables as long as it is
active and is included in any routing information that is transmitted through RIP. If it does not respond for a period of time, the route
associated with it is deleted from the internal routing tables. A passive gateway is not expected to exchange RIP routing information.
Information about it is maintained in the routing tables indefinitely and is included in any routing information that is transmitted
through RIP. An external gateway is identified to inform the routed daemon that another routing process will install such a route and that
alternative routes to that destination should not be installed. Information about external gateways is not maintained in the internal rout-
ing tables and is not transmitted through RIP.
Note that these routes must be to networks.
EXAMPLES
To specify a route to a network through a gateway host with an entry in the gateways file, enter: net net2 gateway host4 metric 4 passive
This example specifies a route to a network, net2, through the gateway host4. The hop count metric to net2 is 4, and the gateway is
treated as passive. To specify a route to a host through a gateway host with an entry in the gateways file, enter: host host2 gate-
way host4 metric 4 passive
This example specifies a route to a host, host2, through the gateway host4. The hop count metric to host2 is 4, and the gateway is
treated as passive. To specify a route to a host through an active Internet gateway with an entry in the gateways file, enter: host
host10 gateway 192.100.11.5 metric 9 active
This example specifies a route to a specific host, host10, through the gateway 192.100.11.5. The hop count metric to host10 is 9 and
the gateway is treated as active. To specify a route to a host through a passive Internet gateway with an entry in the gateways
file, enter: host host10 gateway 192.100.11.5 metric 9 passive
This example specifies a route to a specific host, host10, through the gateway 192.100.11.5. The hop metric count to host10 is 9
and the gateway is treated as passive. To specify a route to a network through an external gateway, enter a line in the following
format: net net5 gateway host7 metric 11 external
This example specifies a route to a network, net5, through the gateway host7. The hop count metric to net5 is 11 and the gateway is
treated as external (that is, it is not advertised through RIP, but is advertised through an unspecified routing protocol).
RELATED INFORMATION
Daemons: gated(8), routed(8) delim off
gateways(4)