Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …
Read the full story »
To make a Solaris disk bootable you need to install the boot block on the disk. This should be done, for example, after copying the primary boot disk to the secondary disk.
The following is a list of steps for basic configuration of Exceed to connect to Unix servers.
The following Korn shell script will make a bootable copy of the boot disk on a Solaris system. The script uses dd and requires that the source disk and destination disk have the same geometry.
The following is a brief overview of standard Unix comman-line utilities used for data backup on Solaris systems. Most of the information below is also applicable to other unixoid systems.
The following two commands will take all data in /home/neal, copy it to the ISO file, and burn the ISO file to a recordable CD.
This script uses the output of the script in the previous example to calculate yearly backup load for each Veritas NetBackup client.
The following script will calculate total size of data backups for each Veritas NetBackup client over the past week (or as defined by the “daysago” variable in the script). The final output will be uploaded …
In the following example we need to make sure that /export/home on server host2 looks exactly like /export/home on host1. Thus, our SOURCE is host1:/export/home and our TARGET is host2:/export/home
There are two ways of using …
If Exceed host selection window doesn’t come up or disappears after a few seconds, check the servers in the xdmcp.txt file for Exceed for a dead xdm process. Restart xdm by running /etc/rc3.d/S90xdm stop and …
A sample procedure for installing PHP, MySQL and Apache2 on Solaris 9.
A sample procedure for installing PHP, MySQL and Apache2 on Solaris 8.
The following Korn shell function connects to a MySQL database and extracts specified data, which is then plotted as a function of time using GNUPlot. Using correct syntax is critical. Note the use of single- …
The following Korn shell function will read the a directory containing CSV data files named server_sysstat.20051119.csv with format:
The following document explains how to change an unknown root password on a Solaris system. Use this only for disaster recovery purposes. Please be sure to read the Notes section below if you run into …
Resetting Local Administrator/User Passwords on Windows NT/2000/XP/2003
The following document explains how to change an unknown password for any local account (including Administrator) on a Windows NT/2000/XP/2003 system. Use this only for disaster recovery purposes.
Requirements:
1.Physical access …
awk/nawk [options] file scan for patterns in a file and process the results
cat [options] file concatenate (list) a file
cd [directory] change directory
chgrp [options] group file change the group of the file
chmod [options] file change file …
to move /opt on new partition (disk or file system)
1) from system prompt: format –> partition –> label
2) newfs -v /dev/dsk/c0t1d0s1 (target location)
3) mkdir /new_dir
4) mount /dev/dsk/c0t1d0s1 /new_dir
5) cd /new_dir
6) ufsdump 0f – /opt | …
In this example we use the tar command to copy the contents of the /export/home directory to /temphome. This particular syntax forgoes the creation of an actual tarball file. This can be useful if you …
Latest Comments