List of VM Property Names in Vmware – vSphere PowerCLI

VMware vSphere PowerCLI is a Powerful tool to automate the vmware infrastructure management. Here is the list of object names which you can use with “Get-vm” command. This object name will help you to create scripts with specific parameters like Host, Power State, CPU etc. Its also helpful to generate VM list (Inventory). Following list [...]

[ More ] December 7th, 2011 | 2 Comments | Posted in Servers |

Net Use – Disconnect all previous connections to the server or shared resource

Error : Multiple connections to a server or shared resource by the same user, using more than one user name are not allowed. Disconnect all previous connections to the server or shared resource and try again. This error may occur in the networks if some previous sessions of network shares still exist in the cache. [...]

[ More ] November 19th, 2010 | 1 Comment | Posted in Networking |

Google command line – GoogleCL

Now access Google services from command line. Google’s new utility called GoogleCL allow you to handle Google services from command line. Initial stage you can use some of the services. That are Blogger, Calendar, Contacts, Docs, Picasa, YouTube . using this tool we can easily upload albums to Picasa web. Import export contacts. add/ remove [...]

[ More ] September 14th, 2010 | Your thoughts are welcome | Posted in Internet |

Previous / yesterday’s date in DOS batch file

Here is the script to get previous date output in DOS using bat files. This is very useful when we take backup of files with previous date name. (for example backup_daily_20072010.zip ) or can set bat files to get last 7 days backup to a zip.  According to your requirement you can get any previous [...]

[ More ] July 21st, 2010 | 25 Comments | Posted in Programming |

Use AWK to print column’s from file

In many times, we all may required an output of specific column in a file, for example we want to know the users in the system, for this we need to open passwd file in /etc folder and view, but the file is having so much of information, it is time consuming  to takeout user [...]

[ More ] April 1st, 2010 | Your thoughts are welcome | Posted in Misc |

“alias” use it for a good reason

In Linux we all work with lots of log files, like mail, squid, application etc…., all these files located in its own folder, for example, if we want to look for squid access log to monitor the site access, generally we do tail -f /var/log/squid/access.log, this involves lots of typing, we can make this simple [...]

[ More ] March 24th, 2010 | Your thoughts are welcome | Posted in Misc |

Printing command from history without executing

We all know that, BASH stores the commands we entered in the terminal to .bash_history, we can see those commands using history command. Commands in the history can be executed by ! followed by the number,  !5 (5th command in the history will get executed). But what if we only need to print the command, [...]

[ More ] March 22nd, 2010 | Your thoughts are welcome | Posted in Misc |

Listing only active configuration from filename using grep

Imagine a situation that  you want to see only the active configuration of squid.conf which is having 3532 line, to see the configuration you have to navigate through whole file from top to bottom, use this command to make your life easier.

[ More ] March 20th, 2010 | Your thoughts are welcome | Posted in Misc |