Wednesday, April 7, 2010
simple script to zip / rar it in command line
#########################################################
# Script to ZIP the file and NULL the previous Log file #
#########################################################
ZIPing the file
cd "D:\Program Files\WinZip\"
winzip32 -min -a -en -r C:\Backup1\rbb__%date:~7,2%-%date:~4,2%-%date:~10,4%.zip C:\Backup1\rbb.txt
cat /dev/null > C:\Backup1\rbb.txt
RARing the file
cd "C:\Program Files\WinRAR"
Rar a D:\rob__%date:~7,2%-%date:~4,2%-%date:~10,4%.rar D:\rob.txt
cat /dev/null > D:\robocopy.txt
Friday, January 15, 2010
ROLLBACK SCRIPT ON AIX
AIX TL/ML Reject Script ( In applied state)
Rollback
D=/tmp;installp -s | awk '{print $1"\t" $3 }'>$D/AIX.REJ;installp -rgX -f $D/AIX.REJ;rm $D/AIX.REJ &
Rollback Preview
D=/tmp;installp -s | awk '{print $1"\t" $3 }'>$D/AIX.REJ;installp -rpg -f $D/AIX.REJ;rm $D/AIX.REJ &
Details of the Script
# Assigning tmp directory to D
# Moving the file list in applied state to AIX.REJ file by filtering 1st and 3rd column of the output installp -s in tmp directory
# Rollback with the help of the command with the file list available in AIX.REJ
# Removing the file AIX.REJ
Thursday, December 24, 2009
Installing & Rejecting in AIX
Installing and Rejecting
Preview of Installation
a=>APplied state
p==>Preview
g==>support softwares
X==>Extend filesystem if needed
installp -apgX -d '.' all
Installation
a=>APplied state
g==>support softwares
X==>Extend filesystem if needed
installp -agX -d '.' all
---------------------------------------------------------------
Rejecting applied state softwares in AIX
Create a reject list using installp -s(lists the applied state softwares)and moving the output to rejectlist
#installp -s >rejectlist
Reject the list by using installp -rgf (g=>support softwares,f filelist)
#installp -rgf rejectlist
Friday, November 27, 2009
VM with Virtual Server 2005 R
It was a nice experience creating a Virtual Machine using MS Virtual Server 2005 R..
It was so simple.. Logging into the Virtual Server URL and then clicking the Create link and entering the Server Name, RAM size,Disk Space, and then selecting External Ethernet adapter in the adapter menu and clicking Ok.
Once done the server is created,So inorder to configure the device details for installing the OS click the Configure link in the menu of the home page and u'l find a sub menu with the list of servers created, Click the server recently created server name.Here in the page u'l find the details of the server. Now click Cd rom in the page
and here select the Image file of the OS for installation.So Once it is done,minimise the IE and click on the VM host icon on the desktop. here u'l see the servers on the VM. Click on the recently created server image, It'l start to boot and ask for normal installation of the OS. Just Install the OS and its done.. Hot to serve for the people.. Kewl Job Done on VM.
Kewl Experience on VM .. Learn more..
Baby Dragon Restaurant @ Noida
I have never had a very bad dinner in my life time like this.. The quality of the food was like Yuk..
Tuesday, July 7, 2009
Unix Script(Solaris) to check the system Health
This script is used to check the CPU utilization diskspace etc..
Place this script in ur temp directory /tmp and change the mode of file with exectuable rights and just enter the file name in the # or $ prompt accordingly,This will trigger you the details in an email format if the mail option is enabled or rights is there for the user if not it will display the details in detail as more command is there
#SCRIPT Sound CPU,memory,Disk
echo "VMSTAT Details\n" >>output
vmstat 5 5 >>output
echo "----------------\n" >>output
echo "Disk Space\n" >>output
df -k |awk '{print $5,"\t",$6}' >>output
echo "----------------\n" >>output
echo "High CPU Utilised\n" >>output
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10 >>output
echo "----------------\n" >>output
echo "Check for CFT\n" >>output
ps -ef|grep {some application related process}>> output
echo "----------------\n" >>output
more output
echo "report " | mailx -s "HEALTH CHECK `date`" xx@yy.com rm output
Saturday, November 11, 2006
The Current scenario of IT in India
The current scenario of IT in India is going good when the people work for knowledge and the salary they get for the work done by them.
But nowadays the scenario is getting changed because of the companies who get them into their company on contract basis..When this goes then its all going to be a situation where the people of US faced when they demanded money rather than work.
Now when this is the situation then all the work will be done for money money and money.. So finally the companies will move on to other countries where the people accept a reasonable salary for their work..
The next competitor for us is China,they lack in English but are good and hard working people.
Long Live IT and Its Sisters..
Labels:
Current scenario of IT in India
Subscribe to:
Posts (Atom)
