Example 1

In this example, if the client’s root disk is smaller than 8.5 GB and has less than 1 GB (1024 MB) of random access memory (RAM), then the primary swap partition size (_hp_pri_swap) is set to 512 MB; otherwise, it is set to 1 GB. If the disk is larger than 8.5 GB, then _hp_pri_swap is set to 1024 MB or 4096 MB, depending on the memory size.

Add the following lines to the end of the file /var/opt/ignite/config.local as this file is typically referenced in all configurations defined in the /var/opt/ignite/data/INDEX file:

#default to very minimal swap of 8500MB

#unless the disk is larger than 8.5

#and we have more than 512MB RAM

(disk[_hp_root_disk].size < 8500MB)

{

(memory < 1024Mb) {

init _hp_pri_swap=512MB } else {

init _hp_pri_swap=1024MB

}

} else {

(memory < 2048Mb) {

init _hp_pri_swap=1024MB } else {

init _hp_pri_swap=4096MB

}

}

You can also put this in a separate file, for example, /var/opt/ignite/data/Rel_B.11.11/ custom_cfg, and then add that file name to the desired cfg clause in the /var/opt/ignite/ data/INDEX file.

Additionally, you can add this to the configuration file created for automatic installations. If the _hp_pri_swap parameter is set later in the order of files searched in the cfg clause, this setting is overwritten. The configuration file parsing order and precedence is documented in instl_adm(4) and in “Using configuration files” (page 161).

CAUTION: The per-client configuration file in /var/opt/ignite/clients/client used for noninteractive installations is overwritten as part of the installation process.

Example 2

To force the installation of a patch bundle if the client matches a regular expression, such as a hardware architecture type like J6700 or J6750 PA-RISC workstations, add the following lines to the end of the /var/opt/ignite/data/Rel_B.11.11/custom_cfg configuration file:

#check for H/W model J6700 or J6750

#and add the Misc_Patches bundle if true

(hardware_model ~ "9000/785/J67[05]0") {init sw_sel "Misc_Patches" = true}

Example 3

In this example, Ignite-UX runs a previously created post-installation script and increases a tunable kernel parameter if it determines the client is a C3600, C3650, C3700, or C3750 workstation. If not, it sets a default value for the kernel parameter:

post_config_script += "/var/opt/ignite/scripts/new_C_series_special" (HARDWARE_MODEL == "9000/785/C3[67][05]0") { mod_kernel += "maxuprc 300" } else {mod_kernel += "maxuprc 100"}

178 Automating installations

Page 178
Image 178
HP UX System Management Software manual Example

UX System Management Software specifications

HP-UX System Management Software is a robust suite of tools designed to facilitate the administration and management of HP's Unix-based operating system, HP-UX. As organizations increasingly rely on mission-critical applications, the need for a reliable and efficient management solution becomes paramount. HP-UX provides a comprehensive understanding of system performance, resource utilization, and enterprise-wide configuration, all while maintaining high availability and security.

One of the key features of HP-UX System Management Software is its Advanced System Administrator Toolkit. This toolkit includes a wide array of utilities that streamline daily administrative tasks such as monitoring system performance, managing user accounts, and configuring system settings. Tools such as Glance provide real-time monitoring of system resources, enabling administrators to identify bottlenecks and optimize performance.

The software also boasts an advanced security framework, including features such as Role-Based Access Control (RBAC) and Secure Shell (SSH) for secure data transmission. Security patches and updates can be managed through HP’s Service Pack for HP-UX, which provides a streamlined method for maintaining system integrity and compliance with various regulatory standards.

Another notable aspect is the extensive support for virtualization technologies. HP-UX supports HP’s Integrity Virtual Machines (IVMs) and vPars, allowing administrators to create multiple isolated environments on a single physical server. This not only enhances resource utilization but also improves disaster recovery planning by enabling easier backup and restore processes.

For storage management, HP-UX offers tools that enable easy setup and management of Logical Volume Managers (LVM). This allows simplified disk space allocation and management, ensuring that critical applications have the necessary resources without manual intervention.

Furthermore, HP-UX is designed with compatibility in mind, supporting a wide range of third-party applications and frameworks. Integration with management platforms like HP System Insight Manager enhances the ability to monitor and manage systems from a centralized perspective, providing alerts and reports that help in proactive decision-making.

In summary, HP-UX System Management Software delivers a streamlined approach to system administration, focusing on performance, security, and ease of management. Its advanced features, combined with an emphasis on virtualization and storage management, make it a powerful tool for organizations seeking reliability and efficiency in their Unix-based environments. As businesses continue to evolve, tools like HP-UX will remain crucial for ensuring consistent performance and operational excellence.