Hpux update /etc/hosts


 
Thread Tools Search this Thread
Operating Systems HP-UX Hpux update /etc/hosts
# 1  
Old 11-02-2013
Hpux update /etc/hosts

On every reboot hpux 11.31 update etc/hosts
even on dhcp,this cause problems with ssh kerberos
How to avoid update /etc/hosts?
This is my netconf
Code:
# netconf:  configuration values for core networking subsystems
#
# @(#) netconf $Date: 2011/01/31 17:30:11 $Revision: r11.31/2 PATCH_11.31 (PHNE_41714) 
#
# HOSTNAME:           Name of your system for uname -S and hostname
#
# OPERATING_SYSTEM:   Name of operating system returned by uname -s
#                     ---- DO NOT CHANGE THIS VALUE ----
#
# LOOPBACK_ADDRESS:   Loopback address
#                     ---- DO NOT CHANGE THIS VALUE ----
#

HOSTNAME=hpux2
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

# Internet configuration parameters.  See ifconfig(1m), autopush(1m)
# 
# INTERFACE_NAME:     Network interface name (see lanscan(1m))
#
# IP_ADDRESS:         IP address in decimal-dot notation (e.g., 192.1.2.3),
#                     or hostname (in /etc/hosts).
#
# SUBNET_MASK:        Subnetwork mask in decimal-dot notation, if different
#                     from default
#
# BROADCAST_ADDRESS:  Broadcast address in decimal-dot notation, if 
#                     different from default
#
# INTERFACE_STATE:    Desired interface state at boot time.
#                     either up, down or force, default is up.
#                     See ifconfig(1m) for more about force option.
#
# DHCP_ENABLE         Determines whether or not DHCP client functionality 
#                     will be enabled on the network interface (see 
#                     auto_parms(1M), dhcpclient(1M)). DHCP clients get 
#                     their IP address assignments from DHCP servers.
#                     1 enables DHCP client functionality; 0 disables it.
#
# INTERFACE_MODULES:  A list of modules to be pushed on a stream
#                     associated with an interface. For example,
#                     INTERFACE_MODULES[0]="mod1 mod2 ... modN-1 modN"
#                     pushes modN on top of modN-1.
#
# INTERFACE_SKIP:    Determines whether this interface needs to be configured
#                    or not. Setting it to "true" will skip or disable the
#                    interface configuration. And setting it to "false" enables
#                    the interface configuration. Default is "false"
#
#
# For each additional network interfaces, add a set of variable assignments
# like the ones below, changing the index to "[1]", "[2]" et cetera.
#

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.0.16
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=192.168.0.255
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=1
INTERFACE_MODULES[0]=""
INTERFACE_SKIP[0]=""

# Internet routing configuration.  See route(1m), routing(7)
#
# ROUTE_DESTINATION:  Destination host or network IP address in decimal-dot
#                     notation, or hostname (in /etc/hosts) or network name
#                     (in /etc/networks), preceded by the word "host" or "net";
#                     or simply the word "default".
#
# ROUTE_MASK:         Subnetwork mask in decimal-dot notation, or C language
#                     hexadecimal notation.  This is an optional field.
#                     An IP address/subnet mask pair uniquely identifies
#                     a subnet to be reached. If a subnet mask is not given,
#                     then the system will assign the longest subnet mask
#                     of the configured network interfaces to this route.
#                     If there is no matching subnet mask, then the system
#                     will assign the default network mask as the route's
#                     subnet mask.
#
# ROUTE_GATEWAY:      Gateway IP address in decimal-dot notation, or hostname
#                     (in /etc/hosts).  If local interface, must use the
#                     same form as used for IP_ADDRESS above (hostname or
#                     decimal-dot notation). If loopback interface, i.e.,
#                     127.0.0.1, the ROUTE_COUNT must be set to zero.
#
# ROUTE_COUNT:        An integer that indicates whether the gateway is a
#                     remote interface (one) or the local interface (zero)
#                     or loopback interface (e.g., 127.*).
#
# ROUTE_ARGS:         Route command arguments and options.  This variable
#                     may contain a combination of the following arguments:
#                     "-f", "-n" and "-p pmtu".
#
# ROUTE_SOURCE:       Local system IP address in decimal-dot notation, or the
#                     equivalent hostname or alias (in /etc/hosts).
#                     This field is optional.  If specified, it must match
#                     one of the configured IP addresses or names of the 
#                     local system.
#
# ROUTE_PARAMS:       Specify "force" to enable force flag for the routes.
#                     See route(1m) for more about force flag.
#
# ROUTE_SKIP:         Determines whether route needs to be configured or not.
#                     Setting it to "true" will skip or disable the configuration
#                     of this route. And setting it to "false" will enable the
#                     route configuration. Default is "false".
#
#                     Please note that if the corresponding source interface is
#                     skipped from the configuration, then set this flag to "true"
#                     or else /sbin/init.d/net fails to add this route.
#
# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT:  If host or network names are used instead of IP addresses for
#             fields that support both, make sure the system name resolution
#             policy is configured so that a hang during system boot (or slow
#             boot behavior) is avoided.  See nsswitch.conf(4).

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""
ROUTE_SOURCE[0]=""
ROUTE_SKIP[0]=""

