Posts

cesi is a web interface provides manage many supervisors instance from same interface.

Image
cesi is a web interface provides manage many supervisors instance from same interface. #cesi ( Centralized Supervisor Interface ) cesi is a web interface provides manage supervizors from same interface. Dependencies Python Flask sqlite3 Enable inet_http_server in supervisord.conf in each server.         [inet_http_server]           port=*:9001                username=admin                    password=admin             Installation $sudo apt-get install sqlite3 python python-flask $git clone https://github.com/Gamegos/cesi $cd cesi $sqlite3 /opt/cesi//userinfo.db < userinfo.sql Configuration Fill cesi.conf #cp cesi.conf /etc/cesi.conf Run Project $python web.py First Login Please change password after first login! Username : admin Password : admin Screenshots ​ Make the cesi as service ​ ​ vi /etc/supervisor/conf.d/cesi.conf [program:cesi] command=/usr/bin/python /opt/cesi/cesi/web.py process_name=%(program_name)s user=root autostart=true autorestart=true redirect_stderr...

How to check yaml syntax

sudo yum install gem sudo gem install yaml-lint yaml-lint /etc/puppetlabs/code/environments/production/hieradata/ common.yaml Checking the content of ["/etc/puppetlabs/code/environments/production/hieradata/ common.yaml "] File : /etc/puppetlabs/code/environments/production/hieradata/ common.yaml , Syntax OK Done.

How do I find out what is using up all the space on my / partition?

In a linux instance. I run the df command and get: root@db:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 9.9G 9.1G 284M 98% / tmpfs 3.8G 0 3.8G 0% /lib/init/rw varrun 3.8G 116K 3.8G 1% /var/run varlock 3.8G 0 3.8G 0% /var/lock udev 3.8G 80K 3.8G 1% /dev tmpfs 3.8G 0 3.8G 0% /dev/shm /dev/sdb 414G 957M 392G 1% /mnt /dev/sdf 50G 12G 35G 26% /byp /dev/sdk 99G 31G 63G 33% /backups I then run the du command and get: root@db:/# du -s -h /* 31G /backups 5.5M /bin 136K /boot 12G /byp 80K /dev 5.8M /etc 12K /home 70M /lib 11M /lib32 0 /lib64 16K /lost+found 759M /mnt 4.0K /opt du: cannot access `/proc/6917/task/6917/fd/4': No such file or directory du: cannot access `/proc/6917/fd/4': No such file or directory ...

DataStage Oracle Connector showing The OCI function OraOCIEnvNlsCreate:OCI_UTF161D returned status = -1 in job log.

Technote (troubleshooting) Problem(Abstract) When running a DataStage job with an Oracle Connector stage - the following is seen in the job log. The OCI function OraOCIEnvNlsCreate:OCI_UTF161D returned status = -1 Resolving the problem Add the following environment variable in DataStage Administrator for the project to resolve this:  CC_ORA_NLS_LANG_ENV is set to TRUE

How to list all installed packages Ubuntu 14.04 and above

apt list --installed | grep packagename

What is a keytab, and how do I use one?

Introduction A keytab is a file containing pairs of  Kerberos  principals and encrypted keys (which are derived from the Kerberos password). You can use a keytab file to authenticate to various remote systems using Kerberos without entering a password. However, when you change your Kerberos password, you will need to recreate all your keytabs. Keytab files are commonly used to allow scripts to automatically authenticate using Kerberos, without requiring human interaction or access to password stored in a plain-text file. The script is then able to use the acquired credentials to access files stored on a remote system. Creating a keytab file You can create keytab files on any computer that has a Kerberos client installed. Keytab files are not bound to the systems on which they were created; you can create a keytab file on one computer and copy it for use on other computers. Following is an example of the keytab file creation process using MIT Kerberos: > ktutil ktutil: addent -...

Datastage Service or Job fails write error: No space left on device

Even though we have enough space for all the director for IBM IIS, We do get the error message "error: No space left on device" Try to find if this is an inodes problem with: df -ih Try to find root folders with large inodes count: for i in /*; do echo $i; find $i |wc -l; done Try to find specific folders: for i in /src/*; do echo $i; find $i |wc -l; done To clear the &PH& directory from within DataStage: Ensure there are no DataStage jobs running anywhere on the system by running "ps -ef | grep DSD" From the DataStage Administrator, go to the Projects page, select the project whose file you want to clear and click the Command button. The Command Interface dialog box opens. Type the following into the command field: CLEAR.FILE &PH& (all uppercase) Click Execute to run the command and clear the file.