Entradas

Mostrando entradas de 2013

Block web sites on Windows

Imagen
Here is how to make your windows computer (Not Server) to become a DNS server. Why should you do that? Avoid webpages to redirect you to anoying sites, publicity you don't need, or if you want to restrict access so some pages without having a proxy server or software. There are a vast number of web pages that when you click on something, they open a new window and connect you to a different web site, this other web sites may contain only unuseful content or dangerous content. Ways to avoid it: a)  Include your URLs in your web browser restriction access list. Limitations:  It is needed to configure a per communication protocol domain restriction list, I find it not very flexible. b)  Configure your windows  C:\Windows\System32\drivers\etc\hosts  file . This method overcomes option  a)   by adding only one line per web site   protocol connection (ftp, http, https, etc), so you have to configure only one line to avoid whatever the type of connection is. Limitations:  Y

Citrix - Xenserver - Migrate MAC address

Imagen
This post provides two scripts based on the shell of linux to export basic network information of your XenServer's virtual machines (VMs) , this will include the VM 's name, the device number, the MAC address and the network name of all the virtual interfaces (VIFs) of every VM of your pool, it has to be known that this software only works fine when the name of you VM s and the name of your networks have no spaces in between neither leading spaces, so rename this paramenters before using the scripts. Why should you like to save this information? In the following scenario: There are 2 sites in your company, one of them are the principal one, there you have provisioned VM 's with DHCP reserved to their MAC addresses, the alternate site is a recovery site, where you have to make work your VMs if the main site fails, as a requirement you have to have: Repplication LUNs from one site to the other, the VM 's disks have to be in a shared Storage Repository (SR) , the

Configure SNMP for Citrix - XenServer

Imagen
Enable snmpd service 1. To enable snmpd service run the following command: # chkconfig snmpd on 2. Start the snmpd service: # service snmpd start Change SNMP configuration 1. To change snmp configuration edit the /etc/snmp/snmpd.conf file. 2. Restart the snmpd service: # service snmpd restart SNMP configuration examples Default settings You can view only systemview subtree .1.3.6.1.2.1.1 View whole subtree 1. Change lines as follows: Current lines: view     systemview     included     .1.2.6.1.2.1.1 view     systemview     included     .1.3.6.1.2.1.25.1.1 Add line: view     all          included     .1 Change line: access     notConfigGroup “”     any     noauth     exact     systemview     none      none To: access     notConfigGroup “”     any     noauth     exact     all          none      none 2. Save the file. 3. Restart the service: # service snmpd restart Change community string (default is “public”) Change line: com2sec notConfigUser     defa