GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Checking MCSG
Operating System - HP-UX
1856573
Members
23361
Online
104113
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
back
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
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
10-07-2003 10:24 AM
10-07-2003 10:24 AM
Hi all
I am new to MCSG and i need a help from you. I am writing a shell script and need to check whether MC Serviceguard is installed or not. Based on that i need to run some task.
anyone help me how can i check whether MCSG is installed and working in this machine.
I know i can check the installation with swlist | grep -i serviceguard but i need to know whether it is part of a running cluster.
Thanks
Vijay
I am new to MCSG and i need a help from you. I am writing a shell script and need to check whether MC Serviceguard is installed or not. Based on that i need to run some task.
anyone help me how can i check whether MCSG is installed and working in this machine.
I know i can check the installation with swlist | grep -i serviceguard but i need to know whether it is part of a running cluster.
Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 10:37 AM
10-07-2003 10:37 AM
Re: Checking MCSG
If you need to check for a running cluster node then grep'ing the cmviewcl output could be a way to go. You could also check if the cluster damon 'cmcld' is present.
Best regards...
Dietmar.
Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 10:55 AM
10-07-2003 10:55 AM
Re: Checking MCSG
Hi,
# swlist ServiceGuard
will tell u if it has been installed or not
# ps -ef | grep /usr/lbin/cmcld | grep -v grep | grep -q cmcld
# if [[ $? -ne 0 ]]
then
echo "cluster not running"
else
echo "running"
fi
Thanks,
Sundar.
# swlist ServiceGuard
will tell u if it has been installed or not
# ps -ef | grep /usr/lbin/cmcld | grep -v grep | grep -q cmcld
# if [[ $? -ne 0 ]]
then
echo "cluster not running"
else
echo "running"
fi
Thanks,
Sundar.
Learn What to do ,How to do and more importantly When to do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 01:27 PM
10-07-2003 01:27 PM
Solution
a.) Regarding "...check whether MC Serviceguard is installed or not..."
# swlist -l fileset -a state | grep -i serviceguard
b) Regarding "..and working in this machine..."
This will be a combo of things depending on what you want, for many SA's don't allow the SG cluster to start at boot up. If you do then:
- grep "AUTOSTART_CMCLD=1" /etc/rc.config.d/cmcluster
- Check syslog.log for 'vmunix' and 'cmcld' messages.
- ServiceGuard Manager, a free openview download from:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8325BA
- or do as others have suggested and parse the output of 'cmviewcl -v'.
# cmclview -v > /tmp/file
# grep -i -e enabled -e primary /tmp/file (* etc. *)
# swlist -l fileset -a state | grep -i serviceguard
b) Regarding "..and working in this machine..."
This will be a combo of things depending on what you want, for many SA's don't allow the SG cluster to start at boot up. If you do then:
- grep "AUTOSTART_CMCLD=1" /etc/rc.config.d/cmcluster
- Check syslog.log for 'vmunix' and 'cmcld' messages.
- ServiceGuard Manager, a free openview download from:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8325BA
- or do as others have suggested and parse the output of 'cmviewcl -v'.
# cmclview -v > /tmp/file
# grep -i -e enabled -e primary /tmp/file (* etc. *)
Support Fatherhood - Stop Family Law
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
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP