How do i get only the IP part from a host call.
For example in my script i put
This echos the following
roadhaulage.com has address 86.54.98.194 roadhaulage.com mail is handled by 10 mail2.roadhaulage.com. roadhaulage.com mail is handled by 1 mail.roadhaulage.com.
But i only want the 86.54.98.194 to be returned to $server_ip
Any ideas?
This seems close
But it is returning the fourth word in each sentence so im getting
86.54.98.194handledhandled
Last edited by timgolding; 04-12-2010 at 11:21 AM..
I will remote a connection to a Unix server and launch a command on this server. This commnand requires me to set a view in Clearcase to see the vob element. How do I set a view an run a command with ssh with the syntax: ssh host command? (3 Replies)
I have been slowly working towards getting a shell window in Cygwin (and/or Gnome and/or KDE) to start up and display the last time it was opened (or sourced) similarly to how the OS X Terminal does so. As close as I've been able to get so far is the 'who' command, but I can't seem to puzzle out... (2 Replies)
Hi,
My script needs to check whether the remote host is up or not.
If it is up i need to start few servers in that host or else just a notification should be sent that the remote host is down?
Could someone help me out in this?
Regards
Arun (4 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
hi guys
I have standalone Suse 10 SP3 that when I run
# hostname
webserver
but when I run host command
# host webserver
;; connection timed out; no servers could be reached
I would like to get the IP when I issue
host webserver
x.x.x.x
and the name when
host x.x.x.x... (1 Reply)
Hi,
I have a weird problem.
when ever I do ping command like for example
ping unix.comI get the following message:
# ping unix.com
ping: unknown host unix.com
but when I use host the computer is able to know the host.
# host unix.com
unix.com has address 81.17.242.186
unix.com mail is... (2 Replies)
I have searched in a variety of ways in a variety of places but have come up empty.
I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
yppoll(1M) System Administration Commands yppoll(1M)NAME
yppoll - return current version of a NIS map at a NIS server host
SYNOPSIS
/usr/sbin/yppoll [-d ypdomain] [-h host] mapname
DESCRIPTION
The yppoll command asks a ypserv() process what the order number is, and which host is the master NIS server for the named map.
OPTIONS -d ypdomain Use ypdomain instead of the default domain.
-h host Ask the ypserv process at host about the map parameters. If host is not specified, the NIS server for the local
host is used. That is, the default host is the one returned by ypwhich(1).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO ypwhich(1), ypfiles(4), attributes(5)SunOS 5.10 14 Sep 1992 yppoll(1M)