cancel
Showing results for 
Search instead for 
Did you mean: 

Swagentd Daemon Not Enabled!!!

 
SOLVED
Go to solution
Highlighted
Frequent Advisor

Swagentd Daemon Not Enabled!!!

Hi

I am currently working on the performance tuning of TBB 2.2 on HPUX Itanium platform. For this purpose I am trying to install caliper on HPUX. Unfortunately I am stuck with an error which I am not able to figure out. The error is as follows:

Could not start a management session for "nitkhp01:/ake*". The system administrator for host "nitkhp01" may have disabled the
swagentd daemon or there may be a networking problem affecting the operation. If the swagentd daemon has been disabled, it can be
enabled by the system administrator on "nitkhp01" by setting the "SW_ENABLE_SWAGENTD" entry in /etc/rc.config.d/swconfig to "1" and
executing "/usr/sbin/swagentd -r".

This error was encountered while installing caliper.depot.gz file on HPUX using the command swinstall -s /path/caliper.depot.gz. We tried to enable the swagentd daemon according to how it is given but still we are facing with the same problem. Actually speaking the daemon is running all the time, somehow its not able to detect that the daemon is running. It would be very helpful if anyone could help.
22 REPLIES 22
Highlighted
Exalted Contributor

Re: Swagentd Daemon Not Enabled!!!

Shalom,

ll /etc/nsswitch.conf

If it is not there, there are a few choices with the name nsswitch as the first part of the name.

By default, new installations of HP-UX do not have an nsswitch.conf set. You need to put one in place and then restart swagentd.

Though maybe not required, I recommend:

gunzip calilper.gz

swinstall -s /tmp/caliper.gz \*

Then run swinstall. swinstall may be able to gunzip depots, but I have never tested this.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Acclaimed Contributor

Re: Swagentd Daemon Not Enabled!!!

>SEP: Though maybe not required, I recommend:
>gunzip caliper.depot.gz
>swinstall -s /path/caliper.depot \*

Yes, it's required.

>swinstall may be able to gunzip depots

It doesn't. It can handle individual files in the depot that are already compressed but not the whole tape depot.
Highlighted
Frequent Advisor

Re: Swagentd Daemon Not Enabled!!!

Hi steven,

Thanks for the quick reply.I have the latest version of HPUX (11.31) and it does not have nsswitch.conf. Where can I get the nsswitch.conf file for this purpose or what should I do in order to make such a file?

Highlighted
Exalted Contributor
Solution

Re: Swagentd Daemon Not Enabled!!!

Shalom again,

cd /etc

ll nsswitch*

Pick one that meets your needs.
more, cat or vi edit them.

cp nsswitch. /etc/nsswitch.conf

Then restart the swagentd daemon

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Frequent Advisor

Re: Swagentd Daemon Not Enabled!!!

Hi steven

I did according to what you said.
The files present are

nsswitch.files
nsswitch.nis
nsswitch.compat
nsswitch.ldap
nsswitch.hp_defaults

I did not change anything in the files. I directly copied into /etc/nsswitch.conf and restarted swagentd daemon. Tried swinstall but still it gives the same error.

Could you tell me how to find out to what kind of client is my host configured to (I mean whether is it configured to NIS or LDAP since the corresponding nsswitch files are present)?

Highlighted
Frequent Advisor

Re: Swagentd Daemon Not Enabled!!!

Hi,

I tried setting nsswitch.files as /etc/nsswitch.conf and then restarted the daemon and swinstalled it.

The errors were encountered:

ERROR: RPC exception: "Communications failure (dce / rpc)" 02/17/10 11:51:16 IST
ERROR: Could not start a management session for "nitkhp01:/". The system administrator for host "nitkhp01" may have disabled the swagentd daemon or there may be a networking problem affecting the operation. If the swagentd daemon has been disabled, it can be enabled by the system administrator on "nitkhp01" by setting the "SW_ENABLE_SWAGENTD" entry in /etc/rc.config.d/swconfig to "1" and executing "/usr/sbin/swagentd -r".
* Target connection failed for "nitkhp01:/".
ERROR:More information may be found in the daemon logfile on this target (default location is nitkhp01:/var/adm/sw/swagentd.log).
* Selection had errors.


I am totally stuck at this point since I am not able to install anything on the HPUX machine because of this problem. Any help regarding this issue would be great.
Highlighted
Honored Contributor

Re: Swagentd Daemon Not Enabled!!!

can you run the below command

/usr/sbin/swagentd -r
Problems are common to all, but attitude makes the difference
Highlighted
Frequent Advisor

Re: Swagentd Daemon Not Enabled!!!

thats the same command as swagentd -r rite????
Highlighted
Frequent Advisor

Re: Swagentd Daemon Not Enabled!!!

I tried the above command also but am getting the same error.