Vethathiri Wallpaper


Vethathiri Maharishi - Wallpaper 1024 x 768

Putty screen freeze due to CTRL + S.


"Every time I accidentally press Ctrl + S in Putty when connected to any Solaris box via SSH, my session stops responding. How do I restore it?"

The reason:
Apparently CTRL+S actually does XOFF, which means the terminal will accept key strokes but won’t show the output of anything. It will appear as if your terminal is dead when it’s really just waiting to be turned back on. The fix? Simply press CTRL+Q to turn flow-control on (XON).

Important Note: All / Any keys you hit after hitting ctrl + s will be Buffered and Sent when you hit ctrl + q.
Warning: Don't send harmful commands. Because if you hit ENTER, it gets buffered too. All those commands WILL BE SENT and EXECUTED.

View the Control Characters in a file.


To find out the control characters in a file :

# cat -vet filename

-v       Non-printing  characters  (with  the  exception  of tabs,  new-lines  and form-feeds) are printed visibly. ASCII control characters (octal 000 - 037) are
              printed  as  ^n, where n is the corresponding ASCII character in the range octal 100 - 137 (@, A, B, C,. . ., X, Y, Z, [, \, ], ^, and _); the DEL character
(octal 0177) is printed ^?. Other non-printable characters are printed as M-x, where x is the ASCII character specified by the low-order seven bits.

-e       A $ character will be printed at the  end  of  each line (prior to the new-line).

-t       Tabs will be printed as ^I's and  formfeeds  to  be printed as ^L's.

return to previous directory


for Linux if u want to return to previous directory you can type.

$ cd -

this also works for Solaris, but if not working u can try this.
$ cd ~-

it's depends on your shell... 

awk ..


If you have a server with a lot of file systems on it. Then this little “awk” command can come in useful. It can obviously be used in many other situations also.

In this example, the disk group name is /homedg/.

bash-3.00$ grep homedg /etc/vfstab
/dev/vx/dsk/homedg/sanlogs      /dev/vx/rdsk/homedg/sanlogs     /var/log/sanlogs vxfs    1       yes     -
/dev/vx/dsk/homedg/common      /dev/vx/rdsk/homedg/common     /usr/local/common vxfs    2       yes     -
bash-3.00$

bash-3.00$ awk '/homedg/{print "mount -F "$4,$1,$3}' /etc/vfstab
mount -F vxfs /dev/vx/dsk/homedg/sanlogs /var/log/sanlogs
mount -F vxfs /dev/vx/dsk/homedg/common /usr/local/common
bash-3.00$

If you run it with piping it to 'sh', then it will execute the command. You can replace the 'mount' with whatever command you like.

Where is SAN_4.4.x software ( SAN Foundation Software) ?


To find Sun Storage SAN Foundation Software, log into http://support.oracle.com -> Select Patches  and Update -> Select Advance Search, type "10297699" Select and download.


 
Download Access
10297699 Sun StorEdge SAN 4.4.x (Patch) 4.4 Generic Platform (American English) General Sun Storage SAN Foundation Software  1+ year ago 39.7 MB Firmware, Software
Fetching Data...
1 Patch Selected  Read Me



# cd p10297699_440_Generic
# ls -l
total 81440
-rw-r--r--   1 nobody4  nogroup  22107233 Oct 19  2010 SAN_4.4.13_install_it.tar.Z
-rw-r--r--   1 nobody4  nogroup  11325492 Oct 19  2010 SAN_S9_4.4.14_install_it.tar.Z
-rw-r--r--   1 nobody4  nogroup  8149385 Oct 19  2010 SAN_S9_4.4.15_install_it.tar.bz2
-rw-r--r--   1 nobody4  nogroup     6034 Oct 19  2010 license_agreement1.html
-rw-r--r--   1 nobody4  nogroup      820 Oct 19  2010 read_me_install_it.txt
-rw-r--r--   1 nobody4  nogroup      150 Oct 19  2010 readme.html
#