Posts

Showing posts from October, 2017

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