System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Manufacturer of Software Products on HP-UX

 
SOLVED
Go to solution
Vineet Deshpande
Frequent Advisor

Finding Manufacturer of Software Products on HP-UX

Hi,

I want to find the Manufacturer or Vendor of the software products on an HP-UX system. I am able to get this value from "vendor_tag" by using the command /usr/sbin/swlist -vl product.

However as expected due to the -v option this output is very verbose. Is there a way to get this information in any other way without using the -v option? I am interested in parsing this output later so -v is not working well for me.

Please help.

Thanks,

Vineet
5 REPLIES
R.K. #
Honored Contributor

Re: Finding Manufacturer of Software Products on HP-UX


grep it with "Vendor Name"
Don't fix what ain't broke
Viney Kumar
Regular Advisor

Re: Finding Manufacturer of Software Products on HP-UX

Hi vineet

try

#swlist -vl product |grep "vendor"


viney
Vineet Deshpande
Frequent Advisor

Re: Finding Manufacturer of Software Products on HP-UX

Hi,

Thanks for your replies.

I have actually tried it but there's a problem. On one hand I am using the command /usr/sbin/swlist -l product -x one_liner="directory revision"

This is for getting details like version, install location etc. Then when I use
/usr/sbin/swlist -vl product | grep vendor_tag
what happens is I get more results in this output as compared to the earlier command. So the mapping is incorrect between the Products name, version, install location to its Vendor!

Thanks,

Vineet
Solution

Re: Finding Manufacturer of Software Products on HP-UX

>the -v option this output is very verbose. Is there a way to get this information in any other way without using the -v option?

After you find what you want with -v, you can use "-a attribute" to list only those attributes you want. Some examples:
http://docs.hp.com/en/5992-5875/ch03s01.html#v2210430
Viktor Balogh
Honored Contributor

Re: Finding Manufacturer of Software Products on HP-UX

as Dennis already suggested, you can try this:

# swlist -l product -a vendor_tag
****
Unix operates with beer.