ISG hangs after ctrl+d when using script feature of Management Center
search cancel

ISG hangs after ctrl+d when using script feature of Management Center

book

Article ID: 230202

calendar_today

Updated On:

Products

SSP-S410 PLATFORM Management Center Symantec

Issue/Introduction

When running a script from MC to ISG  where script content has an inline command that needs to be terminated by ${@decode 0x4}  (CTRL+D keyboard equivalent ),  script hangs.

 

Sample MC script that may cause hung on ISG:

conf t
ssl
inline ca-certificate my_company_root
-----BEGIN CERTIFICATE-----
<<<truncated for brevity>>
-----END CERTIFICATE-----
${@decode 0x4}
edit ccl browser-trusted add my_company_root
exit
exit

Environment

Management Center 

ISG

 

Cause

ISG may take some time processing the content of inline statement and does not respond quickly enough with an echo'ed end of marker comment after the ${@decode 0x4}  (ctrl+d) .  Any succeeding lines of script after the ${@decode 0x4}  that would be executed may cause the hung state on ISG processing the  rest of the scripts.

Resolution

MC introduce a pause command on a script that could be used to compensate a delay of ISG responding after the ${@decode 0x4}  (ctrl+d) 

Sample MC script with pause command:

conf t
ssl
inline ca-certificate my_company_root
-----BEGIN CERTIFICATE-----
<<<truncated for brevity>>
-----END CERTIFICATE-----
${@decode 0x4}
!- MC: pause
edit ccl browser-trusted add my_company_root
exit
exit