- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Connect direct
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
Forums
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
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
тАО03-22-2006 10:25 PM
тАО03-22-2006 10:25 PM
Connect direct
abc.sh contains
ndmcli -x << EOJ
submit maxdelay=0:01:0 proc1 process snode=$node
step1 copy from (file=$srcname snode) to (file=$destname)
pend ;
EOJ
Is there any way for me to get the msgid and process it in the shell script ?
Can any please help me in this concern ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 10:27 PM
тАО03-22-2006 10:27 PM
Re: Connect direct
ndmcli -x << EOJ
submit maxdelay=0:01:0 proc1 process snode=$node
step1 copy from (file=$srcname snode) to (file=$destname)
pend ;
EOJ
SAVE=$?
echo $SAVE
if [[ $SAVE > 0 ]]
then
echo "\n\n\nError: $SAVE"
in the script , But I need to get the message id. Please help me in this concern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 10:44 PM
тАО03-22-2006 10:44 PM
Re: Connect direct
That aside, the only two things that I can think of are these:
1. Look at the stdout and stderr of your job submission command. I think the msgid may be printed in there somewhere for you to grep.
2. If that doesn't work, then look at the latest CD/NDM log file for traces of your submission. You should be able to grep your pid, your task name, nodes, files etc and grep/cut out the msgid from that. Its dirty but possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 09:35 PM
тАО03-23-2006 09:35 PM
Re: Connect direct
#-----------------------------------------#
$CDTOP/bin/direct -x -e 4 <
submit maxdelay=unlimited
${PROCESS_NAME} process snode=$TARGET_NODE
paso01
copy from (file = $SOURCE_FILE $FORMAT_CD pnode)
ckpt=512K
compress extended
to (file = $TARGET_FILE disp=rpl snode)
pend;
quit;
FIN
RC=$?
if [ $RC -ne 0 ]
then
NUMPROCCD=`$GREP "Process Number =" ${MYLOGFILE} | awk -F"= " '{gsub(":","",$2);print $2}'`
$DIRECT << FIN2 >$STATFILE 2>&1
sel stat pnum=$NUMPROCCD pname=$PROCESS_NAME detail=yes ;
quit;
FIN2
$CAT $STATFILE | $AWK 'BEGIN{find=0;end=0;find2=0;} \
{ if ( $1 == "Completion" && $4 != 0 && find == 0 ) \
{ find=1;}; \
if ( find == 1 && $1 == "Message" && $2 == "Id" && end == 0 ) \
{ error=$4;end=1; }; \
if ( find == 1 && end == 1 && find2 == 0 && $1 == "Short" ) \
{ mensaje=$0; find2=1;}; \
}
END{print error, mensaje}' > $MSGERRORFILE 2>&1
fi
#-----------------------------------------#
The $MSGERRORFILE has the msgid and a short description of the error.
You can send it to IT Operation Console or another monitoring tools.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2006 08:18 PM
тАО12-06-2006 08:18 PM