Daily Archives: August 27, 2009

Solaris: How to Reset a USB Device

If a USB device behaves erratically. Use the cfgadm command to reset the device, which logically removes and re-creates the device. 1. Become superuser. 2. Make sure that the device is not in use. 3. Reset the device. For example: … Continue reading

Posted in Uncategorized | Leave a comment

Linux: Configuring Heartbeat High Availability Cluster

This document shows how you can set up a two node, high-availability HTTP cluster with heartbeat on linux. Both nodes use the Apache web server to serve the same content. Pre-Configuration Requirements: 1. Assign hostname host01 to primary node with … Continue reading

Posted in Uncategorized | Leave a comment

Solaris: How to Verify Serial Port Settings

This procedure lets you verify the baud rate and other serial port settings used by the Sun Fire V490 server to communicate with attached serial port devices. You must be logged in to the Sun Fire V490 server, and the … Continue reading

Posted in Uncategorized | Leave a comment

Solaris: How to Get to the ok Prompt

Ways of Accessing the ok Prompt Access Method What to Do Graceful halt From a console window (dtterm, for example), issue an appropriate command (for example, the shutdown,init, halt, or uadmin command) as described in Solaris system administration documentation. Stop-A … Continue reading

Posted in Uncategorized | Leave a comment

Solaris: How to Access the System Console via tip Connection

The following procedure assumes you are connecting to the serial port (ttya) of the Sun Fire V490 system using a tip connection from serial port B (ttyb) of another Sun server, and that the other Sun server has its own … Continue reading

Posted in Uncategorized | Leave a comment

How to undelete any open, deleted file on linux / solaris

# uname -a SunOS cmsgcc 5.10 Generic_137137-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 # echo “Undelete any open file” > test.txt # tail -f test.txt & 25552 # Undelete any open file # rm test.txt # ls /proc/25552/fd 0 1 2 # cat … Continue reading

Posted in Uncategorized | Leave a comment

Unix: Cron format

minute (0-59), | hour (0-23), | | day of the month (1-31), | | | month of the year (1-12), | | | | day of the week (0-6 with 0=Sunday). | | | | | command 0 2 * … Continue reading

Posted in Uncategorized | Leave a comment