Operating System - HP-UX
1834916 Members
2366 Online
110071 Solutions
New Discussion

Re: Permission denied error using cmviewcl

 
SOLVED
Go to solution
RobertCarback
Frequent Advisor

Permission denied error using cmviewcl

Earlier I noticed my server's cron jobs were not running, but the cluster appeared to be up and running.

When running cmviewcl on the active node I got the following ---

mxpddf01:/#cmviewcl
Permission denied to 127.0.0.1
cmviewcl: Cannot view the cluster configuration: No such file or directory.
Either this node is not configured in a cluster, user doesn't have
access to view the cluster configuration, or there is some obstacle
to viewing the configuration. Check the syslog file for more information.
For a list of possible causes, see the Serviceguard manual for cmviewcl.
mxpddf01:/#


So I searched this forum and found that possibly running 'inetd -c' may correct the issue. I ran inetd -c and a few minutes later (3 minutes), cmviewcl ran correctly and the cron jobs started running correctly. I have the following in cmclnodelist --

mxpddf01 root
mxpddf02 root

on both nodes and since it started working added to cmclnodelist on both nodes --

127.0.0.1 root

/etc/nsswitch.conf has the hosts entry as

hosts: dns [notfound=continue] files

but Doc ID emr_na-c01028325-3 says I should have it as --

hosts: files dns

Does this really matter? What caused the issue in the first place (happened once before 2 months ago and rebooting the node fixed it)?
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Permission denied error using cmviewcl

Shalom,

You will get better DNS response with the recommended nsswitch.conf configuration.

It is difficult to know if that alone is the cause of the problem.

If possible take note of changes made when the problem was introduced.

Always good to follow recommendations of documentation where possible.

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
RobertCarback
Frequent Advisor

Re: Permission denied error using cmviewcl

I'm the only person that has root access to the servers and I was not on the servers at that time so no mods were made. I've changed nsswitch.conf per online docs. Thanks
Deeos
Regular Advisor

Re: Permission denied error using cmviewcl

hi Robert Carback ,


have you checked /etc/cmcluster/cmclconfig file exist or not?


if this file not exist, then you will gets such error message.
Deepak
RobertCarback
Frequent Advisor

Re: Permission denied error using cmviewcl

Yes -- that file does exist on both nodes. I've made a change to nsswitch.conf for hosts to check files before DNS (as suggested in HP docs). We'll see of that makes a difference.
RobertCarback
Frequent Advisor

Re: Permission denied error using cmviewcl

--