Single user mode :
Step1 :#reboot
Step2# Press key to enter grub
Step3# e- to edit
Step4# select the second line to edit
Step5#Go to the end of line and add "single"
Step 6#select b to boot
Step 7# passwd <username>
Sunday, May 29, 2011
vMA Logging the ESX/ESXi servers
vilogger to consolidate ESX/ESXi logs on diffrent servers.
Adding an ESX/ESXi servers to vMA logging :-
vilogger enable --server <esx servername> --numrotation 20 --maxfilesize 10(MB) --collectionperiod 10
./vilogger --help
cd /var/log/vmware
Important Things ESXi:
ESXi servers don't save log files when the power is lost or when servers are rebooted
Adding an ESX/ESXi servers to vMA logging :-
vilogger enable --server <esx servername> --numrotation 20 --maxfilesize 10(MB) --collectionperiod 10
./vilogger --help
cd /var/log/vmware
Important Things ESXi:
ESXi servers don't save log files when the power is lost or when servers are rebooted
vMA Session Files
Session Files : Alternative way to Fast Pass
#cd /usr/share/doc/vmware-vcli/samples/session
#./save_session.pl --help
Adding a ESX/ESXi server to session files :-
#./save_session.pl --server <esx servername> --username XXXX --password XXXXX --savesessionfile /home/vi-admin/esx147
#vicfg-nics -l --sessionfile /home/vi-admin/esx147
#cd /usr/share/doc/vmware-vcli/samples/session
#./save_session.pl --help
Adding a ESX/ESXi server to session files :-
#./save_session.pl --server <esx servername> --username XXXX --password XXXXX --savesessionfile /home/vi-admin/esx147
#vicfg-nics -l --sessionfile /home/vi-admin/esx147
vMA Fastpass
vi-Fastpass :
Managing mutiple esx and esxi servers
vifptarget --help
Adding an ESX/ESXi server:
vifp addserver <esx servername> (To add the servers)
credientials
Listing the ESX/ESXi servers added:-
vifp listservers (to look at servers added to Vi-Fastpass) we can also add Vcenter
Setting an ESX/ESXi as target:-
vifptarget -s <esxi servername> (To set the target)
vicfg-vSwitch -l
Clear an ESX/ESXi targets:-
vifptarget -c (to clear the target)
Managing mutiple esx and esxi servers
vifptarget --help
Adding an ESX/ESXi server:
vifp addserver <esx servername> (To add the servers)
credientials
Listing the ESX/ESXi servers added:-
vifp listservers (to look at servers added to Vi-Fastpass) we can also add Vcenter
Setting an ESX/ESXi as target:-
vifptarget -s <esxi servername> (To set the target)
vicfg-vSwitch -l
Clear an ESX/ESXi targets:-
vifptarget -c (to clear the target)
vMA(vSphere Management Assitant)
Vsphere Managment Assitant
64-bit Red Hat Enterprise Linux,Vmware tools,vCLI
Esx should be 64 bit,ESX/ESXi 3.5 U2 or 4.0 later
Requirments :Single CPU only,512 MB,5GB Virtual Disk
Download vMA as OVF template from vmware and deploy
vMA Commands:
root#cd /usr/bin
root#ls *vicfg*
Runing an vMA Command
vicfg-nics --list --server <esxi servername>
credetails
64-bit Red Hat Enterprise Linux,Vmware tools,vCLI
Esx should be 64 bit,ESX/ESXi 3.5 U2 or 4.0 later
Requirments :Single CPU only,512 MB,5GB Virtual Disk
Download vMA as OVF template from vmware and deploy
vMA Commands:
root#cd /usr/bin
root#ls *vicfg*
Runing an vMA Command
vicfg-nics --list --server <esxi servername>
credetails
Tuesday, May 24, 2011
Configuring SNMP for ESX host
Step1 :root@etc]# cd snmp
Step 2:root@snmp]# ls
Step 3:root@snmp]# vi snmpd.conf
Step 4:root@snmp]# chkconfig snmpd on
Step 5:root@snmp]# esxcfg-firewall -e snmpd
Step 6:root@snmp]# service snmpd start
Step 7 :root@snmp]# snmpwalk -v1 -c public localhost .1.3.6.1.4.1.6876 |grep 6876.1
Step 2:root@snmp]# ls
Step 3:root@snmp]# vi snmpd.conf
Step 4:root@snmp]# chkconfig snmpd on
Step 5:root@snmp]# esxcfg-firewall -e snmpd
Step 6:root@snmp]# service snmpd start
Step 7 :root@snmp]# snmpwalk -v1 -c public localhost .1.3.6.1.4.1.6876 |grep 6876.1
Intalling HP SIM Manually
Installing HP SIM agent on ESX box:
Step1 :tar -xzvf hpmgmt-8.1.1-vmware3x.tgz
Step 2:rpm -ivh package name
Step 3:rpm -qa | grep hp
Step 4:root# service pegasus start
Step5:root# service pegasus status
Step 6: hpasm activate or hpasm reconfigure
Step 7:service hpasm start
Step 8: Serivce snmpd start
Step 9: Firewall Config
esxcfg-firewall --openport 2301,tcp,in,hp-sim
esxcfg-firewall --openport 280,tcp,out,sim-cert
esxcfg-firewall --openport 2381,tcp,in,hpim
Step 10:service firewall restart
Step 11:chkconfig snmpd on
Step 12:esxcfg-firewall -e snmpd
Step 13:service snmpd start
Step1 :tar -xzvf hpmgmt-8.1.1-vmware3x.tgz
Step 2:rpm -ivh package name
Step 3:rpm -qa | grep hp
Step 4:root# service pegasus start
Step5:root# service pegasus status
Step 6: hpasm activate or hpasm reconfigure
Step 7:service hpasm start
Step 8: Serivce snmpd start
Step 9: Firewall Config
esxcfg-firewall --openport 2301,tcp,in,hp-sim
esxcfg-firewall --openport 280,tcp,out,sim-cert
esxcfg-firewall --openport 2381,tcp,in,hpim
Step 10:service firewall restart
Step 11:chkconfig snmpd on
Step 12:esxcfg-firewall -e snmpd
Step 13:service snmpd start
Monday, May 23, 2011
opening and closing Firewall ports
Opening the Firewall ports :
Syntax: esxcfg-firewall --openPort <port_number>,tcp|udp,in|out,<port_name>
Examples :
root]# esxcfg-firewall --openport 2301,tcp,in,hp-sim
Syntax: esxcfg-firewall --closePort <port_number>,tcp|udp,in|out,<port_name>
Example :
root]#esxcfg-firewall --closePort 6380,tcp,in
service firewall restart
esxcfg-firewall-e| d SERVICE
Syntax: esxcfg-firewall --openPort <port_number>,tcp|udp,in|out,<port_name>
Examples :
root]# esxcfg-firewall --openport 2301,tcp,in,hp-sim
root]# esxcfg-firewall --openport 514,udp,out,syslog
root]# esxcfg-firewall --openport 280,tcp,out,sim-cert
root]# esxcfg-firewall --openport 2381,tcp,in,hpim
Closing the Firewall ports:Syntax: esxcfg-firewall --closePort <port_number>,tcp|udp,in|out,<port_name>
Example :
root]#esxcfg-firewall --closePort 6380,tcp,in
service firewall restart
esxcfg-firewall-e| d SERVICE
Saturday, May 21, 2011
Syslog Config
Syslog Config
# vi syslog.conf
# service syslog restart
# esxcfg-firewall -q|grep syslog
syslog : port 514 udp.out
KB Article :1005030
# vi syslog.conf
# service syslog restart
# esxcfg-firewall -q|grep syslog
syslog : port 514 udp.out
KB Article :1005030
Saturday, May 7, 2011
DRS
DRS Requirments:
You should have Enterprise or Enterprise plus
Requirments :
Vmotion requirments should be met.
-VM's have access to same networks
-Compatible CPUs on source and destination hosts
-Hosts have Vmotion enabled Vkernal interface
-No attached CD/DVD drives or VMDirectPath.
You should have Enterprise or Enterprise plus
Requirments :
Vmotion requirments should be met.
-VM's have access to same networks
-Compatible CPUs on source and destination hosts
-Hosts have Vmotion enabled Vkernal interface
-No attached CD/DVD drives or VMDirectPath.
Packet/Protocol Analyser
Packet/Protocol Analyser
Physical:
Port-mirror,SPAN (Switch Port Analyzer),RSPAN
Basically you connect your Laptop to a Port or Group ports with same Vlan in promiscous mode.
promiscous mode accetps all traffic.
Linux Packet capture :TCPDUMP and Wireshark tcp anaylse the traffic.
Step1:Configure promiscuous mode to a new Portgroup.
Step2:Your packet capture VM where Wireshark is installed should be on the same portgroup where promiscous mode is conifgured.
TCPDUMP:
-i =specify the interface
-v =Verbose
-W =Write packets to a file
-r =Read packets from a file
tcpdump -i vswif0 host <ipaddress> to watch DNS traffic,arp traffic becoz of DNS lookup
Physical:
Port-mirror,SPAN (Switch Port Analyzer),RSPAN
Basically you connect your Laptop to a Port or Group ports with same Vlan in promiscous mode.
promiscous mode accetps all traffic.
Linux Packet capture :TCPDUMP and Wireshark tcp anaylse the traffic.
Step1:Configure promiscuous mode to a new Portgroup.
Step2:Your packet capture VM where Wireshark is installed should be on the same portgroup where promiscous mode is conifgured.
TCPDUMP:
-i =specify the interface
-v =Verbose
-W =Write packets to a file
-r =Read packets from a file
tcpdump -i vswif0 host <ipaddress> to watch DNS traffic,arp traffic becoz of DNS lookup
Monday, May 2, 2011
Check for NX flag
VMotion fails : Incompatible CPU
Check for NX flag in the ESX host and disable it in BIOS.
To check if NX flag is set on ESX host
root# cat /proc/cpuinfo
VMware KB Article :1993
Check for NX flag in the ESX host and disable it in BIOS.
To check if NX flag is set on ESX host
root# cat /proc/cpuinfo
VMware KB Article :1993
Subscribe to:
Posts (Atom)