Wednesday, October 6, 2010

commands useful for an admin

These are some of the commands useful for an admin

date --- this is only option available to set time/date
hwclock --- to sync the time to software clock/hardware clock
Esxcfg-vswitch -- virtual switch configuration ., be clear abt port groups
esxcfg-vswif -- service console in the esx server
esxcfg-vmnics-- for setting the speed/mode of operating
esxtop --- to see the performance of esx server
esxupdate -l query -- to see the packages are installed on esx
/etc/sysconfig/network --- to see the network configuration
/etc/passwd -- to see the user accounts
/etc/ssh -- for ssh login properties



Few ESX Commands ** Important Log and their location
===========================================
vmkping - use vmkernel to ping a device
esxcfg-vswif for configuring network interface
vm-support to run diagnostic commands
esxupdate -l query query patches installed on ESX Server
esxcfg-rescan vmhba1 to rescan HBA’s
ps -ef | grep hostd To check hostd is running
esxcfg-mpath -l to list path details
________________________________________
Important Log and their locations

VMKernel Logs = > /var/log/vmware/
VIClient logs = > /var/log/vmware/hostd.log
Virtual Center interaction logs = > /var/log/vmware/vpx/vpxa-*.log
VMWare Patch activity logs = > /var/log/vmware/esxupdate.log
[root@esx2007a config]# cat vmware-sites
FULLTIME_SITES_TID 00000061
+ 1:8042,8042,8043 esx2007e vmware #FT_Agent_Port=8045
+ 2:8042,8042,8043 esx2007d vmware
+ 3:8042,8042,8043 esx2007b vmware
+ 4:8042,8042,8043 esx2007a vmware
+ 5:8042,8042,8043 esx2007c vmware
License server logs = > %ALLUSERSPROFILE%\Application Data\VMware\VMware License Server\lmgrd.log

1 comment: