Got IP zones from the internet: wget http://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gz gunzip -d all-zones.tar.gz ; tar -xvf all-zones.tar Then with ipset ipset create onlyita hash:net hashsize 64000 while read ip; do echo $ip ; done < it.zone Iptables: iptables -N countryfilter iptables -A […]
Deploy Weblogic bash script
To deploy a simple ear I did: ${JAVA_BIN} -cp ${WL_JAR} weblogic.Deployer -adminurl t3://${HOST_NAME}:${HOST_PORT} -user ${HOST_USER} -password ${HOST_PASS} -targets ${SERVER} -deploy -upload ${TMP_DIR}${DEPLOYEAR} -name ${APPNAME} But on the second script I had to do a stop(kill) of the server, cleanup the […]
AWS Certified Solutions Architect Study Guide
AWS Certified Solutions Architect Study Guide ( old post version here) 1) EC2 – Elastic Computer #EC2 STORAGE# EC2 support 2 types of block devices does Amazon EC2 support, EBS and instance storage(ephemeral) Persistent Storage (EBS) “Elastic Block Store”: […]
Centreon no Graphics
Troubleshooting Centreon no Graphics (Using centreon brokers 2.11.8 BBDO not nagios NDO) Centos 6.8 x64 centreon-broker-2.11.8-2.el6.x86_64 centreon-broker-cbd-2.11.8-2.el6.x86_64 centreon-broker-cbmod-2.11.8-2.el6.x86_64 centreon-broker-core-2.11.8-2.el6.x86_64 centreon-broker-storage-2.11.8-2.el6.x86_64 PROBLEM Centreon graphics are not updated CAUSE Usualy it is related to centreon-broker not writing in my case I […]
nxlog centos 5
How to install nxlog on centos 5 I tried creating the RPM file although it didnt work I was able to install it this way pre-reqs: yum install pcre-devel.x86_64 expat-devel.x86_64 libtool.x86_64 libcap-devel.x86_64 libdbi-devel.x86_64 pcre-devel.x86_64 yum install gcc wget http://search.cpan.org/CPAN/authors/id/D/DO/DOUGM/ExtUtils-Embed-1.14.tar.gz tar […]
Script to check if a windows patch is installed
VBScript to check if a windows patch is installed on a server or PC This a simple script that can be used if youn need to check if a specific patch is installed
Windows backup vbscript
Windows VBS script to backup Desktop and Laptop PROS AND CONS -No delta backup / no incremental (but robocopy only copy files changed) -No encryption (but only the user has access to its folder, check setACL function) -No compression (Could […]
