- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- Running pairdisplay in CRON
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
Discussions
Discussions
Forums
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
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
тАО11-09-2010 08:53 AM
тАО11-09-2010 08:53 AM
Running pairdisplay in CRON
pkghost=`cmviewcl | grep pXXXXX_XXg`
thishost=`hostname`
datetime=`date`
pairdisp=`/opt/HORCM/usr/bin/pairdisplay -g pXXXXX_XXXXa`
horcmchk=`ps -ef |grep horcm`
export thishost
echo "Host: \n $thishost \n \n"
export datetime
echo "Date Time: \n $datetime \n \n"
export pkghost
echo "ServiceGuard: \n $pkghost \n \n"
export pairdisp
echo "Pair Display: \n $pairdisp \n \n"
export horcmchk
echo "HORCM Check: \n $horcmchk \n \n"
cat log_file | mailx -s "Daily ServiceGuard Report for tXXXXXXXXs" jXXXXXX@XXXXXXXXX.com
The script runs perfectly when fired from the command line. When I try to run from CRON the pairdisplay portion breaks.
The following are the errors I get:
Error::::
pairdisplay: [EX_ATTHOR] Can't be attached to HORC manager Refer to the command log(/HORCM/log/horcc_tXXXXXXXXXs.log) for details.
HORCM/log/horcc_tXXXXXXXXXs.log::::
COMMAND ERROR : EUserId for HORC : root (0) Tue Nov 9 09:16:00 2010
CMDLINE : pairdisplay -g pXXXXX_XXXXa
*********** SYSTEM ERROR ***********
P.P. : Raid Manager XP for HP-UX
Model : Raid-Manager-XP/HP-UX
Ver&Rev: 01.23.07
Release: Production
Host: tXXXXXXXXXs
EUserId: root (0)
Process: 7446
[System Call Error]
SysCall: bind
Errorno: 2 (No such file or directory)
ErrInfo: Internal Error
ErrTime: Tue Nov 9 09:16:00 2010
SrcFile: shorcmc.c
SrcLine: 669
09:16:01-1242b-07446- 7446:HORCM death detected
09:16:04-37277-07446- ERROR:cm_open[scmclcon() timeout_err]
09:16:04-388b2-07446- ERROR:horcm_lep_create
09:16:04-39f94-07446- [pairdisplay][exit(251)]
[EX_ATTHOR] Can't be attached to HORC manager
[Cause ]:Couldn't connect with the HORC manager.
[Action]:Please check if HORC manager is running or if HORCMINST is set correctly.
Does anyone have any idea what I need to do to get pairdisplay to run properly from the CRON job???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-09-2010 07:32 PM
тАО11-09-2010 07:32 PM
Re: Running pairdisplay in CRON
export HORCC_MRCF=
export HORCMINST=
it may help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 01:51 AM
тАО11-10-2010 01:51 AM
Re: Running pairdisplay in CRON
you should check this :
export HORCMINST=
export HORCC_MRCF=
of course the value is depend on your enviroment.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 01:53 AM
тАО11-10-2010 01:53 AM
Re: Running pairdisplay in CRON
example :
#!/bin/ksh
############### ShadowImage Daemon Check ##############
horc=`ps -ef | grep horcm | wc -l`
if [ $horc = 3 ]
then
echo "ShadowImage Daemon already started!!"
else
echo "ShadowImage Daemon Start!!"
/HORCM/usr/bin/horcmstart.sh 0 1
fi
############### ShadowImage Environment ###############
export HORCMINST=0
export HORCC_MRCF=1
#######################################################
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 05:48 AM
тАО11-10-2010 05:48 AM
Re: Running pairdisplay in CRON
The pairdisplay is outputting now when I run the job, but the status is showing the pairdisplay as "SMPL ----,----- ----- -" when they should be "P-VOL PAIR DATA ,11342 1041 -".
Any ideas?
Thanks so far for they help everyone...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2010 05:59 AM
тАО11-10-2010 05:59 AM
Re: Running pairdisplay in CRON
I commented out the "# export HORCC_MRCF=1" and it seems to work now. Thanks everyone so very much...