HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Serviceguard Custom user command execution fro...
Operating System - HP-UX
1826498
Members
1888
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-04-2009 01:38 AM
12-04-2009 01:38 AM
Serviceguard Custom user command execution from SMH GUI
Hello All,
There are 2 vPars in an nPar and that 2 vPars are configured with Serviceguard Cluster. I wrote a custom user command part to move the memory from the primary node to the secondary node along with the package failover.
In the setup 4GB of memory should be migrated from the primary to secondary node and vice-versa.
The issue here is, when I move the package from the command line, it works fine. But if the same task is done through the System Management Homepage GUI, the package movement is done but the Memory migration fails.
Here the commands I used to halt and migrate the package -
# cmhaltpkg -v
# cmrunpkg -v -n
# cmmodpkg -v -e crmsdb
I tried putting the 3 commands together in a single script. This also failing. If I include a sleep of 10 secs between the commands as below, it works fine.
# cat sg_pkg.sh
cmhaltpkg -v
sleep 10
cmrunpkg -v -n
sleep 10
cmmodpkg -v -e crmsdb
Is this a product related bug or something related to timing. Please advise.
Thanks,
Jayaprakash S
There are 2 vPars in an nPar and that 2 vPars are configured with Serviceguard Cluster. I wrote a custom user command part to move the memory from the primary node to the secondary node along with the package failover.
In the setup 4GB of memory should be migrated from the primary to secondary node and vice-versa.
The issue here is, when I move the package from the command line, it works fine. But if the same task is done through the System Management Homepage GUI, the package movement is done but the Memory migration fails.
Here the commands I used to halt and migrate the package -
# cmhaltpkg -v
# cmrunpkg -v -n
# cmmodpkg -v -e crmsdb
I tried putting the 3 commands together in a single script. This also failing. If I include a sleep of 10 secs between the commands as below, it works fine.
# cat sg_pkg.sh
cmhaltpkg -v
sleep 10
cmrunpkg -v -n
sleep 10
cmmodpkg -v -e crmsdb
Is this a product related bug or something related to timing. Please advise.
Thanks,
Jayaprakash S
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2009 05:50 AM
12-04-2009 05:50 AM
Re: Serviceguard Custom user command execution from SMH GUI
hi,
did you try to set the fully path tu the commands ???
if its a shell script use :
#!/bin/sh (ksh)...
or if its a +x on the file the you could use
set -x
command 1
command 2
cmhaltpkg ???
for example : /usr/sbin/cmhaltpkg -v pkg_name
or define the $PATH as some variable.
mikap
did you try to set the fully path tu the commands ???
if its a shell script use :
#!/bin/sh (ksh)...
or if its a +x on the file the you could use
set -x
command 1
command 2
cmhaltpkg ???
for example : /usr/sbin/cmhaltpkg -v pkg_name
or define the $PATH as some variable.
mikap
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP