Administration and Deployment

Installing and maintaining your SAS environment
BookmarkSubscribeRSS Feed
sangeeta128
Fluorite | Level 6

I am using deployment manager to add certificates in truststore using the below command on linux which works fine.

./sasdm.sh -console

 

Now, I want to automate this process of adding latest certificates, so I'm trying to run it in quiet mode (with response file) which runs fine when I run the command manually on the server. However when I'm running the same command from a pipeline (ansible shell module), it gives error. Is there a way to run it without login to the terminal.

 

Command-

/opt/sas/bin/SASDeploymentManager/9.4/sasdm.sh -lang en -loglevel 2 -quiet -responsefile '/opt/sas/bin/SASDeploymentManager/9.4/sasadm_add_cert_root_reponse.txt' -templocation '/opt/sas/saswork/temp' -console

 

The error is -

Error: Your DISPLAY environmental variable has not been set.
Please set it and run this application again.

 

4 REPLIES 4
gwootton
SAS Super FREQ
This message is returned by sasdm.sh if it thinks quiet or console has not been set.
I would try modifying your command line such that these options are set first and see if that makes a difference: console, quiet, templocation
--
Greg Wootton | Principal Systems Technical Support Engineer
sangeeta128
Fluorite | Level 6

I tried this, still gives same error.

gwootton
SAS Super FREQ
My next guess would be that the issue is coming from how ansible is running the command, not passing the options as expected.
--
Greg Wootton | Principal Systems Technical Support Engineer
JuanS_OCS
Azurite | Level 17

I don't think quiet and console are compatible, when the first one is for executing with the responsefile, and the second one is for going through the wizard.

 

I would just select quiet, and perhaps I would add nosplash.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 528 views
  • 1 like
  • 3 in conversation