- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.0 MC/Serviceguard "cmgetconf" 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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-20-2003 09:47 AM
тАО10-20-2003 09:47 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2003 10:27 AM
тАО10-20-2003 10:27 AM
SolutionUse the following command to store a current copy of the existing cluster configuration in a temporary file:
# cmgetconf -C /tmp/temp.asciicmgetconf -v -c mycluster temp.ascii
# cmquerycl -n n1 -n n2 -C cmclconf.ascii
Combine temp.ascii with cmclconf.ascii
cmcheckconf and cmapplyconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2003 10:30 AM
тАО10-20-2003 10:30 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
# cmgetconf -C /tmp/temp.ascii
-or-
# cmgetconf -v -c mycluster temp.ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2003 03:01 AM
тАО10-22-2003 03:01 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
# cmgetconf > /etc/cmcluster/cluster.ascii
Remove all lines starting with "Warning" from /etc/cmcluster/cluster.ascii file.
If you modify any thing in that ascii file, do the following to enure that the ascii file is has correct syntax:
# cmcheckconf -C /etc/cmcluster/cluster.ascii
If you have made any changes, do a cmmaplyconf:
#cmapplyconf -C /etc/cmcluster/cluster.ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2003 03:21 AM
тАО10-22-2003 03:21 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
Use,
cmgetconf [-v] [-c cluster_name] [-p package_name] [output_filename]
# cmgetconf cluster.ascii
# cmgetconf -p (pkg_name) (config.pkg1_name)
Verify that the conf file is good.
# cmcheckconf -C cluster.ascii
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2003 08:18 AM
тАО11-12-2003 08:18 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
In this case, since this cluster has three different packages running..that is, a different package on each node in the cluster, each package would need to be specified as part of the command syntax, right? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2003 08:40 AM
тАО11-12-2003 08:40 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
'package.cntl' and 'package.conf' files are bound together in pairs. For this command use the 'package.conf' file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2003 12:24 AM
тАО11-13-2003 12:24 AM
Re: HPUX 11.0 MC/Serviceguard "cmgetconf" command
#!/sbin/sh
# This script automates the recreation of the cluster and package
# configuration files based on the cluster binary present on the server
# If the cluster binary is out of date with the current hardware
# configuration, the configuration files may not succeed a cmcheckconf
# or cmapplyconf.
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
print "Reconstituting the cluster configuration file. This may take some time..."
cmgetconf /etc/cmcluster/CLUSTER.ASCII 1>/dev/null
print "Saved it at /etc/cmcluster/CLUSTER.ASCII"
for PKG in `cmviewconf | grep "package name" | cut -f 4,4` ; do
cmgetconf -p $PKG /etc/cmcluster/$PKG.config
print "Recreated package $PKG configuration file at /etc/cmcluster/$PKG.config"
done
else
print "No cluster binary on this server."
exit
=============
sd