Send Error signal to Boot server in oobecustom.cmd
search cancel

Send Error signal to Boot server in oobecustom.cmd

book

Article ID: 387619

calendar_today

Updated On:

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

In file C:\Program Files (x86)\CA\DSM\Server\SDBS\var\managedpc\images\<OSIMAGE>\<OSIMAGE>\oeminst\oobecustom.cmd there are following lines to send a success completion signal to boot server :

rem -- send signal completion
echo send signal completion to bootserver >> c:\calogfile.txt
c:\ca-osim\sdmpcimg -u "#MPCSIGNAL#MACAddress=$~MACAddress$#BMSConfigId=$BMSConfigId$#ClientIP=$~ClientIP$#Status=200 OK" c:\calogfile.txt $~ServerIP$ >> c:\calogfile.txt

But how to send an error signal ?

Environment

Client Automation - All Versions

Resolution

A status value different than 200 is considered as error.
 
So command like this report an error :
c:\ca-osim\sdmpcimg -u "#MPCSIGNAL#MACAddress=$~MACAddress$#BMSConfigId=$BMSConfigId$#ClientIP=$~ClientIP$#Status=300 NOK" c:\calogfile.txt $~ServerIP$ >> c:\calogfile.txt
 
A longer string text could also be sent.
Example : 
c:\ca-osim\sdmpcimg -u "#MPCSIGNAL#MACAddress=$~MACAddress$#BMSConfigId=$BMSConfigId$#ClientIP=$~ClientIP$#Status=300 Problem Test1 with long string text" c:\calogfile.txt $~ServerIP$ >> c:\calogfile.txt
 

Additional Information

In TRC_USD_MPCWORKER_*.log we could see this :

310125-20:07:38.2008175L|004868|00002fcc|sdmpcworke|sdmpcworker     |npc_tftp_session.cpp|000496|INFO   | Got a TFTP request from <IPADDR> on interface 0, opcode 2, filename #MPCSIGNAL#MACAddress=....#BMSConfigId=.....#ClientIP=<IPADDR>#Status=300 NOK, mode octet

310125-20:07:38.2009385L|004868|00002fcc|sdmpcworke|sdmpcworker     |sdmpcworker         |000000|INFO   | MPCTriggerStatusReportFromSignal:: will report "<Install_Status_Update><MACADDRESS>...</MACADDRESS><BMSConfigId>...</BMSConfigId><ClientIP>IPADDR</ClientIP><Status>300 NOK</Status></Install_Status_Update>"

310125-20:07:38.2009789L|004868|00002fcc|sdmpcworke|sdmpcworker     |sdmpcworker         |000000|INFO   | Successfully sent ManagedPC server install status update notification