XEN Server Status Monitoring Command Cheat Sheet

in Categories CentOS, Debian Linux, Howto, Linux, Linux Virtualization, Monitoring, RedHat/Fedora Linux, xen last updated November 15, 2007

The xm command is the main command line interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices.

Please note that before running any one of the following command you must run xend ( Xen control daemon aka service) and must be run as privileged user. Running xm command as non root will return an error.

I hope following XEN status monitoring cheat sheet will save your time.
Continue reading “XEN Server Status Monitoring Command Cheat Sheet”

Domain Expiration Check Shell Script

in Categories Howto, Shell scripting, Tip of the day, Tips last updated August 31, 2017

I have already written a shell script to check/monitor domain renew / expiration date here. Now I have modified matty’s domain-check script to support additional C/TLDs .in, .biz, .org and .info domains. I’ve also added 5 seconds delay to avoid whois server rejecting the query. This script checks to see if a domain has expired. It can be run in interactive and batch mode and provides facilities to alarm if a domain is about to expire in advance.

Shell script to check / monitor domain renew / expiration date

in Categories Linux, Shell scripting, Suse Linux, Sys admin, Tips, Ubuntu Linux, UNIX last updated January 24, 2007

Update: Check out new improved domain-check script.

Forgetting to renew your domain name can happen to all of us. According to this post:
Reports are coming in from Germany that Google.de was down for many hours yesterday, and has now gone live again. We’re trying to confirm the reason, but it appears to be because Google forgot to renew the Google.de domain name..

I am going to share my little (read as dirty) shell script. It monitors and lists domain expiration date.

whois command line client for the whois directory service. It provides domain whois information. To find out nixcraft.com domain information you need to type:
$ whois nixcraft.com

Find domain expiration date

To get expiration date use grep command:
$ whois nixcraft.com | egrep -i 'Expiration|Expires on'

 Expiration Date: 10-may-2009
NOTICE: The expiration date displayed in this record is the date the
currently set to expire. This date does not necessarily reflect the expiration
view the registrar's reported date of expiration for this registration.
      Expires on: 10-May-09

Here is my script:

# Domain name list - add your domainname here
DOM="theos.in cricketnow.in nixcraft.com nixcraft.org nixcraft.biz nixcraft.net nixcraft.info cyberciti.biz cyberciti.org gite.in nixcraft.in"
for d in $DOM
  echo -n "$d - "
  whois $d | egrep -i 'Expiration|Expires on' | head -1
  # If you need list..
  # whois $d | egrep -i 'Expiration|Expires on' | head -1 >> /tmp/domain.date
  echo ""
# [ -f /tmp/domain.date ] && mail -s 'Domain renew / expiration date' you@yahoo.com < /tmp/domain.date || :


theos.in - Expiration Date:28-Oct-2007 13:01:58 UTC

cricketnow.in - Expiration Date:29-Jul-2008 09:17:56 UTC

nixcraft.com -    Expiration Date: 10-may-2009

nixcraft.org - Expiration Date:13-Aug-2007 14:58:30 UTC

nixcraft.biz - Domain Expiration Date:                      Fri Jun 01 23:59:59 GMT 2007

nixcraft.net -    Expiration Date: 11-dec-2007

nixcraft.info - Expiration Date:26-Jun-2007 11:05:13 UTC

cyberciti.biz - Domain Expiration Date:                      Tue Jun 30 23:59:59 GMT 2009

cyberciti.org - Expiration Date:25-May-2007 11:20:40 UTC

gite.in - Expiration Date:14-Sep-2007 06:47:36 UTC

nixcraft.in - Expiration Date:02-Feb-2008 05:33:08 UTC

Install a script and run on weekly / monthly basis via Linux/UNIX Cron facility.