- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error when running swlist
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:13 AM
08-04-2006 08:13 AM
# swlist
# Initializing...
# Contacting target "hp024"...
ERROR: Could not contact host "hp024". Make sure the hostname is correct and an absolute pathname is specified (beginning with "/").
ERROR: More information may be found in the daemon logfile on this target (default location is hp024:/var/adm/sw/swagentd.log).
The entry in the swagentd.log shows the following:
WARNING: An attempt to get the network host entry for "hp024" 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.
I checked the files and they look OK, but I am not an HP-UX Admin, so I may be missing something. Any ideas?
Thanks,
Andy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:23 AM
08-04-2006 08:23 AM
Re: Error when running swlist
Make sure the host entry in the /etc/hosts file is correct and matches the one in /etc/rc.config.d/netconf. If you have made changes to the hostname, you need to either restart swagentd or reboot the server.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:23 AM
08-04-2006 08:23 AM
Re: Error when running swlist
Did you use the root account?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:27 AM
08-04-2006 08:27 AM
Solution# nslookup hp024
# nslookup ip_address_of_hp024
should have the same output.
check your /etc/hosts file.
192.x.x.xxx hp024
127.0.0.1 localhost loopback
check your /etc/nsswitch.conf file
hosts files dns
if you do not have a nsswitch.conf file, copy the /etc/nsswitch.files to the /etc/nsswitch.conf
check your /etc/resolv.conf for the correct dns server.
restart the swagentd
# swagentd -k
# swagentd -r
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:36 AM
08-04-2006 08:36 AM
Re: Error when running swlist
nslookup is returning errors:
# nslookup hp024
ypwhich: clnt_create error: RPC: Unknown host
Name Server: ns3.lss.emc.com
Address: 168.159.48.49
Trying DNS
*** ns3.lss.emc.com can't find hp024: Non-existent domain
# nslookup 172.23.184.24
ypwhich: clnt_create error: RPC: Unknown host
Name Server: ns3.lss.emc.com
Address: 168.159.48.49
Trying DNS
Name: l82bd024.lss.emc.com
Address: 172.23.184.24
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:40 AM
08-04-2006 08:40 AM
Re: Error when running swlist
expect the best and you will get it here!
make the nslookup working without errors and your problem will be solved (check the nsswitch.conf)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:45 AM
08-04-2006 08:45 AM
Re: Error when running swlist
Robert-Jan:
This worked! I had copied over the hp_default file.
Thanks again all. swlist now works. I'll do my software install on Monday and make sure everything works.
This forum is fantastic!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2006 08:50 AM
08-04-2006 08:50 AM
Re: Error when running swlist
A good forum makes the key decision (at least for me) - it helps me to decide to buy my computer, my TV, my DVD player, my sat stb, my audio ...
Keep posting - have fun!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
