# yum -y install vim-enhanced # vi /etc/profile # add at the last line alias vi=’vim’ # source /etc/profile # reload # cat .vimrc ” vimrc: Managed by puppet – DO NOT EDIT ” Changes manually to this file can, and will, be lostset nocompatibleif has(“syntax”) syntax on set background=dark endif if has(“autocmd”) au BufReadPost
REMARK – use *** puppet facts find <servername> –render-as yaml | grep sap_ora Make a custom fact (ruby code) that determins the Oracle version SAP is using. Under modules tree /modules/<module_name>/lib/oracleversion.rb Facter.add("sap_oracleversion") do confine :operatingsystem => 'SLES' if Facter.value(:sapprepsids) != nil setcode do result = "none" sapprep_sid = Facter.value(:sapprepsids) first_sid = sapprep_sid.to_s.split(',')[0] second_sid =
Usually with vagrant ssh <box> a connection to the box can be made via ssh. When putty is preferred as ssh client then this is possible, a vagrant plugin (vagrant-multi-putty) is available for this. just goto the command line and issue this command: vagrant plugin install vagrant-multi-putty Be sure that the putty binary can be
Based on this below one can setup a virtual development enviroment with vagrant, virtualbox and git. http://www.tjmaher.com/2016/05/setting-up-virtual-dev-environment-with.html This page describes how to do that on a computer with Windows 10. A. Download software: 1. https://git-scm.com/downloads/guis 2. https://www.vagrantup.com/downloads.html 3. https://www.virtualbox.org/wiki/Downloads B. Install software: 1. Install Virtualbox 2. Install Vagrant (reboot is recommended after installation) 3. Install
Hiera is nothing, but a key value look up tool, which can be ordered and organized nicely without meddling with the actual code. Just give hiera the data that your modules need, and you are ready to go. “Hiera makes your data separate from the module’s, so that the module code remains untouched. This helps
Especially in virtual environments (VMware) booting SLES VMs can cause issues. By the usage of many VMDKs and an unforeseeable boot order, the name of the boot device can change and the server will not boot ! Initial the entry in /etc/fstab looks like this: /dev/sda1 /boot ext3 acl,user_xattr 1 2 On the problematic servers
Linux has a command called tune2fs to check and configure File Systems, the option -l does list all the values of the File Sytem related parameters. To avoid issues with File Systems you can read out the value of Filesystem state , when it states clean all is ok but any other output needs action.
Many companies use a Central Loghost where syslogs from all servers are consolidated. If there is a need for example to check on certain entries it is no need to acces the individual servers, instead extract info from 1 centrel Logfile can do the trick. In case the is a Central Loghost then syslog info
A VM with SLES 11.4 (64bit) was installed a while ago, and is used as application server. Everything has been working properly for a while (~1 month), but as of a few days back, some filesystems (/ and /opt) have turned to read-only (!?). Pretty much every task fails, be it starting vi or even
Added menu stuff: http://stackoverflow.com/questions/1785474/get-index-of-current-item-in-powershell-loop http://blogs.technet.com/b/heyscriptingguy/archive/2008/06/02/hey-scripting-guy-how-can-i-use-leading-zeroes-when-displaying-a-value-in-windows-powershell.aspx https://www.novell.com/support/kb/doc.php?id=7002966 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2006865 +++++++++++++ POWERCLI SCRIPT +++++++++++++++ # Autor: AA # Datum: 05.10.15 get-cluster | select Name | sort $CLName = Read-Host “Type the exact name of the Cluster to be checked/set for disk.enableUUID” $vms=get-cluster $CLName | get-vm | where {$_.Guest.OSFullName -match “Linux*” } | sort name $vmscount=($vms).count echo ” ====================================================