Operating System - HP-UX
1753776 Members
7376 Online
108799 Solutions
New Discussion юеВ

Re: cmviewcl not working for normal user,

 
SOLVED
Go to solution
jeevarajkn
Frequent Advisor

cmviewcl not working for normal user,

Dear Guru's

OS--HP UX 11.23--rx6600

I am not able to excute the cmviewcl command by using normal user.

Permission denied to 127.0.0.1
cmviewcl: Cannot view the cluster configuration: Permission denied.
This user doesn't have access to view the cluster configuration.



I already add the entry in /etc/cmcluster/cmclnodelist.

But still problem existing.

Can anybody help me...


15 REPLIES 15
Ivan Krastev
Honored Contributor

Re: cmviewcl not working for normal user,

Is your syntax correct, as described here - http://docs.hp.com/en/B5158-90024/ch05s01.html

Format is :
hostname username

regards,
ivan
vjta
Regular Advisor

Re: cmviewcl not working for normal user,

Hi jeeva
can u post ur cmclnodelist contents here

you can add
hostname or
+
for other users

regards
vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: cmviewcl not working for normal user,

Solution

Re: cmviewcl not working for normal user,

I'm going to make 2 assumptions based on what you've told us:

i) cmviewcl *does* work for the root user
ii) this node is already configured into a Serviceguard cluster

Serviceguard ignores the cmclnodelist file once the cluster node is configured and you then need to define rols in the package configuration files. This is described in the manual here:

http://docs.hp.com/en/B3936-90117/ch05s01.html#cacjcidg

scroll down to the section titled "Setting Access Controls for Configured Cluster Nodes"

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Avinash20
Honored Contributor

Re: cmviewcl not working for normal user,

<<< I am not able to excute the cmviewcl command by using normal user. >>> ??

Jeevan: It is working fine for the root user ??
If not, then
Please see that nslookup to hostname or fully qualified domain names works.

Eg: If A and B are two nodes, then see that

# nslookup A
# nslookup B

## The above command gives the correct IP address on both the nodes

# nslookup
# nslookup

## The above commands resolves to the correct hostname on both the nodes
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
jeevarajkn
Frequent Advisor

Re: cmviewcl not working for normal user,

Hi All

This is my cmclnodelist entry in both nodes.

uaedxbpdctakp02>more /etc/cmcluster/cmclnodelist
uaedxbpdctakp01 root
uaedxbpdctakp02 root
uaedxbpdctakp01 uxgsmc
uaedxbpdctakp02 uxgsmc

But in my other cluster nodes this user can able to run cmviewcl with out this entry in cmclnodlist.

Re: cmviewcl not working for normal user,

So you're going to ignore my repsonse are you? It seems from what you are saying that you already have a running cluster. As I stated in my previous post, cmclnodelist is completely ignored once a cluster is created (i.e. the binary file /etc/cmcluster/cmclconfig exists).

From this point on you need to make sure you have the required entries for cluster or package admin, or just for monitoring in your cluster/package configurations. As described in the manual I pointed you at.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
jeevarajkn
Frequent Advisor

Re: cmviewcl not working for normal user,

Duncan,

Can you plesae confirm in which file I want to give the entry.

In my /etc/cmcluster/cmclconfig i didn't find any option but same time i found in /etc/cmcluster/pkg1/pkg1.conf file where my package name is pkg1.

I given the below entry in /etc/cmcluster/pkg1/pkg1.conf of both nodes.

USER_NAME ANY_USER
USER_HOST CLUSTER_MEMBER_NODE
USER_ROLE package_admin

But it didn't solve my issue...

Re: cmviewcl not working for normal user,

So you put the entries in the package configuration file, but did you check/apply the configuration using cmcheckconf -P ... and cmapplyconf -P ...

HTH

Duncan

I am an HPE Employee
Accept or Kudo