1829913 Members
3099 Online
109993 Solutions
New Discussion

serviceguard

 
SOLVED
Go to solution
shruti_1
Advisor

serviceguard

I have instaled servicequard on my machine. I am very bnew to it....now when i run any command like cmmakepkg or cmquerycl. command not found error is coming

swlist output
B3935DA A.11.16.00 Serviceguard


# pwd
/opt/sgmgr
#
#
#
#
# cmmakepkg
sh: cmmakepkg: not found.
# cmquerycl
sh: cmquerycl: not found.

16 REPLIES 16
RAC_1
Honored Contributor

Re: serviceguard

May be it's not in your PATH.
/usr/sbin/cmmakepkg
There is no substitute to HARDWORK
Ludovic Derlyn
Esteemed Contributor

Re: serviceguard

hi

Yes probably a problem of PATH

/opt/sgmgr is service guard manager ?

regards

L-DERLYN
Rajeev  Shukla
Honored Contributor

Re: serviceguard

All serviceguard command are in /usr/sbin
make sure you have /usr/sbin in path.
Type
echo $PATH to see
if not then use the complete path to the commands like
/usr/sbin/cmquerycl etc..
rariasn
Honored Contributor

Re: serviceguard

Hi Shruti,

#ll /usr/sbin/cm*

-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmapplyconf
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmcheckconf
-r-xr-xr-x 1 bin bin 3050008 Mar 14 2005 /usr/sbin/cmcp
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmdeleteconf
-r-xr-xr-x 1 bin bin 3050008 Mar 14 2005 /usr/sbin/cmexec
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmgetconf
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmhaltcl
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmhaltnode
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmhaltpkg
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmhaltserv
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmmakepkg
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmmigrate
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmmodnet
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmmodpkg
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmquerycl
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmruncl
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmrunnode
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmrunpkg
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmrunserv
-r-xr--r-- 1 bin bin 18172 Mar 14 2004 /usr/sbin/cmscancl
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmstartres
-r-xr-xr-x 10 bin bin 3422744 Mar 15 2005 /usr/sbin/cmstopres
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmversion
-r-xr-xr-x 11 bin bin 3422744 Mar 15 2005 /usr/sbin/cmviewcl
-r-xr-xr-x 1 bin bin 3070488 Mar 14 2005 /usr/sbin/cmviewconf

# cd /etc/cmcluster

# ll

rgs,

ran
shruti_1
Advisor

Re: serviceguard

i have triwd it in /usr/sbin. but no result.

# pwd
/usr/sbin
#
#
#
#
#
#
#
# cmmakepkg
sh: cmmakepkg: not found.
rariasn
Honored Contributor

Re: serviceguard

# export PATH=/usr/sbin:$PATH

# cmmakepkg

rgs,

ran

shruti_1
Advisor

Re: serviceguard

Hey guys i hve tried the suggestions listed by all of u..but it is not working..shall i reload the serviceguard
melvyn burnard
Honored Contributor

Re: serviceguard

strange!
What happens if you type
/usr/sbin/cmmakepkg -p testfile


if this works then you have an environment error, you need to look at that.
try typing
whence cmquerycl
or
type cmquerycl

see what this returns.
Out of interest, what HP-UX version and what server model are you using?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
shruti_1
Advisor

Re: serviceguard

# /usr/sbin/cmmakepkg -p testfile
sh: /usr/sbin/cmmakepkg: not found.
# whence cmquerycl
# cmquerycl
sh: cmquerycl: not found.
#
well the server is hp rp 3440 and os is HP ux 11i
rariasn
Honored Contributor

Re: serviceguard

Verify SGuard installation,

#swlist -l product ServiceGuard
# Initializing...
# Contacting target "node_name"...
#
# Target: node_name:/
#

ServiceGuard A.11.16.00 ServiceGuard
melvyn burnard
Honored Contributor

Re: serviceguard

so now do:
ll /usr/sbin/cm*

If there are no files there you have not installed this correctly.
Remove and reinstall it.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
shruti_1
Advisor

Re: serviceguard

therer nofiles. I have remove andreinstalled it but no result. I am really wondering what is happeneing.

swlist output is

B8325BA A.04.00 ServiceGuard Manager
rariasn
Honored Contributor
Solution

Re: serviceguard

I have versión A.05.00

This utility, Serviceguard Manager, allows you to monitor Serviceguard.

Yo need install "ServiceGuard" product.
rgs,

ran
melvyn burnard
Honored Contributor

Re: serviceguard

Please verify what product you are installing!
Is it:
B8325BA A.04.00 ServiceGuard Manager

Or is it
B3935DA A.11.16.00 Serviceguard

Also, review the swinstall logs for any errors etc.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
shruti_1
Advisor

Re: serviceguard

thanks for your wonderful help. I was installing service guary manager that was a fault. Now i have installed service guard however when i running cmquerycl to generate the cluster config file it is throwing the following error

# cmquerycl -C iobas.ascii -n mtnlnew

Error: Permission denied to 127.0.0.1
Warning: Unable to determine local domain name for mtnlnew
Error: Node mtnlnew is refusing Serviceguard communication.
Please make sure that the proper security access is configured on node
mtnlnew through either file-based access (pre-A.11.16 version) or role-based
access (version A.11.16 or higher) and/or that the host name lookup
on node mtnlnew resolves the IP address correctly.
Failed to gather configuration information.
sysadm_1
Valued Contributor

Re: serviceguard

Hello sruti,


For configuring service guard cluster,before running cmquerycl command,there are some preconfiguration steps you have to do.Better to o go thru the following document before you start the configuration.

http://docs.hp.com/en/B3936-90073/index.html
Managing MC/ServiceGuard

-sysadm