How to enable SNMP Client on ESX5

How to enable SNMP Client on ESX5

In this example I am assuming your detals as below but it will change according to your setup.

ESX Host IP is 192.168.1.10
Username root
Password P@ssw0rd
SNMP Server IP 192.168.1.100

Note:- on VMware support site is shows all commands as “vicfg-snmp” for SNMP you will not get this command as VCLI you will find in bin folder as vicfg-snmp.pl So change vicfg-snmp with vicfg-snmp.pl
1- Check the SNMP status

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –show

Current SNMP agent settings:
Enabled : 0
UDP port : 161

Communities :

Notification targets :

Options :
EnvEventSource=indications

2- Set the SNMP Community

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd -c public, internal

3- Enable SNMP Client
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –enable

4- Set the target SNMP server
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd -t 192.168.1.100@162/public

5- Test SNMP
C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl –server 192.168.1.10 –username root –password P@ssw0rd –test

Source Link

Posted in VMware | Tagged | Leave a comment

How to add static ARP entry in windows 2008 or Windows 7

How to add static ARP entry in windows 2008 or Windows 7

netsh -c interface ipv4 add neighbors “Network Card Name” “IP Address” “MAC Address” store=persistent
For Example :-

Your Network Card Name is :- Local Area Connection
IP Address is :- 192.168.10.10
MAC Address is :- 00-1d-71-83-6c-00

netsh -c interface ipv4 add neighbors “Local Area Connection” “192.168.10.10” “00-1d-71-83-6c-00” store=persistent

It will make parmanent ARP entry.

Posted in Uncategorized | Tagged | Leave a comment

How to install PPTP Server on Cent OS

Step-1 Forward GRE protocol and TCP port 1723 through your firewall

Step-2 Add the Poptop Yum Repository

rpm -Uhv http://poptop.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm

Step-3 Configure iptables

Create iptables_set.sh, chmod +x iptables_set.sh, and run the script.

Note: The following will work but you may wish to change the source address from 10.10.9.0/24 to the network range of your choosing based on your network.

#!/bin/bash
/sbin/iptables -F
/sbin/iptables -P INPUT DROP
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p tcp –dport 1723 -j ACCEPT
/sbin/iptables -A INPUT -i eth0 -p gre -j ACCEPT
/sbin/iptables -A INPUT -p icmp -j ACCEPT
/sbin/iptables -A INPUT -i lo -j ACCEPT
/sbin/iptables -A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
/sbin/service iptables save
/sbin/iptables -L -v

Step-4 Configure Routing

Edit /etc/sysctl.conf

net.ipv4.ip_forward = 1

Step-5 Make the changes active

sysctl -p

Step-6 Install PPTP Server

yum install ppp pptpd

Step-7 Configure the service to start on boot

chkconfig –levels 345 pptpd on
Step-7 Configure Client Network Options change IP address according to your requirement

Modify /etc/pptpd.conf

localip 10.10.11.1
remoteip 10.10.11.5-100

Modify /etc/ppp/options.pptpd
ms-dns 208.67.222.222
ms-dns 208.67.220.220

Step-8 Configure Client Access

You will need to customize the client name, secret (password), and you can either allow all IP address or limit as necessary.

Edit /etc/ppp/chap-secrets.

# Secrets for authentication using CHAP
# client          server          secret                           IP addresses
test-user       *                   test-password               *

Step-9 Start the Server

Start the pptpd service

service pptpd start

Step-10 Configure the Client

source link

Posted in Uncategorized | Leave a comment

How Do I Find Out My Kernel Version?

How Do I Find Out My Kernel Version?

$ uname -mrs
$ uname -a

output
Linux 2.6.18-194.el5 i686

Posted in Linux | Tagged | Leave a comment

How To Find Out My Linux Distribution Name and Version

$ cat /etc/*-release

output

CentOS release 5.9 (Final)

$ lsb_release -a

output

LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.9 (Final)
Release: 5.9
Codename: Final

Posted in Linux | Leave a comment

how to save terminal session without stop on Cisco

if you want to save configuration with #sh run  of Cisco device through telnet without stop.

below are the command

PSTN Router# terminal length 0

 

Posted in Uncategorized | Leave a comment

How to add a new VLAN on Cisco Nexus 1000 vSwitch on VMware with Cisco UCS

How to add a new VLAN on Cisco Nexus 1000 vSwitch on VMware with Cisco UCS

Example :- I have a new VLAN requirement to be added in my VMware environment

Step-1

Add VLAN on Cisco UCS (configure in LAN option on cisco UCS)

Step-2

Allow VLAN on the  Server NIC  (Configure on server profile)

Step 3

Create Vlan on Nexus1000V switch which you want to make available on Virtual Machines for example VLAN 21 for new application.

>conf  t

>vlan 21

>name newapp

Step-4

Add a Port profile for vethernet

port-profile type vethernet 21_Newapp

> vmware port-group

> switchport mode access

>switchport access vlan 21

>no shutdown

>state enabled

Step-5

Add a port profile Ethernet for uplink which is having the original server.

>port-profile type ethernet VM-uplink-10G

>vmware port-group

>switchport mode trunk

>switchport trunk allowed vlan 2,21

>channel-group auto mode on mac-pinning

>no shutdown

>state enabled

step-6

Assign the VM NIC to 21_newapp VLAN and check the connectivity.

Posted in VMware | Tagged | Leave a comment

Dell Servers Warranty Information

Dell Servers Warranty Information

http://support.dell.com/support/topics/global.aspx/support/warranty/warranty_information?c=us&l=en&s=gen&DoNotRedirect=y

Click here 

Posted in Uncategorized | Tagged | Leave a comment

VMware Hardware Compatibility Guide

VMware Hardware Compatibility Guide

http://www.vmware.com/resources/compatibility/search.php

Posted in Uncategorized | Tagged | Leave a comment

How to update drivers on VMWARE ESXI 5

How to update drivers on VMWARE ESXI 5

Download the Driver for the device vib file and copy to the ESX datastore

ssh your ESXhost

go to the directory where you have copied the driver vib file
type the following command

#esxcli software vib install -v your driver file path/driverfile.vib  –no-sig-check
For Example you have copied your vib file on your datastore on Driver folder

#esxcli software vib install -v /vmfs/volumes/—your datastore path—/Driver/net-enic-2.1.2.22-1OEM.500.0.0.441683.x86_64.vib  –no-sig-check

Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: Cisco_bootbank_net-enic_2.1.2.22-1OEM.500.0.0.441683
VIBs Removed: VMware_bootbank_net-enic_1.4.2.15a-1vmw.500.0.0.469512
VIBs Skipped:

Posted in VMware | Tagged | Leave a comment