Entradas

GNU/Linux - useful commands

Imagen
Regresar ¿Desea donar?/Do you wish to give some money to the author? Give money to the author/writer 1 USD $1.00 USD 5 USD $5.00 USD 10 USD $10.00 USD 20 USD $20.00 USD 50 USD $50.00 USD 100 USD $100.00 USD 1000 USD $1,000.00 USD Regresar

ICMP Monitor With MySQL - Linux

Imagen
Hello everyone, here is some code intended to help you monitor any node of your network using ICMP (ping), but, with a some help, you could load the hosts to test from a MySQL database and register the state of it on the same database. First Create a database and a table with some fields like an ID , a Description for the node (Just to have a human identification), the HostName or IP Address , and the State (This could have an UP or DOWN state) CREATE DATABASE MysqlDatabase; use MysqlDatabase;  CREATE TABLE `MysqlTable` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `Description` VARCHAR( 60 ) NOT NULL , `MysqlHostColumn` VARCHAR( 80 ) NOT NULL , `MysqlStateColumn` VARCHAR( 30 ) NOT NULL ); And insert some IP addresses or hostnames with some description for them:  INSERT INTO `MysqlTable` (`Description`, `MysqlHostColumn`, `MysqlStateColumn`) VALUES ('Gateway', '192.168.1.1', 'DOWN'); INSERT INTO `MysqlTable` (`Description`, `MysqlHostC...

Virtualbox in Kali Linux Issue (Can't start virtual machine)

Imagen
This publication summarizes the procedure to enable Virtualbox to run in Kali Linux. After downloading and installing Virtualbox ( How to install )  , you configure your virtual machine, but while trying to start it you get an error. Issue: Description: After installing Virtualbox in Kali Linux, it is not possible to start a virtual machine. Action requested by virtualbox:    /etc/init.d/vboxdrv setup While executing that command you are requested to look for the error in the log file: cat /var/log/vbox-install.log Error found: Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop. Solution: Verify that the file /etc/apt/sources.list have the following lines (If not add them): deb http://http.kali.org/kali kali main contrib non-free deb http://security.kali.org/kali-security kali/updates main contrib non-free Execute: apt-get update Then execute:   apt-get inst...

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...

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     no...