Saturday, January 10, 2015

Collecting SDN forwarder port status at SDN Controller

This is to gather the port status of every switch or forwarder at SDN controller.

Register the port_stats_in function:

def install(self):
# Handler
        ...
self.register_for_port_stats_in(self.handle_portstats_in)
        ...


def handle_portstats_in(self, dpid, stats):
    """
    Parameters in stats: port_no, rx_packets, tx_packets, rx_bytes, tx_bytes, rx_dropped, tx_dropped,       rx_errors, tx_errors, rx_frame_err, rx_over_err, rx_crc_err, collisions
    """
    print "Port Stats received...."
    print "Port stats in from datapath", longlong_to_octstr(dpid)[6:]
    for item in stats:
print '\t',item['port_no'],':',item['tx_packets'],':',item['rx_packets']
   
   ...

Friday, January 9, 2015

Activating vSphere



Courtesy: http://www.vmwarearena.com/2013/10/vsphere-55-download-free-esxi-55.html

Register or Login with your VMware account credentials
Once you have logged in ,  You will have been provided with the option to download the  ESXi 5.5 Installation ISO and VMware vSphere client along with the Free license key for ESXi 5.5 Hypervisor.
Once the installers are download. Complete the ESXi 5.5 installation or Upgrade and Connect to your ESXi host using vSphere Client.
Click on Configuration tab and select Licensed Features. Click on Edit
Enter the license key and Click on Ok.
You are done with the  ESXi 5.5 free license key assignment and it is never Expires now. I believe this is informative for you. Thanks for Reading !!!

Adding Hard Disk to ESXi 5.1 Server

The ESXi 5.1 doesn't support RAID configuration, there for better to use RAID 0 for minimum number of hard disk and add the remaining hard disk through vSphere Client.

The steps is as follows:

host > storage > add storage > Disk/LUN > next

....