02-13-2016
Quote:
Originally Posted by
hiten.r.chauhan
.
.
.
host file of acer has the entry
192.168.5.1 acer
.
.
.
That should be the host file on rhel7 as a fallback in case the name service call fails.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm nearly finished my program i've got everything in place and than when i run it it comes back with the reply mv: command not found. This is the code that seems to be causing the problem.
elif
then
echo "There are more than one '$1' files in the system."
echo "Please... (2 Replies)
Discussion started by: zoolz
2 Replies
2. HP-UX
Hi.
I just installed the HP-UX 11i V2.
I have problems with CDE - it is inoperative (after logon there is a message box: messaging system failure - or something like that, it asks to check /etc/hosts and network settings).
nslookup works by hostname and IP, hostname shown the correct... (7 Replies)
Discussion started by: netwalker
7 Replies
3. HP-UX
hi folks,
i've got a blank hp visualize C3000 workstation and installed HP-UX 11.11. When I want to start X, I get the following error message:
# X
Fatal server error:
Couldn't open X pointer device! Is one attached?
I've connected an mouse and a keyboard with an usb/ps2 connector.... (5 Replies)
Discussion started by: grisu
5 Replies
4. Solaris
Hi All,
My current setup is:
1x Windows Server (Windows 2000 server)
1x Unix Server
2x Windows machine
3x Unix Terminals (Hostnames = A, B and C)
Problem
The problem iam having is Unix terminal C cannot be ping across by Unix terminal A or B or Unix server by using the hostname. Unix... (1 Reply)
Discussion started by: tlee
1 Replies
5. Solaris
I recently installed Solaris 10 on my Sun workstation. I cannot ping using hostname from another computer on the same network.
But I can ping using the IP address. Also I can ping other systems using their hostnames.
Can anyone give some information regarding how to resolve this issue. (4 Replies)
Discussion started by: alpha123
4 Replies
6. AIX
Hello everyone
I have a partition with a problem with ping.
If I do a ping by ip for example ping 1.1.1.1 I got no problem but If I ping by hostname for example ping partition1 take almost a minute to respond me.
I have Aix 5.3 and I have another 19 partitions with no problem. The only... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies
7. UNIX for Advanced & Expert Users
anyone ever seen this problem:
I can ping the server by IP address but I can't by hostname.
nslookup is working and dns query is ok.
# nslookup mwxnsb24
Server: 10.11.49.206
Address: 10.11.49.206#53
Name: mwxnsb24
Address: 10.10.58.175
# ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies
8. Shell Programming and Scripting
Hi.
Here is beginning of my script
#!/usr/local/bin/expect --
set timeout 15
spawn /usr/local/account.sh -n modify
expect "Password:" {send "mypassword\r"}
But due to some terminal control sequences (or something else, dunno exactly) my password prompt is looking like this:
and expect... (3 Replies)
Discussion started by: urello
3 Replies
9. Shell Programming and Scripting
Hello, Unix-forums!
My problem:
read -p "Enter any number, please" number
sleep 1
echo $number | tr -d 0-9
test -z $number && echo "Thank you" || echo "This is not a number"Test always displays "This is not a number". It doesn't matter if I entered a or 1.
But if I order
echo... (2 Replies)
Discussion started by: intelinside
2 Replies
LEARN ABOUT DEBIAN
sge_hostnameutils
HOSTNAMEUTILS(1) Sun Grid Engine User Commands HOSTNAMEUTILS(1)
NAME
sge_hostnameutils.1 - SGE Host name utilities
gethostname -
get local hostname.
gethostbyname -
get local host information for specified hostname.
gethostbyaddr -
get hostname via IP address.
getservbyname -
get configured port number of service
SYNTAX
gethostname [-help|-name|-aname|-all]
gethostbyname [-help|-name|-aname|-all] <name>
gethostbyaddr [-help|-name|-aname|-all] <ip>
getservbyname [-help|-number] <service>
DESCRIPTION
gethostname and gethostbyname are used to get the local resolved host name. gethostbyaddr is used to get the hostname of a specified IP
address (dotted decimal notation). getservbyname can be used to get the configured port number of a service (e.g. from /etc/services).
The hostname utils are primarily used by the Sun Grid Engine installation scripts. gethostname , gethostbyname and gethostbyaddr called
without any option will print out the hostname, all specified aliases, and the IP address of the locally resolved hostname. Calling get-
servbyname without any option will print out the full service entry.
OPTIONS
-help
Prints a list of all options.
-name
This option only reports the primary name of the host.
-aname
If this option is set, the Sun Grid Engine host alias file is used for host name resolving. It is necessary to set the environment variable
SGE_ROOT and, if more than one cell is defined, also SGE_CELL.
This option will print out the Sun Grid Engine host name.
-all
By using the -all option all available host information will be printed. This information includes the host name, the Sun Grid Engine host
name, all host aliases, and the IP address of the host.
-number
This option will print out the port number of the specified service name.
<name>
The host name for which the information is requested.
<ip>
The IP address (dotted decimal notation) for which the information is requested.
<service>
The service name for which the information is requested (e.g. ftp, sge_qmaster or sge_execd).
EXAMPLES
The following example shows how to get the port number of the FTP service:
>getservbyname -number ftp
21
The next example shows the output of gethostname -all when the host alias file contains this line:
gridmaster extern_name extern_name.mydomain
The local host resolving must also provide the alias name "gridmaster". Each Sun Grid Engine host that wants to use the cluster must be
able to resolve the host name "gridmaster".
To setup an alias name, edit your /etc/hosts file or modify your NIS setup to provide the alias for the NIS clients.
The host alias file must be readable from each host (use e.g. NFS shared file location).
>gethostname -all
Hostname: extern_name.mydomain
SGE name: gridmaster
Aliases: loghost gridmaster
Host Address(es): 192.168.143.99
ENVIRONMENTAL VARIABLES
SGE_ROOT Specifies the location of the Sun Grid Engine standard configuration files.
SGE_CELL If set, specifies the default Sun Grid Engine cell.
SEE ALSO
sge_intro(1), host_aliases(5),
COPYRIGHT
See sge_intro(1) for a full statement of rights and permissions.
SGE 6.2u5 $Date$ HOSTNAMEUTILS(1)