Operating System - HP-UX
1752615 Members
4563 Online
108788 Solutions
New Discussion юеВ

Re: swlist only codeword installed sw

 
SOLVED
Go to solution
erics_1
Honored Contributor

swlist only codeword installed sw

Hello All,

I'm looking for a command that will swlist all licensed HP software on a system. Is there another option outside of grepping for all the known possibilities?

Thanks,
Eric
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: swlist only codeword installed sw

Shalom,

Never had the idea to check this.

Here are a few ideas:

http://docs.hp.com/en/B2355-90754/ch03s01.html

http://docs.hp.com/en/B2355-90950/ch07s02.html

You may want to fool around interactively and then you can discern the command.

For obvious reasons, swlist is not going to cough up th codewords.

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
James R. Ferguson
Acclaimed Contributor

Re: swlist only codeword installed sw

Hi Eric:

You could do:

# cat /var/adm/sw/.codewords

Regards!

...JRF...
Michael Steele_2
Honored Contributor
Solution

Re: swlist only codeword installed sw

Hi

swlist -d -a is_protected

http://docs.hp.com/en/B2355-90754/ch03s01.html

Using Software Codewords and Customer IDs

http://docs.hp.com/en/B2355-90754/ch02s01.html#bajbjjef

For example, if you want to store the codeword 123456789101bcdf (from the /CD-ROM mount point) and your customer_id was xyzCorp, you would enter on the command line:

swinstall -p -x customer_id=xyzCorp \
-x codeword=123456789101bcdf \
-s /CD_ROM
Support Fatherhood - Stop Family Law
erics_1
Honored Contributor

Re: swlist only codeword installed sw

Steven/James,

Both good suggestions. I don't see any options in sdux that'll return that information. Also, because of cloning, I don't think I can rely on .codewords for accurate output. Our auditors want documentation of sw assets. I'm hoping to ssh out from a central location to all nodes and grab this information quickly. If nothing else pops up, I may end up using swlist and grepping out what I know we own. There's only 5 or 6 products to be concerned with.

Thanks,
Eric
erics_1
Honored Contributor

Re: swlist only codeword installed sw

Michael,

Haven't talked to you since Roseville.

I think you've got it with the is_protected option:

swlist -l bundle -a is_protected

That returns the product numbers which is what I'm looking for!

Thanks!
Eric
erics_1
Honored Contributor

Re: swlist only codeword installed sw

swlist -l bundle -a is_protected
Michael Steele_2
Honored Contributor

Re: swlist only codeword installed sw

Tall guy? Golfer?
Support Fatherhood - Stop Family Law
erics_1
Honored Contributor

Re: swlist only codeword installed sw

Tall guy yes. Golfer is debatable.
Michael Steele_2
Honored Contributor

Re: swlist only codeword installed sw

LOL
Still in Roseville? The last remaining CA Garden of Eden?
Support Fatherhood - Stop Family Law