- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Identifying active node
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
01-09-2007 03:48 AM
01-09-2007 03:48 AM
What's the easiest way to identify if a node is the active node of the cluster?
I am trying cmviewcl but it gives lots of output, do I have to parse it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 04:41 AM
01-09-2007 04:41 AM
Re: Identifying active node
Depending on the application, both nodes can be active at the same time. Packages can run on whichever node they are configured to run on or on the failover node if the proper command issued.
cmviewcl -v
Will give you run state and node of all packages, active, running or failed.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 04:54 AM
01-09-2007 04:54 AM
Re: Identifying active node
cmviewcl -l package |awk '{print $5, $1}'
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 04:56 AM
01-09-2007 04:56 AM
Re: Identifying active node
anyhow, use "cmviewcl -l package" if you want to know which package is RUNNING on which node. :)
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 05:40 AM
01-09-2007 05:40 AM
Re: Identifying active node
I usually do:
cmviewcl |grep MyPackage |awk '{print $5}'
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 08:15 PM
01-09-2007 08:15 PM
Re: Identifying active node
The cmviewcl man page says:
-f format Select the output format to display. The format
parameter may be one of the following values:
table This option displays a human readable
tabular output format. This is the
default output format if no -f is
specified on the command line.
line This option displays a machine parsable
output format. Data items are displayed,
one per line, in a way that makes them
easy to manipulate with tools such as
grep(1) and awk(1). This option also
shows additional information not
available in the table output format.
Some of these are detailed under
Specialized Line Output. Please refer to
cmviewcl(5) for further details.
Here is an example:
# cmviewcl -f line -l package | grep -e status
package:PKG3|status=up
package:PKG1|status=up
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG