HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)

1. Find the number of IP addresses already assigned to the container:
$ srp list <srp_name> -s network v
2. Find the id value for the next IP address. For example, if an additional IP, apart from the
container primary address, is not assigned yet, the next id will be 2.
3. Add the new IP address:
$ srp add <srp_name> -s network id <next id>
If the IP address is managed by SG, answer no to the following question:
Add IP address to netconf file? [yes] no
8.6.3 Changing global IP address
During srp_sys setup, the host sshd might have been configured to listen specifically to the
host system IP address. Therefore, if the native IP address changes, the sshd configuration file
must be updated.
Edit the configuration file (default /opt/ssh/etc/sshd_config) for the ListenAddress
parameter:
ListenAddress <new IP-address>
Then, restart sshd:
$ /sbin/init.d/secsh stop
$ /sbin/init.d/secsh start
8.7 Modifying host name
For HP 9000 system container, you can configure the host name and node name from within the
container just the way you do that on the HP 9000 server. Edit the HOSTNAME parameter in the
/etc/rc.config.d/netconf file, and update the /etc/hosts, /etc/mail/sendmail.cw
files, and any application configuration.
For HP 9000 classic container, you must configure the host name and node name from the global
container ( HP-UX 11i v3 host). Edit the /var/hpsrp/<srp_name>/etc/rc.config.d/
netconf, /etc/hosts, /etc/mail/sendmail.cw files, and any application configuration.
8.8 Modifying resource entitlements
You can use HP PRM to manage resource entitlements for an HP 9000 system container.
To modify the PRM configuration for the container, run the following command:
$ srp replace <srp_name> -s prm
HP SMH or PRM commands can also be used directly to modify the PRM group configuration. For
more information, see prm(1M).
8.9 Monitoring HP 9000 containers processes from Integrity host
The ps command in the global container lists the processes running in all the containers, but with
certain obfuscation in the name. For example, an sshd running in a container with id 3 will be
displayed as /opt/ssh/sbin/3_Sshd.
The container identifiers are listed in the /etc/cmpt-db file on the host system.
To list only the processes running inside an HP 9000 container:
$ srp_ps <srp_name> <ps options>
To invoke a command in the context of an HP 9000 system container:
$ srp_su <srp_name> root -c <command full path> <args>
To invoke a command in the context of an HP 9000 classic container:
8.7 Modifying host name 53