to execute the command swlist

I tried executing the following command to check the version of Apache installed

byfusp01 $ swlist | grep -i apache
ksh: swlist: not found

Do I need root permission to execute this command?

how about lvdisplay / pvdisplay?

Please help me. Thanks

Try /usr/sbin/swlist

Find the command swlist and use proper path to execute the command. lvdisplay/pvdisplay shows logical volume and physical volume respectively.

$$ /usr/sbin/swlist | grep -i apache . However, you can use httpd -v to see the apache version or Please have a look inside the httpd.conf file.

many thanks fpmurphy and joydeep. I got the answer however with the following warnings

WARNING: An attempt to get the network host entry for "fusion" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
WARNING: The ACL stored in file "/var/adm/sw/products/ifiles/_ACL"
contains hostname(s) which could not be resolved.
WARNING: An attempt to get the network host entry for "fusion" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
WARNING: The ACL stored in file "/var/adm/sw/products/ifiles/_OWNER"
contains hostname(s) which could not be resolved.

hpuxwsApache A.2.0.49.00 HP-UX Apache-based Web Server

Looks like your DNS resolver is or was not configured correctly.

The above error is most likely due to your /etc/hosts file not having the local machines hostname and IP address configured correctly.

Check the entries and then stop and restart swagentd using swagentd -k and swagentd -r commands