Welcome to my page. I am not an avid writer, but i am trying. Here you will find some of the fine snippets i came across which i would like to revisit given a chance. Some of the technical troublshooting which i encountered, which i would like to maintain here as ready reckoner. Please feel free to go around my pages. Bouquets and Brickbats are welcomed. :-)
Thursday, May 07, 2009
Command to collect the HBA details on SUN
luxadm -e port
cfgadm -al
prtdiag -v
prtconf -pv grep -i wwn
Solaris 10 Use command.
fcinfo hba-port
Thursday, April 30, 2009
Send Mail from CronJob result mail to users other than root
0 1 * * 1-6 /location of script mutt -s "Daily Webex Report" email1@email.com,email2@email.com 2>&1
Friday, April 17, 2009
Automatic SFTP to server to get files - Using Expect
set DAY [exec date +%Y-%m-%d]
set timeout -1
spawn /usr/bin/sftp retheesh@3.212.44.46
#spawn sftp retheesh@3.212.44.46
expect "password:";
send "1\r";expect "
sftp>"send "lcd /home/retheesh/sftp/\r"
expect "sftp>"send "cd /home/retheesh/destination/\r"
expect "sftp>"send "mget *$DAY*.csv\r"
expect "sftp>"send "bye\r"
interact
ftp using Shell Script
#!/usr/bin/sh
#DAY=`date +%Y%m%d`
ftp -v -n "3.xxx.xxx.xxx" << cmd
user "anonymous" "test@test.com"
cd retheesh
lcd /root/Ironport/
bin
hash
get filename
quit
Wednesday, April 15, 2009
Monday, April 13, 2009
----------------------------------------------
rwcommunity commstring xxx.xxx.xxx.xxx
com2sec local localhost public
com2sec mon_server xxx.xxx.xxx.xxx commstring
##### Second, map the security names into group names:
group MyROSystem v2c mon_server
##### Third, create a view for us to let the groups have rights to:
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
##### Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access mon_server "" any noauth exact system none none
##CUSTOM OID
exec
exec
exec
service snmdp restart
To test the first,second and so on custom script response using snmpwalk client
snmpwalk -v2c -c commstring
snmpwalk -v2c -c commstring
snmpwalk -v2c -c commstring
To collect all the snmp OID parameters.
snmpwalk -v2c -c commstring
OID for HP servers can be found under file /opt/hp/hp-snmp-agents/mibs/cmaobjects.mibdef
Note: HP Proliant Support Pack should be installed.
======
Below given tips are from "http://agiletesting.blogspot.com/2005/10/mini-howto-2-system-monitoring-via.html" Thanks to the wonderful writeup
=====
Document sourced from http://www.debianadmin.com/linux-snmp-oids-for-cpumemory-and-disk-statistics.html
Thank you for sharing
Paritions can be monitored by making parition entries in the /etc/snmp/snmpd.conf file
disk /
disk /boot
disk /usr
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
For monitoring processes make entries in /etc/snmp/snmpd.conf
proc java
proc postmaster
proc mysqld
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
For Load Monitoring make following entires in /etc/snmp/snmp.conf file.
load 5 5 5
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
snmpwalk -v2c -c "xxxx"
For various CPU Utilisation Metrics use
snmpwalk -v2c -c "xxxx"
For various Memory Utilisation Metrics use
snmpwalk -v2c -c "xxxx"
This will list all the servers parameter and the OID details.
CPU
percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
raw user cpu time: .1.3.6.1.4.1.2021.11.50.0
percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0
raw system cpu time: .1.3.6.1.4.1.2021.11.52.0
percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0
raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0
raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0
Memory Statistics
Total Swap Size: .1.3.6.1.4.1.2021.4.3.0
Available Swap Space: .1.3.6.1.4.1.2021.4.4.0
Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0
Total RAM used: .1.3.6.1.4.1.2021.4.6.0
Total RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total RAM Shared: .1.3.6.1.4.1.2021.4.13.0
Total RAM Buffered: .1.3.6.1.4.1.2021.4.14.0
Total Cached Memory: .1.3.6.1.4.1.2021.4.15.0
Disk Statistics
The snmpd.conf needs to be edited. Add the following (assuming a machine with a single ‘/’ partition):
disk / 100000 (or)
includeAllDisks 10% for all partitions and disks
The OIDs are as follows
Path where the disk is mounted: .1.3.6.1.4.1.2021.9.1.2.1
Path of the device for the partition: .1.3.6.1.4.1.2021.9.1.3.1
Total size of the disk/partion (kBytes): .1.3.6.1.4.1.2021.9.1.6.1
Available space on the disk: .1.3.6.1.4.1.2021.9.1.7.1
Used space on the disk: .1.3.6.1.4.1.2021.9.1.8.1
Percentage of space used on disk: .1.3.6.1.4.1.2021.9.1.9.1
Percentage of inodes used on disk: .1.3.6.1.4.1.2021.9.1.10.1
System Uptime: .1.3.6.1.2.1.1.3.0
Examples
These Commands you need to run on the SNMP server
Get available disk space for / on the target host
#snmpget -v 1 -c “community” target_name_or_ip .1.3.6.1.4.1.2021.9.1.7.1
this will return available disk space for the first entry in the ‘disk’ section of snmpd.conf; replace 1 with n for the nth entry
Get the 1-minute system load on the target host
#snmpget -v 1 -c “community” target_name_or_ip .1.3.6.1.4.1.2021.10.1.3.1
Get the 5-minute system load on the target host
#snmpget -v 1 -c “community” target_name_or_ip .1.3.6.1.4.1.2021.10.1.3.2
Get the 15-minute system load on the target host
#snmpget -v 1 -c “community” target_name_or_ip .1.3.6.1.4.1.2021.10.1.3.3
Get amount of available swap space on the target host
#snmpget -v 1 -c “community” target_name_or_ip .1.3.6.1.4.1.2021.4.4.0
Monday, April 06, 2009
Tuesday, March 31, 2009
NTP Configuration file.
vi /etc/ntp.conf
restrict default nomodify notrap noquery
restrict 127.0.0.1
server (NTP Server IP/Name)
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
authenticate yes
restrict (NTP Server IP/Name)
Friday, January 09, 2009
Send SMS to mobile thru email.
subject - short subj.
short - message in body.
and send it away.
Monday, December 29, 2008
HPACUCLI commands
Smart Array 5i in Slot 0 ()
=> ctrl all show status
Smart Array 5i in Slot 0 Controller Status: OK Cache Status: OK
=> ctrl slot=0 show
Controller Smart Array 5i in Slot 0 Bus Interface: pci slot: 0 RAID 6 (ADG) status: False Controller Status: OK Chassis Slot: 1 Hardware Revision: Rev B Firmware Version: 2.58 Rebuild Priority: Low Expand Priority: Low Surface Scan Delay: 15 sec Cache Board Present: True Cache Status: OK Accelerator Ratio: 100/0 (read/write) Read Cache Size: 48 MB Write Cache Size: 0 MB Total Cache Size: 48 MB Battery Backed Cache Size: 0 MB Non Battery Backed Cache Size: 48 MB Battery Pack Count: 0
=> ctrl slot=0 array all show
Smart Array 5i in Slot 0 array A (Parallel SCSI, Unused Space: 0 MB)
=> ctrl slot=0 logicaldrive all show
Smart Array 5i in Slot 0
array A logicaldrive 1 (33.9 GB, 1+0, OK)
=> ctrl slot=0 physicaldrive all show
Smart Array 5i in Slot 0
array A physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK) physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)
---------------
/sbin/hplog -v will show all the Hardware alert logs regarding th HP Server
/sbin/hplog -t -- Display current thermal sensor data
/sbin/hplog -f Display current fan data
/sbin/hplog -p Display current power data
Thursday, August 28, 2008
Tuesday, August 26, 2008
Thursday, August 21, 2008
Friday, March 28, 2008
NetBackup Commands
--------------------------
more /usr/openv/netbackup/bin/version
Media Manager Version
-----------------------
more /usr/openv/volmgr/bin/version
Check the Status of the Tape Drive
----------------------------------
/usr/openv/volmgr/bin/tpconfig -d or -dl
/usr/openv/volmgr/bin/vmoprcmd -d
UP/Down the Tape Library.
-------------------------
/usr/openv/volmgr/bin/vmoprcmd -up 0 #--- UP
/usr/openv/volmgr/bin/vmoprcmd -down 0 #--Down
Check the NetBackup Services.
--------------------------------
/usr/openv/netbackup/bin/bpps -a
Stop / Start the NetBakcup Serivce
-----------------------------------
/usr/openv/netbackup/bin/goodies/K77netbackup #---Kill all the services.
/usr/openv/netbackup/bin/goodies/S77netbackup # ---- Start all the services
Run the Inventory Check on the Tape Library
---------------------------------------------
/usr/openv/volmgr/bin/vmcheckxxx -rt tld -rn 0
Update the Library content to the Scratch Pool (NetBackup)
------------------------------------------
/usr/openv/volmgr/bin/vmupdate -rt tld -rn 0
Netbackup Menu Window for Netbackup operations
-------------------------------------------------
/usr/openv/netbackup/bin/bpadm
Check the Available Media on the Backup server
--------------------------------------
/usr/openv/netbackup/bin/goodies/available_media #---------- From Catalogue
/usr/openv/volmgr/bin/vmquery -rn 0 -bx #-----------From Tape Library.
View the contents of the Tape
------------------------------
/usr/openv/netbackup/bin/admincmd/bpimmedia -L -mediaid R011L1
Expire the Media details from the Catalogue
-----------------------------------------
/usr/openv/netbackup/bin/admincmd/bpexpdate -d 0 -ev R011L1 -force
Delete the contents of a Media
-------------------------------------
/usr/openv/netbackup/bin/admincmd/bplabel -ev R011L1 -d dlt -p NetBackup
List all the Client Backup image List details.
------------------------------------------
/usr/openv/netbackup/bin/admincmd/bpimagelist -U
Freeze a Media
---------------
/usr/openv/netbackup/bin/admincmd/bpmedia -freeze -ev R013L1
Check the Backup Status
--------------------------
/usr/openv/netbackup/bin/admincmd/bpdbjobs -summary
/usr/openv/netbackup/bin/admincmd/bpdbjobs -report #------ Will give more exhaustive information.
Check all the Class files information on Master Server
----------------------------------------------------
/usr/openv/netbackup/bin/admincmd/bpcllist -allclasses -U
/usr/openv/netbackup/bin/admincmd/bpcllist adhoc-gejpfp1_root -U #---------- Individual Class file.
Set the Class file as Active/Inactive
-------------------------------------
/usr/openv/netbackup/bin/admincmd/bpclinfo adhoc-gejpfd1-6206323 -modify -active #-------- Set Active
/usr/openv/netbackup/bin/admincmd/bpclinfo adhoc-gejpfd1-6206323 -modify -inactive # -------- Set Inactive.
Check the Status of the Backup Status. (Get the Active Backup ID from bpdbjobs -report)
--------------------------------------
/usr/openv/netbackup/bin/admincmd/bperror -jobid 13860 -U #----- Take the Job ID from here.
tail -f /usr/openv/netbackup/db/jobs/13870.1206700777.t #------- File will show which file is getting written.
Check the Tape Library Cleaning Status
-------------------------------------
/usr/openv/volmgr/bin/tpclean -L
/usr/openv/netbackup/bin/goodies/cleanstats
Reset the Cleaning Status to Zero
--------------------------------
/usr/openv/volmgr/bin/tpclean -M Drive0
Add Tape to the Clean Tape pool (None)
---------------------------------------
/usr/openv/netbackup/bin/admincmd/bplabel -ev Q949L1 -d dlt_clean -p None
View Rule for Cleaning Tape
------------------------------
/usr/openv/volmgr/bin/vmrule -listall
Add/Remove rule for cleaning Tape.
-----------------------------------
/usr/openv/volmgr/bin/vmrule -add Q949L1 dlt2_clean None 25 "Cleaning Tape"
/usr/openv/volmgr/bin/vmrule -del Q949L1 dlt2_clean None 25 "Cleaning Tape"
Manually Clean the Tape Drive
-----------------------------
/usr/openv/volmgr/bin/tpclean -C Drive0
Thursday, December 20, 2007
Programs
while read myline;do echo $myline; done < inputfile
Tuesday, July 24, 2007
Introduce LMV drives to Linux OS
====================================
When lvm drives are introducted to a new operating system. They will not be detected logical volumes.
vgscan - Will detect all the available logical volumes and make necessary enteries in the lvm configuation.
# vgscan Reading all physical volumes. This may take a while... Found volume group "lvm_data3" using metadata type lvm2
Found volume group "lvm_data2" using metadata type lvm2
Found volume group "lvm_data1" using metadata type lvm2
# lvscan
inactive '/dev/lvm_data3/lvm_bkp' [271.00 GB] inherit
inactive '/dev/lvm_data2/lvm_stores' [169.00 GB] inherit
inactive '/dev/lvm_data1/lvm_redo' [60.00 GB] inherit
inactive '/dev/lvm_data1/lvm_log' [30.00 GB] inherit
inactive '/dev/lvm_data1/lvm_conf' [20.00 GB] inherit
inactive '/dev/lvm_data1/lvm_mysql' [50.00 GB] inherit
inactive '/dev/lvm_data1/lvm_index' [25.00 GB] inherit
inactive '/dev/lvm_data1/lvm_lgr' [35.00 GB] inherit
The devices are detected as inactive to make the devices active
vgchange -ay lvm_data3
vgchange -ay lvm_data2
vgchange -ay lvm_data1
lvscan will show all the drives as active.
#lvscan
ACTIVE '/dev/lvm_data3/lvm_bkp' [271.00 GB] inherit
ACTIVE '/dev/lvm_data2/lvm_stores' [169.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_redo' [60.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_log' [30.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_conf' [20.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_mysql' [50.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_index' [25.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_lgr' [35.00 GB] inherit
you should be able to mount the filesystem now
Friday, June 29, 2007
commands
2. List the hidden files in current directory ? - ls -a1 grep "^\."
3. Delete blank lines in a file ? - cat sample.txt grep -v ‘^$’ > new_sample.txt
4. Search for a sample string in particular files ? - grep “Debug” *.confHere grep uses the string “Debug” to search in all files with extension“.conf” under current directory.
5. Display the last newly appending lines of a file during appendingdata to the same file by some processes ? - tail –f Debug.logHere tail shows the newly appended data into Debug.log by some processes/user.
6. Display the Disk Usage of file sizes under each directory in currentDirectory ? - du -k * sort –nr (or) du –k . sort -nr
7. Change to a directory, which is having very long name ? - cd CDMA_3X_GEN*Here original directory name is – “CDMA_3X_GENERATION_DATA”.
8. Display the top most process utilizing most CPU ? - top –b 1
9. Set the Display automatically for the current new user ? - export DISPLAY=`eval ‘who am i cut -d"(" -f2 cut -d")" -f1′`Here in above command, see single quote, double quote, grave ascent is used. Observe carefully.
10. Display the processes, which are running under yourusername ? - ps –aef grep MaheshvjHere, Maheshvj is the username.
11. List some Hot Keys for bash shell ? - Ctrl+l – Clears the Screen. Ctrl+r – Does a search in previously given commands in shell. Ctrl+u - Clears the typing before the hotkey. Ctrl+a – Places cursor at the beginning of the command at shell. Ctrl+e – Places cursor at the end of the command at shell. Ctrl+d – Kills the shell. Ctrl+z – Places the currently running process into background.
12. Display the files in the directory by file size ? - ls –ltr sort –nr –k 5
13. How to save man pages to a file ? - man
14. How to know the date & time for – when script is executed ? - Add the following script line in shell script.eval echo "Script is executed at `date`" >> timeinfo.infHere, “timeinfo.inf” contains date & time details ie., when script is executed and history related to execution.
15. How do you find out drive statistics ? - iostat -E
16. Display disk usage in Kilobytes ? - du -k
17. Display top ten largest files/directories ? - du -sk * sort -nr head
18. How much space is used for users in kilobytes ? - quot -af
19. How to create null file ? - cat /dev/null > filename1
20. Access common commands quicker ? - ps -ef grep -i $@
21. Display the page size of memory ? - pagesize -a
22. Display Ethernet Address arp table ? - arp -a
23. Display the no.of active established connections to localhost ? - netstat -a grep EST
24. Display the state of interfaces used for TCP/IP traffice ? - netstat -i
25. Display the parent/child tree of a process ? - ptree
26. Show the working directory of a process ? - pwdx
27. Display the processes current open files ? - pfiles
28. Display the inter-process communication facility status ? - ipcs
29. Alternative for top command ? - prstat -a
30. Run grep for multiple strings? - grep "string1\string2"
31 search multiple strings on the same line egrep 'string1.*string2' filename
32. how to remove to values from using sed - sed 's/value1\value2//g'
Sed
----
change value in a file recursively and display ? - sed 's/oldvalue/newvalue/g' filename
2. sed -s '/startline/,/endline/p' filename -- This will collect all the lines between startline and endline including both startline and endline.
3. sed -n 5p
5. cat output| awk '{FS=" " ; $0=$0 ; print $NF"|"$0}' | sort -rn | cut -d"|" -f2 |head -15 -- Sort file based on the last field with irregular number of fields
5. From line
open("/lib64/librt.so.1", O_RDONLY) = 3
----------------
$sed -n 5p ls.output |sed 's/.*.1//g'
", O_RDONLY) = 3 # Will show everything after .1 from the above line
------------------
$sed -n 5p ls.output |sed 's/1.*//g'
open("/lib64/librt.so. # Will show everything before 1 as output
Good Link for SED - http://www.grymoire.com/Unix/Sed.html
find
----
Display the all files recursively - find . -depth -print
Search file recursively - find /home/david -name 'index*'
Search file recursively (Case insensitive) -find /home/david -iname 'index*'
find /mp3collection -name '*.mp3' -size -5000k
$ find / -size +10000k
ind /home/david -amin -10 -name '*.c'
$ find /home/david -atime -2 -name '*.c'
$ find /home/david -mmin -10 -name '*.c'
$ find /home/david -mtime -2 -name '*.c'
ind /mp3-collection -name 'Metal*' -and -size +10000k
$ find /mp3-collection -size +10000k ! -name "Metal*"
$ find /mp3-collection -name 'Metal*' -or -size +10000k
Cut
----
Cut output from the line to get all usernames from the file - Eg.filename.txt
/kolab/var/imapd/spool/domain/m/sample.domain/s/user/suresh/Calendar/1.
/kolab/var/imapd/spool/domain/m/sample.domain/s/user/sathish/Calendar/11.
cat filename.txt cut -d/ -f11
Explaination - This will set "/" as delimiter and gives field 11 - suresh and sathish as output
Command to extract contents from an RPM file
Command to view the contents of an RPM file
rpm -qpil /path/to/the/rpmfile
Wednesday, June 27, 2007
SysStat Installation & configuration
#rpm -qa grep -i sysstat
If sysstat is not installed install it
#rpm -ivh sysstat-5.0.5-5.rhel3.i386.rpm
Modify /etc/cron.d/systat :
# run system activity accounting tool every 1 minute i.e collect 2 sample/min with 30 sec interval.
*/1 * * * * root /usr/lib/sa/sa1 30 2
Note : Comment the existing entry which collects data every 10 min ( 1 sample/10 min) # */10 * * * * root /usr/lib/sa/sa1 1 1
Restart crond service.# service crond restart
To get CPU utilization information :
# sar -f /var/log/sa/sadd -u more
where dd represents day of the month.
To get memory utilization output :# sar -f /var/log/sa/sadd -r more
Where dd represents day of the month.
Wednesday, December 06, 2006
cool codes........
Open any of your fav site. paste this on the url location and hit enter
java-script:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images ; DIL=DI.length; function A(){for(i=0;
Monday, November 13, 2006
Telnet to pop3 and Smtp.
TELNET.
=======
Telnet - SMTP Commands (sending mail using telnet)
In order to access your mailbox you will need 3 things:
An active internet connection (an embarrasing stage to miss sometimes!)
The address of a mail server capable of relaying for you - usually provided by your dialup provider (e.g. mail.domain.ext)
A valid email address (e.g. mail@domain.ext)
The first thing to do is to open a connection from your computer to your mail server.
telnet mail.domain.ext 25
You should receive a reply like:
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date+time+gmtoffset?
You will then need to delcare where you are sending the email from:
HELO local.domain.name
Dont worry too much about your local domain name although you really should use your exact fully qualified domain name as seen by the outside world the mail server has no choice but to take your word for it as of RFC822-RFC1123.
This should give you:
250 mail.domain.ext Hello local.domain.name [loc.al.i.p], pleased to meet you
Now give your email address:
MAIL FROM: mail@domain.ext
Should yeild:
250 2.1.0 mail@domain.ext... Sender ok
If it doesn't please see possible problems.
Now give the recipients address:
RCPT TO: mail@otherdomain.ext
Should yeild:
250 2.1.0 mail@otherdomain.ext... Recipient ok
If it doesn't please see possible problems.
To start composing the message issue the command
DATA
If you want a subject for your email type Subject:-type subject here- then press enter twice (these are needed to conform to RFC 882)
You may now proceed to type the body of your message (e.g. hello mail@otherdomain.ext from mail@domain.ext)
To tell the mail server that you have completed the message enter a single "." on a line on it's own.
The mail server should reply with: 250 2.0.0 ???????? Message accepted for delivery
You can close the connection by issuing the QUIT command.
The mailserver should reply with something like:221 2.0.0 mail.domain.ext closing connection
Connection closed by foreign host.
Here are a list of problems I've encountered and their fixes
501 nouser@nosuchplace.here... Sender domain must exist
The domain that you are sending from must exist
503 Need MAIL before RCPT
A recipient has been specified before a sender.
550 mail@domain.ext... Relaying Denied
The mail server has refused to relay mail for you, this may be for any number of reasons but typical resons include:
Not using this provider for an internet connection and/or
Not using an email address provided by the owner of the server.
Some things to watch out for:
1. If you type too quickly, sometimes it won't recognise your text (weird!)
2. The backspace key sometimes does not work with some telnet clients (even though it may seem as though it does)
I'll be putting more as and when I get them and figure out how to fix each problem.
POP3
====
Telnet - POP Commands (retrieving mail using telnet)
In order to access your mailbox you will need 4 things:
An active internet connection (an embarrasing stage to miss sometimes!)
The address of your pop mail server (e.g. mail.domain.ext)
Your username (e.g. userName)
Your password (e.g. passW0rd)
The first thing to do is to open a connection from your computer to your mail server.
telnet mail.domain.ext 110You should receive a reply like:
Trying ???.???.???.???...
Connected to mail.domain.ext.
Escape character is '^]'.
+OK ready
Then log in:
USER userName
This should give you:
+OK Password required for userName.
Now give your password:
PASS passW0rd
Should yeild:
+OK userName has ? visible messages (? hidden) in ????? octets.
If it doesn't please see possible problems.
To see a list of your emails awaiting collection use the LIST command, this will also show you the id number of your messages (e.g. 1 or 2 etc.)
To view the contents of an email type RETR + the id number of the message (e.g RETR 1).
To delete a message use DELE + the id number of the message (e.g DELE 1).
To leave your mailbox and close the connection use QUIT
Here are a list of problems I've encountered and their fixes
-ERR [AUTH] Password supplied for "userName" is incorrect.
The password supplied was not the one expected by the server, retype the password, failing that find out if you've got the correct password.
-ERR [AUTH] PAM authentication failed for user "userName": Authentication failure (7)
Your mailbox could not be broken down into seperate emails correctly, there may be a remnant of a message left - Ask your ISP to edit the mailbox manually and look for free lines above the headers.
452 4.4.5 Insufficient disk space; try again later
The mailserver cannot write the temporary files needed to allow you to collect your mail - ask your ISP to check disk useage and allocation on the server
-ERR [SYS/TEMP] Unable to copy mail spool file, quota exceeded (122)
The mailserver cannot create a temporary file needed to allow you access to your mailbox as you've run out of your space allocation - Try to reduce the amount of disk space you are using on that server (this quota may be shared between your mail, web and userspace), alternatively contact your ISP to increase your quota.
-ERR [IN-USE] /???/???/.userName.pop lock busy! Is another session active? (11)
The mailbox is currently in use by another connection or an old connection has terminated uncleanly - This will deal with itself
Overquota locking file '/???/???/???/userName.lock'; lock proceeding anyway
Unable to process From lines (envelopes) in /???/???/???/userName; change recognition mode or check for corrupted mail drop.
The mailbox cannot be split into seperate messages because the pop server cannot recognise distinct boundaries or the boundaries do not include the whole mailbox
Some things to watch out for:
1. If you type too quickly, sometimes it won't recognise your text (weird!)
2. The backspace key sometimes does not work with some telnet clients (even though it may seem as though it does)
I'll be putting more as and when I get them and figure out how to fix each problem.
You can find the document on using this URL. http://www.yuki-onna.co.uk/email/
Monday, November 06, 2006
Retrieving Hardware Information on linux
If you need information on system's hardware like vendor, manufacturer, product, S/N, etc. you can use:
dmidecode
lshw
hwbrowser (graphical)
sysreport - Will collect all hardware information
The dmidecode command reads the information from the system BIOS, see also http://www.nongnu.org/dmidecode/.
There are a few other commands you might want to check out which list installed hardware components etc.:
lsdev
lshal
lspci
lsusb
lsscsi
Starting with the 2.6 kernel you can now get lots of information from /sys. For example, to get information on an Emulex HBA:
# ls /sys/class/scsi_host/host1/
board_mode lpfc_cr_delay lpfc_poll option_rom_version
board_online lpfc_drvr_version lpfc_poll_tmo portnum
cmd_per_lun lpfc_fcp_class lpfc_scan_down proc_name
ctlreg lpfc_fdmi_on lpfc_topology programtype
device lpfc_hba_queue_depth lpfc_use_adisc scan
fwrev lpfc_link_speed management_version serialnum
hdw lpfc_log_verbose mbox sg_tablesize
host_busy lpfc_lun_queue_depth modeldesc state
info lpfc_max_luns modelname uevent
lpfc_ack0 lpfc_multi_ring_support nport_evt_cnt unchecked_isa_dma
lpfc_cr_count lpfc_nodev_tmo num_discovered_ports unique_id
#
Friday, October 20, 2006
Nandhi Hills Trip - Photographs [Click Here]
Anand and Jayaprakash's treat....
Dated : 14th October 2006
Unix - VCS - VxFS - Shell commands - Many more tips [Click Here]
Tuesday, October 10, 2006
Cool lines...
# A clean tie attracts the soup of the day.
# A cigarette is a pinch of tobacco, wrapped in paper, fire at one end, fool at the other
# A baby sitter is a teenager acting like an adult while the adults are out acting like teenagers.
# A dog thinks: Hey, these people I live with feed me, love me, provide me with a nice warm, dry house, pet me, and take good care of me... They must be Gods!
A cat thinks: Hey, these people I live with feed me, love me, provide me with a nice warm, dry house, pet me, and take good care of me... I must be a God!
# A dream is just a dream. A goal is a dream with a plan and a deadline.
# A drop of ink may make a million think.
# A fair face may fade, but a beautiful soul last forever.
# A Dutchman was explaining the red, white, and blue Netherlands flag to an American.
"Our flag is symbolic of our taxes.
We get red when we talk about them, white when we get our tax bills, and blue after we pay them."
The American nodded. "It's the same in the USA only we see stars too!"
Tuesday, June 27, 2006
Linux Snippets.
http://www.pixelbeat.org/cmdline.html
http://www.felixgers.de/teaching/emacs/vi_search_replace.html
Vi: Search and Replace
Change to normal mode with
Search (Wraped around at end of file):
Search STRING forward : / STRING.
Search STRING backward: ? STRING.
Repeat search: n
Repeat search in opposite direction: N (SHIFT-n)
Replace: Same as with sed, Replace OLD with NEW:
First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines #,#: :#,#s/OLD/NEW/g
Command for commenting out N number of lines (N = number of lines) :.,+N s/^/#/g
-----------------------------------
awk and sed commands
file test.txt content is retheesh kumar R
to view kumar R use
#cat test.txtawk '{print $2 $3}'
or you can use sed command and remove retheesh
#cat test.txtsed 's/retheesh//'
this switches retheesh with blank //
vi +5 filename.txt # This will open the filename.txt with the cursor on the 5th line
=========================
Edit Multiple files at one go.
==========================
vi file1 file2 file3
Will open file1
:wnext to move to file2 by saving changes to file1
:next! to move to file2 without saving changes on file1
To move to previous file
:wprevious - To move to previous file by saving changes to the current.
:previous! - To move to pervious file without saving changes to the current
To see the list of file that is being edit and to know the current edite
:args
========================================
Viewing mulitple file on the same vim window
======================================
To split multiple files for easy editing. (Horizontal Split)
vim fileone #original file from the original file type
:split /path/to/filetwo # Another file
Will open up 2 different files you can toggle between both the files using CTRL + W
To save changes type
:wclose - Will save changes to the file
:close! - Will exit without any changes
To split multiple files for easy editing. (Vertical Split)
im fileone #original file from the original file type
:vsplit /path/to/filetwo # Another file
Will open up 2 different files you can toggle between both the files using CTRL + W
To save changes type
:wclose - Will save changes to the file
:close! - Will exit without any changes
================================
New file from existing vim window
===============================
Creat a new txt file from vi console
:new - Will create a new file for edition
Note while saving ensure to use :w filename to save the file
Command to manually set date on the redhat system.
#date -s "MM/DD/yyyy hh:mm:ss"
Example -
#date -s "03/17/2006 02:01:39"
-----------------------------------
For better graphical display during bootup and on command line mode edit grub and
add " rhgb quite vga=0x317"
eg: kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet vga=0x317
---------------------------------
Procedure to register and up2date your machine.
#cat /etc/redhat-release -----------> will show the redhat version you are using
up2date-nox --config
httpProxy
enableProxy Yes
#up2date-nox -l
This will connect to the server using the proxy details mentioned, and sent the server details to the rhn.redhat.com site. (tab systems).
#run the rpm -keyXXSSXXSSSS
execute command to start updating the packages to the latest
#up2date-nox -u -----------> will start updating all the packages with the latest packages available on redhat site.
Using up2date command to update kernel.
Note: Kernel update will not actually upgrade the kernel but install a new version of kernel and make relevent entries on the /etc/grub.conf file and set the boot parameter to boot with the new kernel.
#up2date-nox -f kernel -----------> either enter kernel* or manually give all the kernel-smp, kernel-Highmem etc to install.
#cat /etc/redhat-release -----------> will show the updated redhat version
--------------------------------------
mke2fs -j -b 4096 /
Saturday, June 24, 2006
bonding network card on linux.
alias bond0 bonding
options bond0 miimon=100 mode=1
--------------------------------------
2. lsmod should detect module.
bonding 25220 1
-------------------------------------
3. cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
BROADCAST=3.159.19.255
IPADDR=3.159.17.80
NETMASK=255.255.252.0
NETWORK=3.159.16.0
ONBOOT=yes
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=no
cat /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
BOOTPROTO=static
ONBOOT=yes
TYPE=Ethernet
MASTER=bond0
SLAVE=yes
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
cat /etc/sysconfig/network-scripts/ifcfg-eth3
DEVICE=eth3
BOOTPROTO=static
TYPE=Ethernet
ONBOOT=no
==========================================
Wednesday, June 21, 2006
Enable full duplex and disabling autonegotiation for nic cards,
Add the following line in
/etc/sysconfig/network-scripts/ifconfig-eth0 &
/etc/sysconfig/network-scripts/ifconfig-eth2
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
Restart network service
#service network restart
This will set network settings to full duplex, Speed: 100Mb/s & auto-negotiation: No
Run following commands to confirm network settings
#ethtool eth0
#ethtool eth1
Saturday, June 10, 2006
Words.. The ever Lasting Words.
To think is to speak low; to speak is to think aloud.
--Max Muller
It is with words as with sunbeams, the more they are condensed, the deeper they burn.
--Southey
Words are things; and a small drop of ink, falling like dew upon a
thought, produces that which makes thousands, perhaps millions, think.
--Byron
Friday, June 09, 2006
Sunday, June 04, 2006
Walk down by the River.
Sun shined far away, painting the sky with enchanting colours adding a tinge pigment of red to everything the eye could set upon. The early winter sun feels like the comfort of a warm blanket on a chill winter night.
The giant rocks by the bank of the river project out of flowing water, creating ripples and belting out the soul filling melody. The greater rock beneath that braved for centureis the fury of the river, yet stands tall smiling like a buddha bringing scenerity to the surrounding.
New leaves of the season sprout the bare branches, soft and subtle, colours so vibrant that tempt to fondle them, the morning mist droplets wet the tender green grass blades, the droplets on them sparkle like a sprawling diamond field all around waiting to be picked up.
The early wind carrying the scent of the nilgiries and the music of the nature, with it moisture of the river and the wetness of mist,caresing the body bringing it alive with glee,
God said "Adam & Eve, Wasn't this, what i left you as world" ;-)
Saturday, May 27, 2006
Booting stops at GRUB
Problem:
Rebooted the machine. Machine boots up after the BIOS checks, when the sytem needs to boot up from the MBR. It says the work "GRUB" and stops there.
Solution:
As i was not able to load the MBR, could not load to the single user mode. Booted up the machine using the 1st Installation disk. Followed the normal resuce mode parameters. Set the partition /boot to read/write using command
"#mount -o loop rw /dev/hdx /boot"
"#cat /etc/grub.conf" below entry shows in which drive is the MBR Loaded.
#boot=/dev/hda
ran "#grub-install /dev/hda" to reinstall the grub configuration files. It was taking a very long time, and after sometime i failed.
ran "#grub-install --recheck" This command will take quite sometime to run but finally it checks the device.map file and correct if any error. Rebooted the machine and Violaaaaaa my linux was alive and kicking...:)
Refered http://docs.redhat.com for help.
Friday, May 26, 2006
Monday, April 24, 2006
Linux - Info......
#file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
==========================================================
In apache u can configure to know the apaches cpu usage, memory, hits etc and the apache configuration i.e., modules loaded and configured for apache by editing the following entries.
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
SetHandler server-status
Order deny,allow
Deny from all
Allow from x.x.x.x
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
SetHandler server-info
Order deny,allow
Deny from all
Allow from x.x.x.x
System Performance checking utilities in linux.
free(1) man page - Displays free and used memory statistics.
top(1) man page - Displays CPU utilization and process-level statistics.
watch(1) man page - Periodically executes the specified program, displaying fullscreen output.
GNOME System Monitor Help menu entry - Graphically displays process, CPU, memory, and
disk space utilization statistics.
vmstat(8) man page - Displays a concise overview of process, memory, swap, I/O, system, and
CPU utilization.
iostat(1) man page - Displays CPU and I/O statistics.
mpstat(1) man page - Displays individual CPU statistics on multiprocessor systems.
sadc(8) man page - Collects system utilization data.
sa1(8) man page - A script that runs sadc periodically.
sar(1) man page - Produces system resource utilization reports.
sa2(8) man page - Produces daily system resource utilization report files.
nice(1) man page - Changes process scheduling priority.
oprofile(1) man page - Profiles system performance.
op_visualise(1) man page - Graphically displays OProfile data.
Thursday, January 05, 2006
Driving in Bangalore / India
For the benefit of every Tom, Dick and Harry visiting India and daring to drive on Indian roads, I am offering a few hints for survival. They are applicable to every place in India except Bihar, where life outside a vehicle is only marginally safer.
Indian road rules broadly operate within the domain of karma where you do your best, and leave the results to your insurance company. The hints are as follows: Do we drive on the left or right of the road? The answer is "both". Basically you start on the left of the road, unless it is occupied. In that case, go to the right, unless that is also occupied. Then proceed by occupying the next available gap, as in chess. Just trust your instincts, ascertain the direction, and proceed. Adherence to road rules leads to much misery and occasional fatality. Most drivers don't drive, but just aim their vehicles in the generally intended direction.
Don't you get discouraged or underestimate yourself except for a belief in reincarnation; the other drivers are not in any better position. Don't stop at pedestrian crossings just because some fool wants to cross the road. You may do so only if you enjoy being bumped in the back.
Pedestrians have been strictly instructed to cross only when traffic is moving slowly or has come to a dead stop because some minister is in town. Still some idiot may try to wade across, but then, let us not talk ill of the dead.
Blowing your horn is not a sign of protest as in some countries. We horn to express joy, resentment, frustration, romance and bare lust (two brisk blasts),or just mobilize a dozing cow in the middle of the bazaar. Keep informative books in the glove compartment. You may read them during traffic jams, while awaiting the chief minister's motorcade, or waiting for the rainwater to recede when over ground traffic meets underground drainage.
Occasionally you might see what looks like a UFO with blinking colored lights and weird sounds emanating from within. This is an illuminated bus, full of happy pilgrims singing bhajans. These pilgrims go at breakneck speed, seeking contact with the Almighty,often meeting with success.
Auto Rickshaw (Baby Taxi): The result of a collision between a rickshaw and an automobile, this three-wheeled vehicle works on an external combustion engine that runs on a mixture of kerosene oil and creosote. This triangular vehicle carries iron rods, gas cylinders or passengers three times its weight and dimension, at an unspecified fare. After careful geometric calculations, children are folded and packed into these auto rickshaws until some children in the periphery are not in contact with the vehicle at all. Then their school bags are pushed into the microscopic gaps all round so those minor collisions with other vehicles on the road cause no permanent damage. Of course, the peripheral children are charged half the fare and also learn Newton's laws of motion enroute to school. Auto-rickshaw drivers follow the road rules depicted in the film Ben Hur, and are licensed to irritate.
Mopeds: The moped looks like an oil tin on wheels and makes noise like an electric shaver. It runs 30 miles on a teaspoon of petrol and travels at break-bottom speed. As the sides of the road are too rough for a ride, the moped drivers tend to drive in the middle of the road; they would rather drive under heavier vehicles instead of around them and are often moppedoff the tarmac.
Leaning Tower of Passes: Most bus passengers are given free passes and during rush hours, there is absolute mayhem. There are passengers hanging off other passengers, who in turn hang off the railings and the overloaded bus leans dangerously, defying laws of gravity but obeying laws of surface tension. As drivers get paid for overload (so many Rupees per kg of passenger), no questions are ever asked. Steer clear of these buses by a width of three passengers.
Occasionally you might see what looks like a UFO with blinking colored lights and weird sounds emanating from within. This is an illuminated bus, full of happy pilgrims singing bhajans. These pilgrims go at breakneck speed, seeking contact with the Almighty,often meeting with success.
Auto Rickshaw (Baby Taxi): The result of a collision between a rickshaw and an automobile, this three-wheeled vehicle works on an external combustion engine that runs on a mixture of kerosene oil and creosote. This triangular vehicle carries iron rods, gas cylinders or passengers three times its weight and dimension, at an unspecified fare. After careful geometric calculations, children are folded and packed into these auto rickshaws until some children in the periphery are not in contact with the vehicle at all. Then their school bags are pushed into the microscopic gaps all round so those minor collisions with other vehicles on the road cause no permanent damage. Of course, the peripheral children are charged half the fare and also learn Newton's laws of motion enroute to school. Auto-rickshaw drivers follow the road rules depicted in the film Ben Hur, and are licensed to irritate.
Mopeds: The moped looks like an oil tin on wheels and makes noise like an electric shaver. It runs 30 miles on a teaspoon of petrol and travels at break-bottom speed. As the sides of the road are too rough for a ride, the moped drivers tend to drive in the middle of the road; they would rather drive under heavier vehicles instead of around them and are often "mopped" off the tarmac.
Leaning Tower of Passes: Most bus passengers are given free passes and during rush hours, there is absolute mayhem. There are passengers hanging off other passengers, who in turn hang off the railings and the overloaded bus leans dangerously, defying laws of gravity but obeying laws of surface tension. As drivers get paid for overload (so many Rupees per kg of passenger), no questions are ever asked. Steer clear of these buses by a width of three passengers.
One-way Street: These boards are put up by traffic people to add jest in their otherwise drab lives. Don't stick to the literal meaning and proceed in one direction. In metaphysical terms, it means that you cannot proceed in two directions at once. So drive as you like, in nreverse throughout, if you are the fussy type. Least I sound hypercritical, I must add a positive point also. Rash and fast driving in residential areas has been prevented by providing a "speed breaker"; two for each house. This mound, incidentally, covers the water and drainage pipes for that residence and is left untarred for easy identification by the corporation authorities, should they want to recover the pipe for year-end accounting. Night driving on Indian roads can be an exhilarating experience for those with the mental make up of Genghis Khan. In a way, it is like playing Russian roulette, because you do not know who amongst the drivers is loaded. What looks like premature dawn on the horizon turns out to be a truck attempting a speed record. On encountering it, just pull partly into the field adjoining the road until the phenomenon passes.Our roads do not have shoulders, but occasional boulders. Do not blink your lights expecting reciprocation. The only dim thing in the truck is the driver, and with the peg of illicit arrack (alcohol) he has had at the last stop, his total cerebral functions add up to little more than a naught. Truck drivers are the James Bonds of India, and are licensed to kill. Often you may encounter a single powerful beam of light about six feet above the ground. This is not a super motorbike, but a truck approaching you with a single light on, usually the left one. It could be the right one, but never get too close to investigate. You may prove your point
One-way Street: These boards are put up by traffic people to add jest in their otherwise drab lives. Don't stick to the literal meaning and proceed in one direction. In metaphysical terms, it means that you cannot proceed in two directions at once. So drive as you like, in reverse throughout, if you are the fussy type. Least I sound hypercritical, I must add a positive point also. Rash and fast driving in residential areas has been prevented by providing a "speed breaker"; two for each house. This mound, incidentally, covers the water and drainage pipes for that residence and is left untarred for easy identification by the corporation authorities, should they want to recover the pipe for year-end accounting.
Night driving on Indian roads can be an exhilarating experience for those with the mental make up of Genghis Khan. In a way, it is like playing Russian roulette, because you do not know who amongst the drivers is loaded. What looks like premature dawn on the horizon turns out to be a truck attempting a speed record. On encountering it, just pull partly into the field adjoining the road until the phenomenon passes.
Our roads do not have shoulders, but occasional boulders. Do not blink your lights expecting reciprocation. The only dim thing in the truck is the driver, and with the peg of illicit arrack (alcohol) he has had at the last stop, his total cerebral functions add up to little more than a naught. Truck drivers are the James Bonds of India, and are licensed to kill. Often you may encounter a single powerful beam of light about six feet above the ground. This is not a super motorbike, but a truck approaching you with a single light on, usually the left one. It could be the right one, but never get too close to investigate. You may prove your point
Monday, December 12, 2005
Bound by belief...
I saw a trainer near by and asked why these beautiful, magnificent animals just stood there and made no attempt to get away. "Well," he said, "when they are very young and much smaller we use the same size rope to tie them and, at that age, it's enough to hold them. As they grow up, they are conditioned to believe they cannot break away.
They believe the rope can still hold them, so they never try to break free." I was amazed. These animals could at any time break free from their bonds but because they believed they couldn't, they were stuck right where they were.
Like the elephants, how many of us go through life hanging onto a belief that we cannot do something, simply because we failed at it once before?Tuesday, October 11, 2005
Feeling lucky... hit more Calvin and Hobbes....
- Calvin: Want to play a great game I invented? It's called 'Gross Out'. You say the grossiest thing you can imagine, and then I try to think of something even grosser. Whoever comes up with the grossest thing gets a point, and we play until someone gets 50 points, ok?
Hobbes: I think I alreay know who's going to win.
Calvin: It's wierd nobody has ever played a full game with me. - Calvin: Oh, like I'm going to learn about bats and THEN write a report? Give me a break!
Calvin: Bats are bugs.
Hobbes; All we have is one 'fact' you made up.
Calvin: Besides, I've got a secret weapon that will GUARANTEE me a good grade! No teacher can resist THIS! A clear plastic binder! Pretty professional looking, eh?
Hobbes: I don't want co-author credit on this, OK? (Hobbes' statement) - Hobbes: Miserable Miscreant! Question my integrity, will you?
Calvin: I can't question it until I see some EVIDENCE of it!
You'll never make it till christmas. Give up now and enjoy yourslef. (Hobbes to Calvin on his efforts of being good) - Safety check on sled:
Seat belts? None.
Signals? None.
Brakes? None.
Steering? None. - Calvin: See, the box is on its side now. It's a duplicator!
Hobbes: I can picture the look on your parents' face when they find out they've suddenly had twins.
Calvin: Brother! you doubting thomases get in the way of more scientific advances with your stupid ethical questions! This is a BRILLIANT idea. Hit the button, will ya?
Hobbes: I'd hate to be accused of inhibiting scientific progress... here you go. BOINK (Scientific progress goes 'BOINK'? - No. 2: Number three, Hi! I'm number two!
No. 3: Charmed. - Hobbes: duplicator is a big success.
A Duplicate: Are you kidding? It burned out after the fifth one of us! - Calvin: Who gets the bed tonite?
Duplicates: we'll fight you for it.
Calvin: Geez, you guys! Even I don't get sent to the principal every DAY! You're making me look bad!
I'm being framed by my own doubles! The worst part is that I don't even have the fun of doing the stuff I'm being blamed for. - Bullet Tracer: My buddies travel light and they're fun to have around. One travels in a holster, and the other in a hip flask.
- Hobbes/Calvin: Truce?
Calvin/Hobbes: Truce. - Calvin: I don't DO math any more. I decided I'm more of a 'visual' person.
Dad: Good. Visualize being the only 45-year-old in first grade. - Dad: The theory of relativity works only if you're going west.
- Calvin: Oh no! I am in COOTIE CENTRAL. I haven't had my shots.
Susie: Relax. Stupidity produces antibodies. - Calvin: I don't WANT to learn teamwork! I don't WANT to learn about winning and losing! Heck, I don't even want to COMPETE! What's wrong with just having fun by yourself, huh?!
Dad: when u grow up, it's not allowed.
Calvin: All the more reason I should do it NOW! - Clavin: Hey Hobbes, What's a 'Paper Tiger'?
Hobbes: Its like a paper boy. You know, a tiger with a newspaper route. - Dad: I just KNOW some nurse switched the bassinets.
- Hobbes: I have a question. Why don't we get younger as we go back in time and disappear as we pass the day we were born?
Calvin: I'd explain it, but there's a lot of math.
Hobbes: I thought you got a 'D' in math.
Calvin & Hobbes.
I like maxims that don't encourage behavior modification.
Reality continues to ruin my life.
Weekends don't count unless you spend them doing something completely pointless.
A little rudeness and disrespect can elevate a meaningless interaction to a battle of wills and add drama to an otherwise dull day.
It's psychosomatic. You need a lobotomy. I'll get a saw.
I understand my tests are popular reading in the teachers' lounge.
Life's disappointments are harder to take when you don't know any swear words.
Where do we keep all our chainsaws, Mom?
# CALVIN
That's the difference between me and the rest of the world! Happiness isn't good enough for me! I demand euphoria!
In my opinion, we don't devote nearly enough scientific research to finding a cure for jerks.
You know, Hobbes, some days even my lucky rocketship underpants don't help.
Its no use! Everybody gets good enemies except me.
What's the point of wearing your favorite rocketship underpants if nobody ever asks to see 'em?
As a math atheist, I should be excused from this.
This one's tricky. You have to use imaginary numbers, like eleventeen ...
I'm learning real skills that I can apply throughout the rest of my life ... Procrastinating and rationalizing.
I have a hammer! I can put things together! I can knock things apart! I can alter my environment at will and make an incredible din all the while! Ah, it's great to be male!
I'm not dumb. I just have a command of thoroughly useless information
~
"Do you believe in the devil? You know, a supreme evil being dedicated to the temptation, corruption, and destruction of man?"
"I'm not sure that man needs the help."
~
Calvin: I'm a genius, but I'm a misunderstood genius.
Hobbes: What's misunderstood about you?
Calvin: Nobody thinks I'm a genius.
~
Calvin : You can't just turn on creativity like a faucet. You have to be in the right mood.
Hobbes : What mood is that?
Calvin : Last-minute panic.
~
"Why isn't my life like a situation comedy? Why don't I have a bunch of friends with nothing better to do but drop by and instigate wacky adventures? Why aren't my conversations peppered with spontaneous witticisms? Why don't my friends demonstrate heartfelt concern for my well being when I have problems? ...I gotta get my life some writers."
~
"I'm a simple man, Hobbes."
"You?? Yesterday you wanted a nuclear powered car that could turn into a jet with laser-guided heat-seeking missiles!"
"I'm a simple man with complex tastes."
~
"See Any UFOs?"
"Not yet."
"Well, keep your eyes open, they're bound to land here sometime."
"What will we do when they come?"
"See if we can sell mom and dad into slavery for a star cruiser"
~
"My powerful brain has come up with a topic for my paper"
"Great"
"I'll write about the debate over Tyrannosaurs. Were they fearsome predators or disgusting scavengers?"
"Which side will you defend?"
"Oh, I believe they weer fearsome predators, definitely."
"How come?"
"They're *so* much cooler that way"
~
"I'm not going to so my maths homework. Look at these unsolved problems. Here's a number in mortal combat with another. One of them is going to get subtracted. But why? What will be left of him? If I answered these, it would kill the suspense. It would resolve the conflict and turn intriguing possibilities into boring old facts."
"I never really thought about the literary possibilities of maths."
"I prefer to savour the mystery."
~
Susie: You'd get a good grade without doing any work.
Calvin: So?
Susie: It's wrong to get rewards you haven't earned.
Calvin: I've never heard of anyone who couldn't live with that.
~
"Bad news Dad. Your polls are way down."
"My polls?"
"You rate especialy low among tigers and six year old white males."
~
"Mom's not feeling well. So I'm making her a get well card."
"That's thoughtful of you."
"See, on the front it says, 'Get Well Soon' ... and on the inside it says,'Because me bed isn't made, my clothes need to be put away and I'm hungry. Love Calvin.' Want to sign it?"
"Sure, I'm hungry too"
~
H : "What do you think is the secret to happiness? Is it money, power or fame?"
C : "I'd choose money. If you have enough money, you can buy fame and power. That way you'r have it all and be really happy. Happiness is being famous for your financial ability to indulge in every kind of excess."
H : "I suppose thats *one* way to define it."
C : "The part I think I'd like best is crushing people who get in my way."
~
Dear Santa. Why is your operation located at the North Pole? I'm guessing cheap elf labour, lower environmental standards, and tax breaks. Is this really the example you want to set for us impressionable kids? ...My plan is to put him on the defensive before he considers how good I've been.
~
"MOM, CAN I SET FIRE TO MY BED MATTRESS?"
"No, Calvin."
"CAN I RIDE MY TRICYCLE ON THE ROOF?"
"No, Calvin."
"Then can I have a cookie?"
"No, Calvin."
"She's on to me."
~
"What state do you live in?"
"Denial."
"Um...ok."
"As the wage earner here, its your responsibility to show some consumer confidence and start buying things that will get the economy going and create profits and employment. Here's a list of some big-ticket items I'd like for Christmas. I hope I can trust you to do whats right for our country."
"I've got to stop leaving the Wall Street Journal around."
#
INNOCENCE
============
I go to school, but I never learn what I want to know.
Hobbes : "Do you think there's a God?
Calvin : "Well somebody's out to get me!"
Calvin : "Do you really think Bogeymen exist?"
Hobbes : "I'm not sure, but if they do, I think this is where they live…"
"The world isn't fair, Calvin."
"I know Dad, but why isn't it ever unfair in my favour?"
"Too bad the world will be ending soon."
"Beg your pardon?"
"Halley's Comet. Comets are harbingers of doom."
"No they arent, thats just superstition."
"Really? Guess I'd better write that book report."
"Since September it's just gotten colder and colder. There's less daylight now, I've noticed too. This can only mean one thing - the sun is going out. In a few more months the Earth will be a dark and lifeless ball of ice. Dad says the sun isnt going out. He says its colder because the earth's orbit is taking us farther from the sun. He says winter will be here soon.
Isn't it sad how some people's grip on their lives is so precarious that they'll embrace any preposterous delusion rather than face an occasional bleak truth?"
- - Calvin, about to become aware of the concept of winter...
"I believe it. This season sure fills *me* with stress."
"Really? How come?"
" I *hate* being good..."
~
"Any monsters under my bed tonight?"
"Nope." "No." "Uh-Uh."
"Well there *better* not be, I'd hate to have to torch one with my flamethrower!"
"You have a flamethrower?"
"They lie. I lie."
"...Pittsburgh?"
"You mean if we're good or if we're bad?"
#
SOCIETY
========
I think life should be more like tv. I think all of life's problems ought to be solved in 30 minutes with simple homilies, don't you? I think weight and oral hygiene ought to be our biggest concerns. I think we should all have powerful, high-paying jobs, and everyone should drive fancy sports cars. All our desires should be instantly gratified. Women should always wear tight clothes, and men should carry powerful handguns. Life overall should be more glamorous, thrill-packed, and filled with applause, don't you think?
So basically, this maverick is urging everyone to express his individuality through conformity in brand-name selection.
In my opinion, television validates existence.
~
"Here's a movie we should watch."
"Who's in it?"
"It says 'Japanese Cast'...two big rubbery monsters slug it out over major metropolitan centres in a battle for world supremacy...doesn't that sound great?"
"And people say that foreign film is inaccessible."
~
Hobbes : "It says here that by the age of 6, most children have seen a million muders on television."
Calvin : "I find that very disturbing...it means I've been watching all the wrong channels."
~
H : "What are you doing?"
C : "Being cool."
H : "You look more like you're bored."
C : "The world bores you when you're cool."
~
"I just read this great science-fiction story. It's about how machines take control of humans and turn them into zombie slaves."
"So instead of us controlling machines, they control us? Pretty scary idea."
"I''ll say...*HEY* What time is it? My TV show is on."
#
DEEP
====
To make a bad day worse, spend it wishing for the impossible.
So the secret to good self-esteem is to lower your expectations to the point where they're already met?
It's only work if somebody makes you do it
#
GURLS
=======
My only regret is blowing the best day of my life while I'm so young
Susie: Slimy girls?!
Calvin: I know that's redundant, but otherwise it doesn't spell anything.
I'm looking for something that can deliver a 50-pound payload of snow on a small feminine target. Can you suggest something? Hello...?
Girls are like slugs - they probably serve some purpose, but it's hard to imagine what.
~
We are a fierce and dirty band of cut-throat pirates! Keep a sharp lookout matey, we dont want any sissy girls on our ship!"
"We *dont* like girls???"
"Of course not dummy, we're a murderous bunch of pirates, remember?"
"Who do we smooch then?"
~
"There's a new girl in our class."
"Well, whats her name?"
"WHO KNOWS?"
"Is she nice?"
"WHO CARES? Not me!"
"Do you LIKE her?"
"NO!"
~
"Here comes that new girl. HEY SUSIE DERKINS, IS THAT YOUR FACE OR IS A POSSUM STUCK IN YOUR COLLAR? I HOPE YOU SUFFER A DEBILITATING BRAIN ANEURISM, YOU FREAK!"
"She *cute*, isnt she?"
"GO AWAY!"
~
"Hello Susie, this is Calvin. I lost our homework assignment. Can you tell me what we were supposed to read for tomorrow?"
"Are you sure you're not calling for some other reason?"
"Why else would I call you?"
"Maybe you missed the melodious sound of my voice?"
"WHAT? Are you crazy? All I want is the STUPID assignment!"
"First say you missed the melodious sound of my voice."
"THIS IS BLACKMAIL!"
~
"This meeting of the Get Rid Of Slimy Girls club will now come to order. First Tiger Hobbes will read the minutes of our last meeting."
"Thank you. (9:30) Meeting called to order. Dictator For Life Calvin proposed resoultion condemning the existence of girls. (9:35) First Tiger Hobbes abstains from vote. Motion fails. (9:36) Patriotism of First Tiger called into question. (9:37) Philosophical discussion. (10:15) Bandages administered. Dictator For Life rebuked for biting."
"Is this a great club or what?"
"(10:16) Forgot what debate was about. Medals of bravery awarded to all parties."
~
"I'm never gonna get married. Are you?"
"Hmm...I suppose if the right person came along, I might. Someone with green eyes and a nice laugh, who I could call 'Pooty Pie'."
"POOTY PIE?"
"Or bitsy pookums."
"I think that would affect my stomach a lot more than my heart."
"Bitsy pookums I'd say. Yes snoogy woogy, she'd reply..."
~
"Do you like being a girl?"
"Its gotta be better than the alternative."
"Whats it like? Is it like being a bug?"
"Like a WHAT?"
"I imagine bugs and girls have a dim perception that nature played a crual trick on them, but they lack the intelligence to really comprehend the magnitude of it."