Saturday, February 19, 2011

Increase trial period of windows 2008 server - rearm

Sometimes we setup server for learning platform, software. Since license cost of all products are so high we cannot afford and so we use trial version.
To extend trial version Windows 2008 Server by executing below command as Administrator on server.

1. Start > Run > type "cmd"
2. Right click cmd, Run as Administrator
3. Execute on command prompt : slmgr.vbs -dli --- this will show the number of days left with trial version.
4. Execute on command prompt slmgr.vbs -rearm
5. Restart Server
6. Repeat step 1,2,3 to check new date of expiration of trial version.

Monday, January 18, 2010

Crontab for other user

crontab -l -u cruise
crontab -e -u cruise

Kill all the process by a user in Linux

kill -9 `ps -ef|grep cruise |awk '{print $2}'`

Monday, January 4, 2010

Last Restart time for Windows workstation

To find out last reboot

Open command prompt and type below command. Second line of the output will display the last restart of workstation/server.

net statistics workstation | more

eg

Workstation Statistics for \\"workstation name"
Statistics since 12/24/2009 4:27 AM

Bytes received 3192754767

Last restart for Windows

To find out last reboot

Open command prompt and type below command. Second Line of the output will display the last start time of the workstation/server.

net statistics workstation | more

Sunday, November 15, 2009

telnet in Windows 7 and Windows Vista

telnet command is by default missing in Windows 7 and Windows Vista.
To solve this, just enable it. Click Start > Control Panel > Programs, and then click Turn Windows Features on or off. Fromn the list, scroll down and select/check Telnet Client. Click OK to start the installation.

After completion of installationy, try telnet using command line. It will work :)

Monday, November 9, 2009

alt_disk_install command

By default, using the alt_disk_install command does the following:
1. Creates an /image.data file based on the current rootvg's configuration. A
customized image.data file can be used.
2. Creates an alternate rootvg (altinst_rootvg).
3. Creates logical volumes and file systems with the alt_inst prefix.
4. Generates a backup file list from the rootvg, and if an exclude.list file is given,
those files are excluded from the list.
5. Copies the final list to the altinst_rootvg's file systems.
6. If specified, the installp command installs updates, fixes, or new filesets into
the alternate file system.
7. The bosboot command creates a boot logical volume on the alternate boot
disk.
8. If a customization script is specified, it runs at this point.
9. The file systems are then unmounted, and the logical volumes and file
systems are renamed.
10.The logical volume definitions are exported from the system to avoid
confusion with identical ODM names, but the altinst_rootvg definition is left as
an ODM placeholder.
11.By default, the bootlist is set to the new cloned rootvg for the next reboot.