# Dynamic routing daemon configuration.  See gated(1m)
#
# GATED:        Set to 1 to start gated daemon.
# GATED_ARGS:   Arguments to the gated daemon.

GATED=0
GATED_ARGS=""

#
# Router Discover Protocol daemon configuration.  See rdpd(1m)
#
# RDPD:         Set to 1 to start rdpd daemon
#       

RDPD=0

#
# Reverse ARP daemon configuration.  See rarpd(1m)
#
# RARPD:         Set to 1 to start rarpd daemon
#       

RARPD=0

#
# Network interface configuration.  See ifconfig(1m)
#
# DEFAULT_INTERFACE_MODULES contains a default list of modules to be
# pushed on a stream associated with an interface.  For example,
# INTERFACE_MODULES[0]="mod1 mod2 ...  modN-1 modN" pushes modN on top
# of modN-1.
#
# Precedence rules:
# 1) The module names specified in INTERFACE_MODULES[] for the specified
#    interface overrides the modules in DEFAULT_INTERFACE_MODULES. For
#    example, INTERFACE_MODULES[0]="foo" and 
#    DEFAULT_INTERFACE_MODULES="m1 m2", then the module list applied 
#    will be "foo".
#
# 2) If INTERFACE_MODULES[] is set to null string, then the module 
#    names specified in DEFAULT_INTERFACE_MODULES will be used for the
#    specified interface. For example, INTERFACE_MODULES[0]="" ( or
#    INTERFACE_MODULES[0]= ) and DEFAULT_INTERFACE_MODULES="m1 m2", 
#    then the applied module list will be "m1,m2".
#
# 3) If INTERFACE_MODULES[] is explicitly set to "NONE", then no module
#    list will be applied for the specified interface. For example, if
#    INTERFACE_MODULES[0]="NONE" and DEFAULT_INTERFACE_MODULES="m1 m2",
#    then there will be no -m option applied to the interface.
#    Restriction: The module name can't be "NONE", and "NONE" is not 
#    case sensitive. 

DEFAULT_INTERFACE_MODULES=""

LANCONFIG_ARGS[0]=ether
ROUTE_DESTINATION[1]=default
ROUTE_GATEWAY[1]=
ROUTE_COUNT[1]=1

