Operating System - HP-UX
1753781 Members
7579 Online
108799 Solutions
New Discussion юеВ

How to list packages on the system?

 
SOLVED
Go to solution
dictum9
Super Advisor

How to list packages on the system?



I am aware of the cmviewcl command but looking for the easiest way to get the package names on a node, via a script.

Tried going to the /etc/cmcluster directory but it's not obvious (programmatically) which directly is package name and which is not.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to list packages on the system?

Hi:

I would parse the output of 'cmviewcl'. After all, this is the software that correctly "knows" the things you want :-)

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: How to list packages on the system?

Shalom,

I like cmviewcl -v myself.

That and the configuration files should enable you to figure this out.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
rariasn
Honored Contributor

Re: How to list packages on the system?

Hi,

"cmviewconf" is the best script.

rgs,
melvyn burnard
Honored Contributor

Re: How to list packages on the system?

which version of Serviceguard do you have?
In the latest versions you can do a cmviewcl -f line which prints out the details in line format

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
dictum9
Super Advisor

Re: How to list packages on the system?


cmviewcl - I can make work but looks like this is what I looked for:


cmviewconf | grep "package name" | awk '{print $3}'

dictum9
Super Advisor

Re: How to list packages on the system?

P.S. Useful script for other reasons -- thank you.