Operating System - HP-UX
1835036 Members
3968 Online
110073 Solutions
New Discussion

Packages configuration,control and netconf file.

 
SOLVED
Go to solution
khilari
Regular Advisor

Packages configuration,control and netconf file.

Package configuration file:
CLUSTER_NAME cluster1


# QS_HOST qshost
# QS_POLLING_INTERVAL 120000000
# QS_TIMEOUT_EXTENSION 2000000

FIRST_CLUSTER_LOCK_VG /dev/vg01



NODE_NAME n1
NETWORK_INTERFACE lan0
HEARTBEAT_IP 142.238.210.52 FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names
# For example:
# SERIAL_DEVICE_FILE /dev/tty0p0

# Warning: There are no standby network interfaces for lan0.

NODE_NAME n2
NETWORK_INTERFACE lan0
HEARTBEAT_IP 142.238.210.53
FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names
# For example:
# SERIAL_DEVICE_FILE /dev/tty0p0

# Warning: There are no standby network interfaces for lan0.


# Cluster Timing Parameters (microseconds).


HEARTBEAT_INTERVAL 4000000
NODE_TIMEOUT 8000000


# Configuration/Reconfiguration Timing Parameters (microseconds).

AUTO_START_TIMEOUT 600000000

NETWORK_POLLING_INTERVAL 2000000

NETWORK_FAILURE_DETECTION INOUT

MAX_CONFIGURED_PACKAGES 8


VOLUME_GROUP /dev/vg01

Package control file:

# cat nfs.cntl
PATH=/sbin:/usr/bin:/usr/sbin:/etc:/bin
VGCHANGE="vgchange -a e" # Default
VG[0]=vg01 LV[0]=/dev/vg01/matt;
FS[0]=/hanfs/vg01; FS_MOUNT_OPT[0]="-o rw"
FS_UMOUNT_COUNT=1FS_MOUNT_RETRY_COUNT=0
IP[0]=142.238.210.43
SUBNET[0]=142.238.210.0


Netconf file:

# cat /etc/rc.config.d/netconf
# netconf: configuration values for core networking subsystems
#
# @(#)B.11.11_LR $Revision: 1.6.119.6 $ $Date: 97/09/10 15:56:01 $
#
# 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 ----
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines betwee
# the next set of statements

HOSTNAME="n2"
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: Hostname (in /etc/hosts) or IP address in decimal
# notation (e.g., 192.1.2.3)
#
# SUBNET_MASK: Subnetwork mask in decimal-dot notation, if diffe
# from default
#
# BROADCAST_ADDRESS: Broadcast address in decimal-dot notation, if
# different from default
#
# INTERFACE_STATE: Desired interface state at boot time.
# either up or down, default is up.
#
# DHCP_ENABLE Determines whether or not DHCP client functionali
# 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 i
#
# For each additional network interfaces, add a set of variable assignm
# like the ones below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines betwee
# the next set of statements

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="142.238.210.52"
SUBNET_MASK[0]="0xffffff00"
BROADCAST_ADDRESS[0]="142.238.210.255"
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0

# Internet routing configuration. See route(1m), routing(7)
#
# ROUTE_DESTINATION: Destination hostname (in /etc/hosts) or host or n
# IP address in decimal-dot notation, preceded by t
# "host" or "net"; or simply the word "default".
#
# ROUTE_MASK: Subnetwork mask in decimal-dot notation, or C lan
# hexadecimal notation. This is an optional field.
# A IP address, subnet mask pair uniquely identifie
# a subnet to be reached. If a subnet mask is not g
# then the system will assign the longest subnet ma
# of the configured network interfaces to this rout
# If there is no matching subnet mask, then the sys
# will assign the default network mask as the route
# subnet mask.
#
# ROUTE_GATEWAY: Gateway hostname (in /etc/hosts) or IP address in
# decimal-dot notation. If local interface, must u
# same form as used for IP_ADDRESS above (hostname
# 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
# remote interface (one) or the local interface (ze
# or loopback interface (e.g., 127.*).
#
# ROUTE_ARGS: Route command arguments and options. This variab
# may contain a combination of the following argume
# "-f", "-n" and "-p pmtu".
#
# For each additional route, add a set of variable assignments like the
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines betwee
# the next set of statements

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="142.238.210.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

Now, what i want to ask is that in the control file, how do i change the ip address of the package.(Just do it manually or use cmmodnet.(If cmmodnet then how).
Secondly, in the netconf file i have the subnet mask as SUBNET_MASK[0]="0xffffff00". But i dont have any subnet.So how do i specify a subnet in the control file. For now i just made it up the ip address of the node is 142.238.210.52 so, i made the subnet as 142.238.210.0. So,how do i go about giving it the ip address. And lastly, if i want to put an x clock service as a package then what enteried do i need to add in the control file.

Thanks.

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Packages configuration,control and netconf file.

Shalom,

Don't have a subnet?

use ifconfig on other interfaces to find out the subnet and set it.

Not setting the subnet is still having a subnet.

Networking 101.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
melvyn burnard
Honored Contributor

Re: Packages configuration,control and netconf file.

Use netstat -in to look at what your subnets are.
Also read the manuals
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Josiah Henline
Valued Contributor
Solution

Re: Packages configuration,control and netconf file.

The subnet is defined by the netconf for the primary interface. The IP address of the package is a virtual IP address that is assined to primary interface of the system that is running the package.

Once you have everything added to your package and cluster config files, run cmcheckconf -C cluster_config_file -P package_config_file.

The cntl file is a script that you specify in the package config file. It is ran with a " start" when the package is started and a " stop" when the package is halted.
If at first you don't succeed, read the man page.