swlist command to get software installed on different system

387 Views Asked by At

When you run swlist with no arguments on an HPUX system you get the packages that are installed on that particular host. I want that same output but instead listing packages that are installed on a different system.

Is this possible?

2

There are 2 best solutions below

0
On BEST ANSWER
find $(perl -e 'print"@INC"') -name \*.pm

will get you most of the way there.

0
On

Try using Net::SSH::Expect to execute the swlist command on the remote host, grab the output and do what you want with it. That's what I would do.