1847416 Members
2426 Online
110264 Solutions
New Discussion

loghost on hpux 11i

 
SOLVED
Go to solution
Shivkumar
Super Advisor

loghost on hpux 11i

In Solaris we used to have loghost in front of ip in /etc/hosts file. It used to mean that the server would be recognized mainly by this name.

What is the equivalent of loghost on hpux ?

Thanks in advance,
Shiv
5 REPLIES 5
Kurt Beyers.
Honored Contributor

Re: loghost on hpux 11i

Shiv,

The first name after the IP address in the /etc/hosts file is the primary hostname. You can put aliases behind the primary name so that resolving will occur to the same IP address and hostname.

Eg an alias for a mailserver could be mailserver.domain.com where the primary name would be server.domain.com.

I guess that 'loghost' is the equivalent of the primary name on HP-UX.

best regards,
Kurt
Devender Khatana
Honored Contributor

Re: loghost on hpux 11i

Hi,

From man hosts
==============================================
Aliases are other names by which a host is known. They can substitute for the official host name in most commands. For example:

192.45.36.5 hpdxsg testhost

In this example, users can use remote login on hpdxsg by using the command:

rlogin testhost

instead of

rlogin hpdxsg

If your system is in a domain naming environment, an official host name consists of the full domain extended host name. For example:

192.45.36.5 hpdxsg.xsg.hp.com hpdxsg testhost


HTH,
Devender
Impossible itself mentions "I m possible"
Victor BERRIDGE
Honored Contributor

Re: loghost on hpux 11i

Hi,
I wonder if it is not something obsolete in solaris now...
Here is the beginning of /etc/hosts
$ more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost loghost

The interresting thing is that this box belongs to a set of boxes maintained/administered by SUN...

>It used to mean that the server would be recognized mainly by this name.
This would be what you would see after typing: hostname

All the best
Victor
Matti_Kurkela
Honored Contributor
Solution

Re: loghost on hpux 11i

According to our Solaris administrator, the name "loghost" in /etc/hosts does not signify the primary name of the server.

In a freshly installed Solaris, the syslogd daemon is configured to send log messages through the network to a server named "loghost" if that name is defined. To avoid unnecessary network traffic, by default "loghost" is defined as an alias to "localhost", or is left undefined.

To get a group of Solaris hosts to all log their syslog information to one place, you just make the name "loghost" refer to something other than the local host. If you set up DNS or NIS to override /etc/hosts, you can do that centrally, with no need to make changes in all the hosts.

All Solaris hosts receive syslog messages from the network by default (at least in Solaris 8 and below; my Solaris knowledge is not exactly up-to-date).
MK
Victor BERRIDGE
Honored Contributor

Re: loghost on hpux 11i

Quite right Matti,
Here is from the /etc/syslog.conf on a solaris 9 server:
# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err /dev/sysmsg
user.err /var/adm/messages
user.alert `root, operator'
user.emerg *
)

#


All the best
Victor