- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ServiceGuard command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2023 11:29 AM - last edited on 06-30-2023 01:42 AM by support_s
06-28-2023 11:29 AM - last edited on 06-30-2023 01:42 AM by support_s
I have 3 HP-UX server (server 1, 2, 3) with multiple Oracle packages (a,b,c,d,e,f,g,h,i) , how I decide on which server to run package? with cmrunpkg -n nodename package_name ?
There is configuration file where I can decide where to run specific pkg at boot?
If a package has configured 2 IP address and I need to delete one of two 2 ones in order to make it I have to change configutation file, run cmhaltpkg package_name and cmrunpkg -n nodename package_name ?
Solved! Go to Solution.
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2023 01:29 AM - edited 06-30-2023 03:37 AM
06-30-2023 01:29 AM - edited 06-30-2023 03:37 AM
Re: ServiceGuard command
Hi RiclyLeRoy
- Starting Serviguard package
When Serviceguard starts or when you explicitly start the package using the cmrunpkg command without specifying any node names, it looks at the "node_name" parameter in the package configuration file. If there are multiple node names listed, Serviceguard will attempt to start the package on the first node mentioned in the list.
If the first node name listed is not available or encounters an issue during startup, Serviceguard will try to start the package on the next available node specified in the list and so on.
But, if you specify a node name while running the cmrunpkg command it will override the "node_name" parameter specified in the package configuration file. The package will be started specifically on the node you have specified in the command.
- Deleting IP address from the package
To delete one of the two IP addresses configured for a package, you would need to make changes to the package's configuration file. After making the necessary modifications, you would typically follow these steps:
- Use the cmhaltpkg command to gracefully stop the package on the node where it is currently running.
- Edit the package's configuration file to remove the unwanted IP address and apply the configuration.
- Use the cmrunpkg -n <node_name> <package_name> command to start the package on the desired server.
Regards,
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2023 03:33 AM
06-30-2023 03:33 AM
SolutionIn ServiceGuard, the decision on which server to run a package can be controlled through package configuration and cluster configuration. Here are some guidelines:
Package Configuration: Each package has a configuration file (usually located in the /etc/cmcluster directory) that determines its behavior and dependencies. Within the package configuration file, you can specify the node affinity for the package using the CMrunNodeList parameter. For example, if you want package "a" to run on server 1, you can set CMrunNodeList="server1" in the package configuration.
Cluster Configuration: The cluster configuration file (/etc/cmcluster/cmclconfig) defines the overall behavior of the cluster. It includes information such as node definitions and package preferences. Within the cluster configuration, you can set package preferences using the CMpreference parameter. This allows you to define the preferred node or group of nodes for a package.
Regarding deleting an IP address for a package, you can follow these steps:
Modify the package configuration file (/etc/cmcluster/pkg_name).
Remove the IP address entry from the configuration file.
Save the changes to the configuration file.
Halt the package using cmhaltpkg package_name.
Start the package on the desired node using cmrunpkg -n nodename package_name.
It's important to note that making changes to ServiceGuard configurations requires careful consideration and understanding of your specific environment. It's recommended to consult the ServiceGuard documentation or seek assistance from experienced administrators to ensure proper configuration and operation of your cluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 11:47 PM
07-12-2023 11:47 PM
Re: ServiceGuard command
Hello @RiclyLeRoy,
Let us know if you were able to resolve the issue.
If you have no further query and you are satisfied with the answer then kindly mark the topic as Solved so that it is helpful for all community members.