to execute the command swlist


 
Thread Tools Search this Thread
Operating Systems HP-UX to execute the command swlist
# 1  
Old 11-08-2007
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
# 2  
Old 11-08-2007
Try /usr/sbin/swlist

Last edited by fpmurphy; 11-08-2007 at 07:47 AM.. Reason: oops
# 3  
Old 11-08-2007
Find the command swlist and use proper path to execute the command. lvdisplay/pvdisplay shows logical volume and physical volume respectively.
# 4  
Old 11-08-2007
$$ /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.
# 5  
Old 11-08-2007
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
# 6  
Old 11-09-2007
Looks like your DNS resolver is or was not configured correctly.
# 7  
Old 11-09-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. Shell Programming and Scripting

How to execute a command on each line of output from another command?

Hello :) new to bash not to programming. I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward. find {target_root} -group wrong_group gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies

3. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

4. Shell Programming and Scripting

Need help to execute command

HI, I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file names with comma separated. Desired output: file1,file2,file3 so on.... Regards Akshay... (2 Replies)
Discussion started by: akshu.agni
2 Replies

5. HP-UX

swlist -l patch question

when i type command : swlist -l patch how to do that i can only show gcc this line only # gcc 4.2.3 gcc not to show other line # gcc.gcc-INC # gcc.gcc-MAN # gcc.gcc-RUN how to do? example # gcc 4.2.3 ... (2 Replies)
Discussion started by: alert0919
2 Replies

6. UNIX for Dummies Questions & Answers

how to execute an command this way

How to make it works this way? echo dir1\/*.txt ; echo dir1\/*.html | xargs wc -l dir1/*.txt wc: dir1/*.html: No such file or directory what i'm trying to do it to "wc dir1/*.txt" and "wc dir1/*.html" (2 Replies)
Discussion started by: Bornay6ah
2 Replies

7. Shell Programming and Scripting

How to build a command into a string rather than execute the command

I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example: mycmd='' if ...; then $mycmd='sudo ' fi $mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile res=`$mycmd` (I'm also not sure of the best way to execute the command from the... (1 Reply)
Discussion started by: littlejon
1 Replies

8. HP-UX

swlist is not displayed in HP-UX

Hi swlist command is not displayed in HP-UX ..it displays swlist: Command not found. uname -a HP-UX inccishh B.11.11 U 9000/800 4046719263 unlimited-user license :b: Best Regards vasanthan (4 Replies)
Discussion started by: vasanthan
4 Replies

9. UNIX for Dummies Questions & Answers

Plz Help : How to use write command to execute command on some other terminal

Hi Group , I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages. - i m writing >write user-id ! ls o ctrl-d inspite of executing the command ls,other terminal shows ! ls. Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies

10. Shell Programming and Scripting

execute command

hi, i am try to run the following script - i just can not execute it. ***************************************************** #!/bin/sh echo "system monitor" echo " 1) system paging 2) system file inf. 3) system disk inf. " echo "select an option" read choice case $... (2 Replies)
Discussion started by: neer45
2 Replies
Login or Register to Ask a Question