Posts

Showing posts from April, 2019

Install Oracle OSWatcher as Linux Service in RHEL/CentOS/OEL 7.x

Install Oracle OSWatcher as Linux Service in RHEL/CentOS/OEL 7.x: Download the OSWBB from Oracle Site: https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=301137.1:OSW_file For example download & keep the file at - /Downloads/oswbb812.tar Copy the OSWatcher binary to the host: cp /Downloads/oswbb812.tar /opt/ Extract the binary on host: cd /opt; tar -xvf oswbb812.tar make new log folder for OSWatcher: mkdir -p /var/log/oswbb Create OS Watcher Service Script as - /Downloads/oswatcher #!/bin/bash # # chkconfig: 2345 15 90 # description: Starts and stops the OSWatcher # # OSWBB_SRC_DIR=/opt/oswbb echo $OSWBB_SRC_DIR echo "******************************************************" >> $OSWBB_SRC_DIR/init_oswbb.log case $1 in 'start')         echo "...Starting OSWBB from init at `date` " >> $OSWBB_SRC_DIR/init_oswbb.log         cd $OSWBB_SRC_DIR; nohup ./OSWa...

Configure Proxy in Linux CLI Session

If your Proxy Servers requires you to import any Certificate, then copy it to /etc/pki/ca-trust/source/anchors/ & run update-ca-trust extract Now create a file with following content- http_proxy='http://username:password@proxyip:port' https_proxy='https://username:password@proxyip:port' ftp_proxy='ftp://username:password@proxyip:port' save it as "setproxyenv" or any suitable name. To invoke proxy settings on demand - run - source /path/to/setproxyenv To permanently use proxy in CLI save the proxy details in /etc/environment Create another file named "unsetproxyenv" with following content - export http_proxy="" export https_proxy="" export ftp_proxy="" To disable proxy settings on demand - run source /path/to/unsetproxyenv