Virtual appliance vApp Alias commands cron tab or script sh
search cancel

Virtual appliance vApp Alias commands cron tab or script sh

book

Article ID: 265565

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Is there a way to find out where the aliases are located?

ex: stop_im , start_im & restart_im

https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/identity-suite/14-4/virtual-appliance/administering-virtual-appliance/using-the-login-shell.html

I am unable to use the find command (config user does not have permissions).  Need to setup a cron job in DEV env to stop and start the services.

Environment

Release : 14.4

Resolution

  the config user does not have access to these. you have to use shopt and source, here is an example of an SH script that I use in my lab:

#!/bin/bash

shopt -s expand_aliases
source /etc/profile.d/ca_vapp_profile.sh

#@echo on
#Echo stopping services
#@echo off

stop_ip
stop_ig
stop_im 
stop_jcs 
stop_ps 
stop_dxserver 
stop_oracle 

#@echo on
#Echo Starting services
#@echo off
start_oracle
start_dxserver
start_ps
start_jcs
start_im
start_ig
start_ip

 

#@echo on
#Echo complete
#@echo off