Friday, June 7, 2013

Find files on CentOS using locate

OS: CentOS 6.3

If you want to search a file on CentOS you could use locate and updatedb command.
First install mlocate
# yum install mlocate
Now you can find files on your system.
# locate <file_name_you_want_to_find>
To update database for mlocate use
# updatedb

Wednesday, June 5, 2013

Enable SNMP on VMware ESXi 5.0

To enable SNMP on your VMware ESXi 5.0, first you should install VMware vSphere CLI.

VMware vSphere CLI

Set Up Community --server <IP or host name> --username <username> --password <password> -c <community>
Check status: --server <IP or host name> --username <username> --password <password> -s
Enable SNMP: --server <IP or host name> --username <username> --password <password> -E
Disable SNMP: --server <IP or host name> --username <username> --password <password> -D

Picture below is an example of snmp check status:

VMware vSphere CLI