Kill an OpenVZ Container – e.g id 900 vzctl stop 900 Use –fast switch to kill the OpenVZ Container – crude non graceful vzctl stop 900 –fast Kill processes inside a OpenVZ Container ps ax | awk ‘{print $1}’ | xargs vzpid | grep 900 | awk ‘{print $1}’ | xargs kill -9 Commonly used […]
Author: wp_hr
ESXi Firewall Commands – ESXi Shell
You can configure the ESXi firewall at the command line. Firewall Configuration Using the ESXi Shell The vSphere Web Client graphical user interface provides the preferred means of performing many configuration tasks. However, you can use the ESXi Shell to configure ESXi at the command line. Firewall Commands Command Description esxcli network firewall get Returns […]
RHEL 7 – vpshere increase space on unpartioned disk (root or non-root) ext4 XFS
1. login to vpshere and expand disk to new space for the vm 2. echo the following command – change controller to match ; you can also reboot to see the changes echo “- – -” > /sys/class/scsi_host/host0/scan 3. login to VM – determine if filesystem mount is directly written to; if so you can […]
How to re-register cloned System on Red Hat Network Portal?
SOLUTION VERIFIED – Updated March 17 2014 at 9:56 PM – English Environment Red Hat Enterprise Linux v 6.3 RHN Classsic (Red Hat Network Classic) Certificate Based Registration (Red Hat Subscription Management) Issue How to re-register cloned System on Red Hat Network Portal? Resolution If cloned system is registered using RHN classic, then following steps […]
NMAP – scan for unused or down IP’s
nmap -v sn -n 192.168.3.0/23 -oG – | awk ‘/Status: Down/{print $2}’ -sn (No port scan) . This option tells Nmap not to do a port scan after host discovery, and only print out the available hosts that responded to the scan. This is often known as a “ping scan”, but you can also request […]
Solaris 10 – clean up the device tree after lun removal
Image Credits: Oracle Solaris. Cleaning up the Operating System device tree after removing LUNs – Solaris 10 example You must clean up the device tree after removing LUNs (e.g Netapp, EMC) . The OS commands may vary for Solaris versions. Be careful – this worked on Solaris 10 To clean up the device tree after […]