# New Optional Internet configuration parameters BEGINS
#
# INTERFACE_SKIP:    Determines whether corresponding interface specified in INTERFACE_NAME
#                    need to be configured or not. Setting it to "true" will skip or disable
#                    the interface configuration. And setting it to "false" enables
#                    the interface configuration. Default is "false"
#
# For Example,
#                    In  order to skip the configuration of interface mentioned in 
#                    INTERFACE_NAME[0]. User can just set INTERFACE_SKIP[0] to"true".
#
#               
# INTERFACE_STATE:    Desired interface state at boot time.
#                     either up, down or force, default is up.
#                     See ifconfig(1m) for more about force option.
#
# ROUTE_PARAMS:       Specify "force" to enable force flag for the routes.
#                     See route(1m) for more about force flag.
#
# ROUTE_SKIP:         Determines whether the corresponding static route needs to be
#                     configured or not. Setting it to "true" will skip or disable
#                     the configuration of this route. And setting it to "false" will
#                     enable the route configuration. Default is "false".
#
#                     Please note that if the corresponding source interface is
#                     skipped from the configuration, then set this flag to "true"
#                     or else /sbin/init.d/net fails to add this route.
# For example
#                     To skip the configuration of an static route specified in
#                     ROUTE_DESTINATION[0] set ROUTE_SKIP[0] to "true".
#
# Optional Internet configuration parameters ENDS.
ROUTE_DESTINATION[2]=default
ROUTE_GATEWAY[2]=
ROUTE_COUNT[2]=1
ROUTE_DESTINATION[3]=default
ROUTE_GATEWAY[3]=192.168.0.1
ROUTE_COUNT[3]=1

---------- Post updated at 10:24 AM ---------- Previous update was at 10:23 AM ----------

using fqdn Smilie dont' work..

Last edited by Linusolaradm1; 11-02-2013 at 12:52 PM..
# 2  
Old 11-02-2013
I don't sure about your problem.
BUT on serious server, I will use simple technic by fix static IP on server.
SmilieSmilie
# 3  
Old 11-03-2013
My solution: a bash script wich replace with sed the hostname with fqdn in /etc/hosts Smilie
# 4  
Old 11-05-2013
I haven't seen HP-UX updating /etc/hosts during system boot.
Your netconf looks okay. Something else must be wrong.
What do you get with the following shell commands?
Code:
uname -a
nslookup `hostname`

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to copy a tar file on a series of remote hosts and untar it on those hosts?

Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh. Actions to perform within a single ssh session via shell script - copy a file - untar at destination (remote host) OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies

2. Red Hat

RedHat 5 update 9 BASH update issue

Hi i want to update the BASH because of the "shell shock" vulnerability. my RedHat 5 is clean install with the default mirror site. when im running the command: yum update bash im getting a message saying there is no update. you can see in the attach picture... what am i doing wrong? is... (4 Replies)
Discussion started by: guy3145
4 Replies

3. Programming

MYSQL - trigger update on record insert or update

Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works: UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` ); So now I want this... (5 Replies)
Discussion started by: barrydocks
5 Replies

4. AIX

aix tcp wrappers hosts.allow hosts.deny?

hi all just installed the netsec.options.tcpwrapper from expansion pack, which used to be a rpm, for my aix 6.1 test box. it is so unpredictable. i set up the hosts.deny as suggested for all and allow the sshd for specific ip addresses/hostnames. the tcpdchk says the hosts allowed and... (0 Replies)
Discussion started by: wf201626
0 Replies

5. HP-UX

pwage-hpux-T for Trusted HPUX servers

I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email. original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies

6. Ubuntu

Wrong update in etc/hosts?

Hi All I have just updated the /etc/hosts file in my machine ub1 following setup of a library I need to install. The thing is that my machine is ub1 and I don't know what might happens commenting the line 127.0.1.1 where ub1 is already defined. Might I hurt some functionality doing this? Thanks... (2 Replies)
Discussion started by: manustone
2 Replies

7. Shell Programming and Scripting

Need Script to Use CPUs on a HPUX server to simulate Workload Manager on HPUX.

I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies

8. UNIX for Dummies Questions & Answers

Hosts.allow and hosts.deny

Hello everyone, This is my first posts and I did search for a questions but did not find a question that answered my question unless of course I overlooked it. I'm running Solaris 8. I use ssh for the users but I have a user called "chatterbox" that uses telnet but I need for chatterbox to... (1 Reply)
Discussion started by: huddlestonsnk
1 Replies

9. UNIX for Dummies Questions & Answers

hosts.allow & hosts.deny

Hi! Im trying to use host.allow & host.deny to resrtic access to my sun machine, but it doesnt seem to work... I want to allow full access from certain IPīs (ssh,http,ftp,etc...) but deny all kind of conections from outsideworld, the way that im doing that is: hosts.allow ALL:127.0.0.1... (2 Replies)
Discussion started by: Sorrento
2 Replies
Login or Register to Ask a Question