Archive for the ‘Tips’ Category
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
find command notes and examples
-------------------------------
find <where-to-look> <criteria< <what-to-do>
There are several options for matching criteria:
-atime n File was accessed n days ago
-mtime n File was modified n days ago
-size n File is n blocks big (a block is 512 bytes)
-type c Specifies file type: f=plain ...
Posted in Unix | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
cvs basics
----------
remote settings on client (for tcsh)
setenv CVSROOT ":ext:username@192.168.1.188:/usr/local/cvsroot" # <<path to cvsroot on remote server
setenv CVSEDITOR vi
setenv CVS_RSH ssh
-------------------------------------------------------------------
cvs import -m "comments" projectname CVS_VENDOR_TAG CVS_RELEASE_TAG
cvs checkout projectname
cvs update projectname
cvs commit -m " message" projectname
cvs release -d projectname
cvs status projectname
cvs log projectname
cvs checkout -r ...
Posted in Unix | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
An entry in cron is made up of a series of fields, much like the /etc/passwd
file is, but in the crontab they are separated by a space. There are normally
seven fields in one entry. The fields are:
minute hour dom month dow user cmd
minute This ...
Posted in Unix | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
extract third field separated by space
--------------------------------------
awk '{ print $3 }'
extract third field separated by tab
------------------------------------
awk -F'\t' '{ print $3 }'
extract lines where third field is "111" separated by tab
---------------------------------------------------------
awk -F'\t' '($3=="111")'
extract third field where the second field is "1957"
----------------------------------------------------
awk '($2=="1957") { print $3 }'
Posted in Unix | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
Volume Manager CLI examples:
---------------------------
display disk listings:
# vxdisk list
display volume manager object listings
# vxprint -ht
display free space in a disk group
# vxdg -g <diskgroup> free
list all volume manager tasks currently running on the system
# vxtask list
add a disk to Volume Manager ...
Posted in Veritas VM | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
To limit processes per user /etc/system set maxuprc = number
Posted in Solaris | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
If Solaris has been configured for 32 bit, the output of:
isainfo -v
will be:
32-bit sparc applications
----
If Solaris has been configured for 64 bit, the output of:
isainfo -v
will be:
64-bit sparcv9 applications
32-bit sparc applications
----
OR:
isainfo -b
will return either 32 or 64
Posted in Solaris | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
Change in the following files:
-----------------------------
/etc/hosts
/etc/netmasks
/etc/defaultrouter
/etc/hostname.(hme0) >> type of network card specific
/etc/nodename
/etc/net/*/hosts
/etc/passwd
-----------------------------
** rename the directory under /var/crash to match your new hostname **
&& type hostname to view hostname
&& type hostname <newhostname> to change name without reboot
To bind an IP address to a Network Interface Card ...
Posted in Solaris | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
To recover root password
1. Boot with Solaris 8 CD
2. ok> boot cdrom -sw
3. # csh
4. # setenv TERM sun or
5. # export TERM=sun or #export TERM=vt100
6. # mount /dev/dsk/c0t0d0s0 /a (for Ultra)
7. # vi /a/etc/shadow
(before modification)
...
Posted in Solaris | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
1) create /etc/hostname.<interfacename>:<n> containing the hostname of the virtual IP
example:
/etc/hostname.hme0:1
2) add the hostname and virtual IP to /etc/hosts
3) use the following commands to configure the interface:
ifconfig <interfacename>:<n> plumb
example:
ifconfig hme0:1 plumb
ifconfig <interfacename>:<n> <IP address> netmask <netmask> broadcast + up
...
Posted in Solaris | No Comments »