srp.1m (2011 09)
SRP(1M) SRP(1M)
/var/hpsrp/<compartment>/opt/ssh
exec_path=pathname
Root directory for sshd executables. Default: /opt/ssh
Ipfilter Service:
Manages ipf(1M) rules for the container that are associated with sshd (8). Rules are only applied to
the network interface with instance id=1, which is the network interface assigned when the con-
tainer is created.
ipf_tcp_ports=tcp_port_number[,tcp_port_number]...
Comma separated list of
TCP port numbers to be allowed IPFilter ingress for this container.
Default: 22
Provision Service:
This service provisions the sshd web server in the container. In addition to using all the variables
defined for the cmpt and ipfilter services, the following variables are available:
data_src=pathname
Source directory for copying sshd data and configuration files. Default: /opt/ssh/newconfig
sshd_port=tcp_port_number
TCP port number for ssh client connections to sshd. Default: 22
DIAGNOSTICS
Any errors found will be written to the standard error file (stderr). Appropriate diagnostic messages are
logged via syslogd(1M).
RETURN VALUE
srp exits with a return value of zero on success and one on failure.
EXAMPLES
Add a new system type container sys_container to the system non-interactively, with an
IP address of
192.0.1.2 on interface lan0 with root password root:
srp -add sys_container -t system ip_address=192.0.1.2 iface=lan0 root_password=root -b
To perform the same operation, but allow srp to prompt for variables:
srp -add sys_container -t system
Add a new workload type container wl_container to the system non-interactively, with an
IP address of
192.0.2.1 on interface lan1:
srp -add wl_container -t workload ip_address=192.0.2.1 iface=lan1 -b
Add an instance of the Apache web server to a workload type container named wl_container:
srp -add wl_container -t apache
Replace the current
PRM rules for sys_container:
srp -replace sys_container -service prm
Add a 2nd instance of the network service with ip_address=192.0.2.2 and iface=lan1 to the container
named wl_container:
srp -add wl_container -s network -b -id 2 ip_address=192.0.2.2 iface=lan1
Add the device files /dev/dev1,/dev/dev2 to the system container named sys_container:
srp -add sys_container -tune device=/dev/dev1,/dev/dev2
Display status of wl_container:
srp -status wl_container
Export sys_container and its home directory (/var/hpsrp/wl_container) into the exchange file named
sys_container.x in the local directory:
srp -export sys_container -xfile sys_container.x ok_export_dirs=y
Preview importing the container configuration and directories from the exchange file sys_container.x:
HP-UX 11i Version 3: September 2011 − 9 − Hewlett-Packard Company 9