- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cmviewcl output query
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
05-13-2004 05:26 PM
05-13-2004 05:26 PM
cmviewcl output query
PACKAGE STATUS STATE AUTO_RUN NODE
DES_DATABASE up running enabled kpux01
Now in order to reliably parse this, the fields would have to be whitespace separated (i.e. at least one blank &/or tab). If cmviewcl guarantees whitespace separation, then if the package name in this example was one character longer, we'd see something like this:
PACKAGE STATUS STATE AUTO_RUN NODE
DES_DATABASE1 up running enabled kpux01
If on the other hand, cmviewcl just uses fixed-length fields then we would see something like:
PACKAGE STATUS STATE AUTO_RUN NODE
DES_DATABASE1up running enabled kpux01
which is of course difficult to parse (or outright impossible if the package name was another character longer again, e.g. DES_DATABASE12).
This more in the nature of an inquiry rather than a problem.
Any suggestion welcome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 06:14 PM
05-13-2004 06:14 PM
Re: cmviewcl output query
Sajith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2004 06:47 PM
05-13-2004 06:47 PM
Re: cmviewcl output query
There is an enhancement request pending (SR8606217344) that requests a new option for cmviewcl to provide machine readable output, but so far the Serviceguard lab has not worked on this.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 01:18 AM
05-14-2004 01:18 AM
Re: cmviewcl output query
On all my clusters there is.
As far as parsing, why not just
cmviewcl |grep up
or
cmviewcl |grep package
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 01:24 AM
05-14-2004 01:24 AM
Re: cmviewcl output query
The cmcviewcl output is not a fixed length output. There is always a blank space in between words.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 01:26 AM
05-14-2004 01:26 AM
Re: cmviewcl output query
cmviewcl -p pkg1 -v
cmviewcl -p pkg2 -v
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:22 AM
05-14-2004 02:22 AM
Re: cmviewcl output query
PKG=ignite
STATUS=`cmviewcl | grep $PKG | awk {'print $2'}`
echo $STATUS
# ./chkstat
up
-StephenD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:34 AM
05-14-2004 02:34 AM
Re: cmviewcl output query
I would suggest looking into that for your needs since you could easily pipe the output you are looking for such as:
cmviewcl -v | grep ^PACKAGE | awk '{whatever}'
Best regards,
Kent M. Ostby