tag:blogger.com,1999:blog-22011411226005890702024-02-09T18:43:03.411-08:00Open Source DilemmaNepaliboyhttp://www.blogger.com/profile/11473496018144775029noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-2201141122600589070.post-10753144783892312012015-07-01T13:16:00.002-07:002015-07-01T13:16:13.256-07:00Myths of Processing - CPU Scheduling<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Always when i start to do performance analysis, i always get bogged down by Procesors, Core and Virtualization. In this post, I have tried to understand the performance impact in general. Although, the overall performance of any processes depends upon other factors such as CPU intensive, I/O Intensive or Network I/O intensive, This post is focused more on CPU operations and how different operating systems and Virtualization layer manage the CPU resources.<br />
<br />
CPU scheduling is one of most critical and important part of the system software. Not all operating systems are equal, it is one of the key metrics that distinguished the operating systems in terms of it's performance - which is largely guided by CPU's operations. Also, when the application is written, how it is going to use the multicore and multiprocessor should also be the part of the discussion.<br />
<br />
<div style="text-align: left;">
Due to the availability of the different types of milt-processors in terms of number of processors and number of cores, the processing power of the computers has increased dramatically. But does all the programs and operating systems really benefits from increasing the cores and processors ? - It needs more scientific explanation and is largely guided by the design of the operating systems.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
For example windows 2003 is limited up-to four CPU's. However, it can take advantage of cores, if you quad processors, it can go upto 16 cores. If it has a dual core, the windows can run upto 8 cores.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span itemprop="articleBody"><span style="font-family: Arial; font-size: 10pt;">Virtual
CPUs (vCPU) in VMware virtual machines appear to the operating system
as single core CPUs. So, just like in the example above, if you create a
virtual machine with 8 vCPUs (which you can do with vSphere) the
operating system sees 8 single core CPUs. If the operating system is
Windows 2003 Standard Edition (limited to 4 CPUs) it only runs on 4
vCPUs ( source Vmware knowledge base).</span></span></div>
<br />
But this configuration can be overwritten by adding <span itemprop="articleBody"><span style="font-family: Arial; font-size: 10pt;"><span style="font-family: Courier New;">cpuid.coresPerSocket in configuration file of Vmware </span></span></span><span itemprop="articleBody"><span style="font-family: Arial; font-size: 10pt;"> (<span style="font-family: Courier New;">.vmx</span>) file</span></span><span itemprop="articleBody"><span style="font-family: Arial; font-size: 10pt;"><span style="font-family: Courier New;"></span></span></span><br />
<span itemprop="articleBody"><span style="font-family: Arial; font-size: 10pt;"><span style="font-family: Courier New;"><br /></span></span></span>
This is a very good article that specifically talks on configuring this parameter in Vmware Vsphere.<br />
<br />
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010184<br />
<br />
<br />
<br />
<br />
<br /></div>
Nepaliboyhttp://www.blogger.com/profile/11473496018144775029noreply@blogger.com0tag:blogger.com,1999:blog-2201141122600589070.post-11468702102080128832014-08-15T08:40:00.000-07:002014-08-15T08:40:10.800-07:00Linux Process Profiling - Creating Core Dump<div dir="ltr" style="text-align: left;" trbidi="on">
This is the first post in series of Process Profiling, in this post I will show how to create a core dump of a process. We can use following tools to do the core dump of the process.<br />
<br />
1. Using Standard Signal QUIT (3)<br />
2. Using gdb - GNU Debugger<br />
<br />
We will use the GNU Debugger here.<br />
<br />
#ulimit -c /* Checking whether cored dump is disabled or enabled<br />
0 /* Disabled <br />
#ulimit -c unlimited /* Changing the sized to unlimited<br />
<br />
$ulimit -a<br />
core file size (blocks, -c) unlimited<br />data seg size (kbytes, -d) unlimited<br />scheduling priority (-e) 0<br />file size (blocks, -f) unlimited<br />pending signals (-i) 65536<br />max locked memory (kbytes, -l) 32<br />max memory size (kbytes, -m) unlimited<br />open files (-n) 1024<br />pipe size (512 bytes, -p) 8<br />POSIX message queues (bytes, -q) 819200<br />real-time priority (-r) 0<br />stack size (kbytes, -s) 10240<br />cpu time (seconds, -t) unlimited<br />max user processes (-u) 65536<br />virtual memory (kbytes, -v) unlimited<br />file locks (-x) unlimited<br />
<br />
# ps aux | egrep 'VSZ| 24291' /* Identifying the Virtual Memory Size of the Process 24291<br />
<br />USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND<br />root 24291 0.8 0.0 4656 1032 pts/30 S 09:47 0:06 /bin/bash ./generate_core_test.sh<br />root 28349 19.0 0.0 4048 736 pts/14 R+ 09:59 0:00 egrep VSZ| 24291<br />
<br />
<br />
#gdb --pid=24291 /*Using the specific Process Number to generate its core; The core will be generated in present working directory, ensure that you have enough space.<br />
<br />GNU gdb Red Hat Linux (6.6-45.fc8rh)<br />Copyright (C) 2006 Free Software Foundation, Inc.<br />GDB is free software, covered by the GNU General Public License, and you are<br />welcome to change it and/or distribute copies of it under certain conditions.<br />Type "show copying" to see the conditions.<br />There is absolutely no warranty for GDB. Type "show warranty" for details.<br />This GDB was configured as "i386-redhat-linux-gnu".<br />Attaching to process 24291<br />Reading symbols from /bin/bash...(no debugging symbols found)...done.<br />Using host libthread_db library "/lib/libthread_db.so.1".<br />Reading symbols from /lib/libtinfo.so.5...(no debugging symbols found)...done.<br />Loaded symbols for /lib/libtinfo.so.5<br />Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.<br />Loaded symbols for /lib/libdl.so.2<br />Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.<br />Loaded symbols for /lib/libc.so.6<br />Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.<br />Loaded symbols for /lib/ld-linux.so.2<br /><br />(no debugging symbols found)<br />0x00110416 in __kernel_vsyscall ()<br />
<br />
(gdb) gcore /* Creating the Core<br />Saved corefile core.24291<br />
<br />
(gdb) quit /* Quiting the gdb<br />The program is running. Quit anyway (and detach it)? (y or n) y<br />Detaching from program: /bin/bash, process 24291<br />
<br />
# ls -latrh /* The core file is generated<br />
-rw-r--r-- 1 root root 4.6M 2014-08-15 10:00 core.24291<br />
<br />
<br />
<br />
<br /></div>
Nepaliboyhttp://www.blogger.com/profile/11473496018144775029noreply@blogger.com0tag:blogger.com,1999:blog-2201141122600589070.post-75105646543203943242014-07-14T14:52:00.000-07:002014-07-14T14:52:12.703-07:00Installing Cacti with Spine Poller from Source <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-left: .25in;">
<b><u><span style="font-family: "Arial","sans-serif"; font-size: 12.0pt; line-height: 115%;">Installing
Cacti and Spine from Source</span></u></b><b><span style="font-family: "Arial","sans-serif"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b><span style="font-family: "Arial","sans-serif"; font-size: 12.0pt; line-height: 115%;"><br /></span></b></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal"><b><span style="font-family: "Arial","sans-serif";">Required Libraries
/ Tools<o:p></o:p></span></b></li>
<ol start="1" style="margin-top: 0in;" type="a">
<li class="MsoNormal"><span style="font-family: "Arial","sans-serif";">Mysql<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Arial","sans-serif";">Php<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Arial","sans-serif";">Snmp<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Arial","sans-serif";">HTTP<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Arial","sans-serif";">Miscellaneous libraries associated with above
packages<o:p></o:p></span></li>
</ol>
<li class="MsoNormal"><b><span style="font-family: "Arial","sans-serif";">Pre-work<o:p></o:p></span></b></li>
</ol>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install Apache<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install httpd httpd-devel<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install MySQL<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install mysql mysql-server<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install PHP<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install php-mysql php-pear php-common php-gd php-devel php
php-mbstring php-cli php-mysql<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install PHP-SNMP<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install php-snmp<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install NET-SNMP<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install net-snmp-utils p net-snmp-libs php-pear-Net-SMTP<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Install RRDTool<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># yum install rrdtool<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"># Recompiling PHP with socket support (if not)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/include/mysql --prefix=/usr/local/apache/php
--with-config-file-path=/usr/local/apache/php --enable-force-cgi-redirect
--disable-cgi --with-zlib --with-gettext --with-gdbm -enable-sockets<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">1.<b> ./Configure </b>/* creates Make Config file<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">2.<b>make</b> /* Builds using MakeConfig file<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">3. <b>make install</b> /* Installs Software<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing PHP SAPI module:
apache2handler<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">/usr/local/apache/build/instdso.sh
SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la
/usr/local/apache/modules<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">/usr/local/apache/build/libtool --mode=install cp libphp5.la
/usr/local/apache/modules/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">libtool: install: warning: remember to run `libtool --finish
/admin/scripts/home/tac/php-5.3.1/libs'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">chmod 755 /usr/local/apache/modules/libphp5.so<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[activating module `php5' in /usr/local/apache/conf/httpd.conf]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing PHP CLI binary:
/usr/local/apache/php/bin/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing PHP CLI man page:
/usr/local/apache/php/man/man1/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing build environment:
/usr/local/apache/php/lib/php/build/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing header files:
/usr/local/apache/php/include/php/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing helper programs:
/usr/local/apache/php/bin/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> program: phpize<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> program: php-config<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing man pages:
/usr/local/apache/php/man/man1/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> page: phpize.1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> page: php-config.1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing PEAR environment:
/usr/local/apache/php/lib/php/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[PEAR] Archive_Tar -
already installed: 1.3.3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[PEAR] Console_Getopt - already installed: 1.2.3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[PEAR] Structures_Graph- already installed: 1.0.2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[PEAR] XML_Util -
already installed: 1.2.1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">[PEAR] PEAR -
already installed: 1.9.0<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Wrote PEAR system config file at:
/usr/local/apache/php/etc/pear.conf<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">You may want to add: /usr/local/apache/php/lib/php to your
php.ini include_path<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">/admin/scripts/home/tac/php-5.3.1/build/shtool install -c
ext/phar/phar.phar /usr/local/apache/php/bin<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">ln -s -f /usr/local/apache/php/bin/phar.phar
/usr/local/apache/php/bin/phar<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Installing PDO headers:
/usr/local/apache/php/include/php/ext/pdo/<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">4. <b>copy the .ini file to
/etc/php.ini</b><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<b><span style="color: #0d0d0d; font-family: "Arial","sans-serif";">Stop and
start the httpd<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";">You will have --enable socket support - enabled <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> *write a small PHP
program <?php phpinfo(); ?> in mysystem.php /*shows system variables of php<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 1.0in;">
<span style="color: #0d0d0d; font-family: "Arial","sans-serif";"> *browse http://hostname/mysystem.php<o:p></o:p></span></div>
<ol start="3" style="margin-top: 0in;" type="1">
<li class="MsoNormal"><b><span style="font-family: "Arial","sans-serif";">Cacti Installation<o:p></o:p></span></b></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in;">
0.<b> Create username cacti in OS/MySQL ; Create database cacti;<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
#mysqladmin
-u root -p create cacti<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
1.<b> wget http://www.cacti.net/downloads/cacti-0.8.8b.tar.gz<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
2.<b> tar -xvzf cacti-0.8.8b.tar.gz<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
mysql -p cacti <
/usr/local/apache/htdocs/ips/cacti/cacti.sql<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
mysql>
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'password';<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
Query
OK, 0 rows affected (0.00 sec)<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
mysql>
flush privileges;<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
Query
OK, 0 rows affected (0.00 sec)<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
mysql>
exit<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
3. <b>vim include/config.php</b> <o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
/*
make sure these values refect your actual database/host/user/password */<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_type
= "mysql";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_default
= "cacti";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_hostname
= "localhost";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_username
= "cacti";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_password
= "password";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_port
= "3306";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$database_ssl
= false;<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
/*<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
Edit this to point to the
default URL of your Cacti install<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
ex: if your cacti install as
at http://serverip/cacti/ this<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
would be set to /cacti/<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
*/<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
$url_path
= "/cacti/";<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
4. Installing Spine Poller<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
wget
http://www.cacti.net/downloads/spine/cacti-spine-0.8.7c.tar.gz<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
./configure<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
5. <b>Settings Poller in crontab</b><o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
vim
/var/spool/cron/cacti <o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
#min
hour dayofmonth monthofyear dayofweek0-sunday commands<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
* *
* * *
/usr/bin/php /usr/local/apache/htdocs/ips/cacti/poller.php<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
6. <b>Use Spine Poller that higher degree of Efficieny that polls every one
minute - use GUI</b>.<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
-----------------------------------*-------------------------------------------------*------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b>Installing the core Plugin Architecture</b><o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
mysql
-u cacti < cacti-plugin-arch/pa.sql<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
1.<b> curl
http://docs.cacti.net/_media/plugin:thold-v0.5.0.tgz >threshold.tgz
(Threshold Management)</b><o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
curl
http://docs.cacti.net/_media/plugin:settings-v0.71-1.tgz >settings.tgz
(Mailer API)<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
tar
-xvzf threshold.tgz<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
tar
-xvzf settings.tgz<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
2. Use <b>GUI Plugin Settings</b> to Install<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
3. <b>Creating Crontab for spine Poller</b><o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
vim
/var/spool/cron/cacti <o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
#min
hour dayofmonth monthofyear dayofweek0-sunday commands<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
* *
* * *
/usr/bin/php /usr/local/apache/htdocs/ips/cacti/poller.php<o:p></o:p></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<ol start="4" style="margin-top: 0in;" type="1">
<li class="MsoNormal"><b>Use Spine Poller for higher performance through GUI interface<o:p></o:p></b></li>
<li class="MsoNormal"><b>chown -R cacti.apache rra log </b> / Changing ownership of these directories
recursively for <o:p></o:p></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in;">
drwxr-xr-x 2 cacti
users 4.0K 2012-04-03 20:49 log<o:p></o:p></div>
<br />
<div class="MsoNormal" style="margin-left: .25in;">
drwxr-xr-x 2 cacti
users 4.0K 2014-06-05 16:48 rra<o:p></o:p></div>
</div>
Nepaliboyhttp://www.blogger.com/profile/11473496018144775029noreply@blogger.com0tag:blogger.com,1999:blog-2201141122600589070.post-32092289782983095542014-07-14T14:20:00.005-07:002014-07-14T14:20:55.561-07:00Split Tunneling and DNS<div dir="ltr" style="text-align: left;" trbidi="on">
<b>1 what are different types of Tunneling available in VPN?</b><br />
<b><br /></b>
<span class="Apple-tab-span" style="white-space: pre;"> </span>1. Full Tunnel - The VPN tunnel is used for every traffic (intranet/internal), *more secure<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>2. Split Tunnel - Two TCP/IP stacks are available,seperation of corporate and internet traffic,conserve b/w<br />
<br />
<b>2. what is Split DNS?</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Split Domain Name System (DNS) allows DNS queries for certain domain names to be resolved to internal DNS servers over the VPN tunnel, while all the other DNS queries are resolved to the Internet Service Provider's (ISP) DNS servers<br />
<br />
<b>3.How are internal zones/domain provided?</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> A list of internal domain names is "pushed" to the VPN Client during initial tunnel negotiation. The VPN Client then determines whether DNS queries should be sent over the encrypted tunnel or sent unencrypted to the ISP.<br />
<br />
<b>4. Where is Split DNS used ?</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Split DNS is only used in split-tunneling environments, since traffic is sent both over the encrypted tunnel and unencrypted to the Internet.<br />
<br />
<b>5.What is Dynamic DDNS?</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Dynamic DNS (DDNS) allows automatic registration of VPN Client host names into a DNS server upon successful negotiation of the VPN connection. When a VPN Client initiates a connection, the local host name is sent to the concentrator, which in turn forwards this onto the centrally located Dynamic Host Configuration Protocol (DHCP) server for the address allocation. If the DHCP server supports DDNS, then the allocated address and host name are entered automatically. DHCP address allocation is a requirement for DDNS to function, but does not work with local address pools.<br />
<br />
<b>6. What are the different ways of handing DNS queries in split tunneling-environment?</b><br />
Split-DNS - DNS queries that match the domain names configured on the Cisco Adaptive Security Appliance (ASA) go through the tunnel, for example, to the DNS servers defined on the ASA, and others do not.<br />
<br />
Tunnel-all-DNS - only DNS traffic to the DNS servers defined on the ASA is allowed. This setting is configured in the group policy.<br />
<br />
Standard DNS - all DNS queries go through the DNS servers defined by the ASA and, in the case of a negative response, might also go to the DNS servers configured on the physical adapter.<br />
<br />
<b>7.How does OS uses split tunneling ?</b><br />
<br />
On MS Windows, DNS settings are per-interface. This means that, if split tunneling is used, DNS queries can fall back to the physical adaptor's DNS servers if the query failed on the VPN tunnel adaptor. If split tunneling without split-DNS is defined, then both internal and external DNS resolution works because it falls back to the external DNS servers.<br />
<br />
<b>8.How DNS is used in VPN?</b><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>Depending on how your VPN is configured, you might or might not use the same DNS for your VPN and for Internet. VPN's are (typically) like an additional IP stack on your system, and can have a separate DNS server address configured.<br />
<br />
If your VPN does not assign a new DNS for the VPN session then you will continue to use the DNS server(s) configured in your main Internet IP Stack. This can present a problem if the external DNS cannot resolve internal addresses<br />
<br />
If your VPN does assign a new DNS - for example by using DHCP option 6 "DNS Server" - then you can have different DNS servers for the VPN and for Internet. Your OS must support this, as must the VPN service. If you send traffic out both stacks at once this would be "Split Mode".<br />
A final option is that you might operate your VPN in Tunnel Mode, sending all communications (including Internet) through the VPN stack. In this case, when you are on the VPN all DNS would use the VPN's DNS. This is probably the most secure way since all internal traffic is sure to stay in the VPN but choke your internet bandwidth.<br />
<br />
<br />
*wonderful resources at : Cisco site,stackexchange.com,infosecisland.com<br />
<div>
<br /></div>
</div>
Nepaliboyhttp://www.blogger.com/profile/11473496018144775029noreply@blogger.com0