June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories

June 2014
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

maximum-number-of-file-descriptors-rhel-centos

cat /proc/sys/fs/file-max 589420 The output tells us it is set to 589420. The vendor asked for this to be increased to 1639200. We can add change the value immediately by executing: # sysctl -w fs.file-max=1639200 To make this a permanent setting applied everytime the system reboots an edit of /etc/sysctl.conf file is required. Add: fs.file-max […]

Install vfabric-web-server & TcServer

mkdir tcserver cd tcserver/ wget -q -O – http://repo.vmware.com/pub/rhel6/vfabric/5.2/vfabric-5.2-suite-installer | sh

yum search vfabric

[root@cluster1 vfabric-web-server]# yum search vfabric Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.ipserverone.com * extras: centos.ipserverone.com * updates: centos.ipserverone.com ========================================================= N/S Matched: vfabric ========================================================= vfabric-5.2-repo.noarch : vFabric 5.2 repository configuration vfabric-administration-server.noarch : VMware vFabric Administration […]

LOG using Shell script

#!/bin/sh LOGFILE=/tmp/apache.log SCRIPT_DIR=~/bin

logmsg () { echo $(date): $1 >> $LOGFILE }

while read instance do if [ -x “${SCRIPT_DIR}/$instance” ] ; then logmsg “Recycle $instance…” “${SCRIPT_DIR}/$instance” start >> $LOGFILE 2>&1 else logmsg “Cannot find recycle script for $instance – not starting” fi done < “${SCRIPT_DIR}/active-servers” logmsg “Start script execution complete”

websphere restart script

#!/bin/ksh

BASENAME=`basename $0`

WAZZZ_HOME=/usr/WebSphere/AppServer JVVVM_BIN_DIR=$WAZZZ_HOME/profiles/node01/bin

die_usage() { echo “usage: $BASENAME: <jvm name> <timeout> <hard retries>” exit $1 }

[[ $# -eq 3 ]] || die_usage 111

JVVVM_NAME=$1 TIMEOUT=$2 HARD_RETRIES=$3

JVVVM_LOG_DIR=$WAZZZ_HOME/profiles/node01/logs/$JVVVM_NAME JVVVM_PID=

$JVVVM_BIN_DIR/serverStatus.sh -all | grep ” $JVVVM_NAME” | grep -v grep | grep -v $BASENAME > /dev/null 2>&1

if [[ $? -ne 0 ]] then […]

exit status code

How to check the exit status code

When a command finishes execution, it returns an exit code. The exit code is not displayed on the screen by default. To examine the exit code, you need to examine a special variable, “$?”

Say, you are searching for a string in a text file.

$ grep x1y2z3 […]

check if folder exists

Bash Script check if folder exists

This piece of snippet code below will check if a folder exists.

Linux OS that has NTFS driver installed, can easily to plug in and plug out NTFS formatted external drives.

Or look for ntfs-3g driver if NTFS is not supported.

And can easily be used by both Windows […]

determine my user account’s OU in a Windows domain?

How can I determine my user account’s OU in a Windows domain?

set objSysInfo = CreateObject(“ADSystemInfo”)

set objUser = GetObject(“LDAP://” & objSysInfo.UserName)

wscript.echo “DN: ” & objUser.distinguishedName

gpresult /r

gpresult -v|more

Centos 7 kickstart.cfg for cobbler

lang en_GB.UTF-8 keyboard us timezone Europe/Brussels –isUtc auth –useshadow –enablemd5 selinux –enforcing firewall –enabled –service=mdns xconfig –startxonboot part / –size 8192 –fstype ext4 services –enabled=NetworkManager –disabled=network,sshd # Root password rootpw –iscrypted $6$K2nKf02kVKG68960$OywvoaViphSITuro/liKvCj7Pm/CH/xqzz/lsoXyaKSR1lYf0vHAqSUc483a9MCCBkIwfr/hNMfqwxqVO0OEg1 repo –name=base –baseurl=http://ftp.redhat.com/redhat/rhel/rc/7/Client/x86_64/os/ %packages @base @core @fonts @gnome-desktop @input-methods @x11 #Live install tools anaconda system-config-keyboard grub2 firefox #Packages to remove for space […]

mount.nfs: rpc.statd is not running but is required for remote locking

I think i found the answer; even though chkconfig reported that “rpcbind” was setup to start in run level 3, for some reason it was not running. After this was started; I was able to mount the NFS share. # who -r run-level 3 2012-02-16 19:19 # chkconfig –list rpcbind rpcbind 0:off 1:off 2:on 3:on […]

Reasons ReFS

Resilient File System (ReFS) is a new file system introduced in Windows Server 2012. Initially, it is being targeted for implementation as a file system that is primarily used for file servers. However, starting as the file system for a file server is just the beginning. Like its predecessor, NTFS, ReFS will begin as a […]