<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-456199839424071339</id><updated>2026-05-19T01:37:19.496+12:00</updated><category term="HowTo"/><category term="Linux"/><category term="Tips"/><category term="Linux Tips"/><category term="Cisco"/><category term="nagios"/><category term="docker"/><category term="mikrotik"/><category term="php"/><category term="Gadgets"/><category term="Scripting"/><category term="docker-compose"/><category term="mongo"/><category term="snmp"/><category term="vmware"/><title type='text'>NZ Tik</title><subtitle type='html'>My day-job notes</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>54</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-4513355119677084530</id><published>2019-08-15T22:01:00.000+12:00</published><updated>2019-08-15T22:01:11.506+12:00</updated><title type='text'>Why won&#39;t react re-render on state change?</title><content type='html'>If you mutate the state directly it won&#39;t re-render.&lt;br /&gt;
&lt;br /&gt;
Instead of...&lt;br /&gt;
&lt;br /&gt;
[cart, setCart] = useState([1,2,3])&lt;br /&gt;
&lt;br /&gt;
const updateCart = (item) =&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; prevCart = cart&lt;br /&gt;
&amp;nbsp; prevCart.push(item)&lt;br /&gt;&amp;nbsp; setCart(prevCart)&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Do this....&lt;br /&gt;
&lt;br /&gt;
const updateCart = (item) =&amp;gt; {&lt;br /&gt;
&amp;nbsp; let prevCart = []&lt;br /&gt;
&amp;nbsp; cart.forEach(item =&amp;gt; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; prevCart.push(item)&lt;br /&gt;
&amp;nbsp; });&lt;br /&gt;
&amp;nbsp; setCart(prevCart)&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/4513355119677084530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2019/08/why-wont-react-re-render-on-state-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/4513355119677084530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/4513355119677084530'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2019/08/why-wont-react-re-render-on-state-change.html' title='Why won&#39;t react re-render on state change?'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-8828308603282478920</id><published>2019-08-05T14:06:00.002+12:00</published><updated>2019-08-05T14:10:12.362+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="mongo"/><title type='text'>Backup dockerized mongodb</title><content type='html'>&lt;div&gt;
### Backup mongo db container on docker host&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
```&lt;/div&gt;
&lt;div&gt;
docker run --rm --network [network] --link [db_container]:mongo -v /Users/sam/db_backups:/backup mongo bash -c &#39;mongodump -u [username] -p [password] --out /backup --host mongo:27017&#39;&lt;/div&gt;
&lt;div&gt;
```&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
### Restore mongodb database&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
```&lt;/div&gt;
&lt;div&gt;
docker run --rm --network [network] --link [db_container]:mongo -v /Users/sam/db_backups:/backup mongo bash -c &#39;mongorestore -u [mong_username] -p [mong_password] /backup --host mongo:27017&#39;&lt;/div&gt;
&lt;div&gt;
```&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The restore will wipe everything that existed before-hand.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/8828308603282478920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2019/08/backup-dockerized-mongodb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8828308603282478920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8828308603282478920'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2019/08/backup-dockerized-mongodb.html' title='Backup dockerized mongodb'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-6383973177499065584</id><published>2019-08-05T09:33:00.000+12:00</published><updated>2019-08-05T14:09:53.539+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="docker-compose"/><title type='text'>Attach existing volume to container with docker-compose</title><content type='html'>`docker volume create my_vol`&lt;br /&gt;
&lt;br /&gt;
in docker-compose.yml, declare volumes with property `external: true`. This tells docker compose not to create volumes.&lt;br /&gt;
&lt;br /&gt;
If external = false, then docker compose will prefix the volume declared with the directory name.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
/home&lt;br /&gt;
&amp;nbsp; /sam&lt;br /&gt;
&amp;nbsp; &amp;nbsp; /docker&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; /my_app&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - docker-compose.yml&lt;br /&gt;
&lt;br /&gt;
The volume name will end up being `my_app_my_vol`&lt;br /&gt;
&lt;br /&gt;
Example docker-compose.yml:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
version: &quot;3&quot;&lt;br /&gt;
volumes:&lt;br /&gt;
&amp;nbsp; my_vol:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; external: true&lt;br /&gt;
&lt;br /&gt;
services:&lt;br /&gt;
&amp;nbsp; my_app:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; volumes:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; - my_vol:/data &amp;lt;-- attach volume to /data inside container&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/6383973177499065584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2019/08/attach-existing-volume-to-container.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6383973177499065584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6383973177499065584'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2019/08/attach-existing-volume-to-container.html' title='Attach existing volume to container with docker-compose'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-5249600431919752641</id><published>2014-07-25T15:28:00.001+12:00</published><updated>2014-07-25T15:28:12.820+12:00</updated><title type='text'>How to remove stale vcenter licenses</title><content type='html'>http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=2054008&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/5249600431919752641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2014/07/how-to-remove-stale-vcenter-licenses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5249600431919752641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5249600431919752641'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2014/07/how-to-remove-stale-vcenter-licenses.html' title='How to remove stale vcenter licenses'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-1208188901532264518</id><published>2014-03-12T10:32:00.000+13:00</published><updated>2014-03-12T10:32:43.690+13:00</updated><title type='text'>Setup net-snmp on Ubuntu 12.04</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;This is the bare minimum to set up snmp on Ubuntu to allow monitoring from Cacti or similar&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;apt-get install snmpd snmp-mibs-downloader&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;snmpconf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&amp;nbsp;- Choose /etc/snmp/snmpd.conf&lt;br /&gt;
&amp;nbsp;- Choose snmpd.conf&lt;br /&gt;
&amp;nbsp;- Choose 3 for &#39;Access Control&#39;&lt;br /&gt;
&amp;nbsp;- Choose 3 for RO community&lt;br /&gt;
&amp;nbsp;- Type community name&lt;br /&gt;
&amp;nbsp;- Press enter or type allowed network/host&lt;br /&gt;
&amp;nbsp;- Press enter to allow all OID&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mv snmpd.conf /etc/snmp/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;service snmpd restart&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/1208188901532264518/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2014/03/setup-net-snmp-on-ubuntu-1204.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/1208188901532264518'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/1208188901532264518'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2014/03/setup-net-snmp-on-ubuntu-1204.html' title='Setup net-snmp on Ubuntu 12.04'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-5320051014390739968</id><published>2014-02-19T15:50:00.001+13:00</published><updated>2014-02-19T15:50:07.092+13:00</updated><title type='text'>IPTables example</title><content type='html'>&lt;b&gt;Allow tcp port 80 from source address 192.168.10/24&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iptables -A INPUT -i 10 -P TCP -S 192.168.1.0/24 --dport 80 -j ACCEPT&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Drop tcp port 80 from range of addresses&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iptables -A INPUT -i 10 -p tcp --dport 80 -m iprange --src-range 192.168.1.1-192.168.1.254 -j DROP&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;List chain with rule numbers&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iptables -nL INPUT -v --line-numbers&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Delete particular rule&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;iptables -D INPUT 10&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/5320051014390739968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2014/02/iptables-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5320051014390739968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5320051014390739968'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2014/02/iptables-example.html' title='IPTables example'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-695671750172820463</id><published>2013-12-18T11:14:00.000+13:00</published><updated>2013-12-18T11:14:11.948+13:00</updated><title type='text'>DHCP option 121</title><content type='html'>&lt;a href=&quot;http://tools.ietf.org/html/rfc3442&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;http://tools.ietf.org/html/rfc3442&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This is used to add a &lt;i&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing&quot;&gt;classless&lt;/a&gt;&lt;/i&gt;&amp;nbsp;static route to the DHCP clients.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To add option 121 to a Mikrotik DHCP server, it&#39;s value is specified in HEX. The format is as follows.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;0xnnddddddddgggggggg&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;where n=mask, d=destination, g=gateway.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To convert ip address to HEX, you convert each octet, so 192=C0, 168=A8, 55=37, 1=01&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can use a tool such as&amp;nbsp;&lt;a href=&quot;http://www.miniwebtool.com/ip-address-to-hex-converter/?ip=192.168.55.1&quot;&gt;http://www.miniwebtool.com/ip-address-to-hex-converter/?ip=192.168.55.1&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To add a route to the destination network of 192.168.55.0/24 via gateway 172.16.10.1.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/ip dhcp-server option add name=classlessroutes code=121 value=0x18C0A837AC100A01&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;where 18 is 24 in hex.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;*note: depending on the subnet mask, you may only need to specify 0-4 octets. In fact only the non-zero, or network portion of the subnet. Here is a table from the RFC.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre class=&quot;newpage&quot; style=&quot;page-break-before: always;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;             subnet mask           Number of octets
                     0                        0
                  1- 8                       1
                  9-16                      2
                 17-24                     3
                 25-32                     4&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;newpage&quot; style=&quot;page-break-before: always;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;newpage&quot; style=&quot;page-break-before: always;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;so for the /24 subnet in the above example, we only needed to specify 3 octets - &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;C0A837&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/695671750172820463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2013/12/dhcp-option-121.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/695671750172820463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/695671750172820463'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2013/12/dhcp-option-121.html' title='DHCP option 121'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-5452396471812394866</id><published>2013-11-02T20:54:00.000+13:00</published><updated>2013-11-02T20:56:34.132+13:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mikrotik"/><title type='text'>Mikrotik Bridge Horizon</title><content type='html'>To achieve similar functionality to Cisco&#39;s private VLANS, where all ports are on the same L2 segment, but cannot exchange packets, you can use Mikrotik&#39;s Bridge Horizon feature.&lt;br /&gt;
&lt;br /&gt;
Basically, every port in a bridge is assigned a horizon value, and RouterOS will only forward frames to other interfaces in the bridge that have &lt;i&gt;different&lt;/i&gt; horizon values.&lt;br /&gt;
&lt;br /&gt;
This means that you assign the same horizon value to the interfaces that you &lt;b&gt;don&#39;t&lt;/b&gt; want to be able to communicate.&lt;br /&gt;
&lt;br /&gt;
For example, you want to bridge all your customers and use a single /24 subnet and the same gateway. Typically this is bad and poses a huge security risk, not to mention performance issues. If you assign the same horizon value to the customer interfaces, then the router will not forward traffic between customers. Customer A will not be able to ping Customer B.&lt;br /&gt;
&lt;br /&gt;
If you had a server, such as an IP-PBX that all customers needed to access, and you were lazy and added it to the bridge, then you would assign a different horizon value to that port.</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/5452396471812394866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2013/11/mikrotik-bridge-horizon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5452396471812394866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5452396471812394866'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2013/11/mikrotik-bridge-horizon.html' title='Mikrotik Bridge Horizon'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-6325372041689220680</id><published>2013-10-21T13:46:00.000+13:00</published><updated>2013-10-21T13:46:07.943+13:00</updated><title type='text'>mysql timezones</title><content type='html'>Add the timezone names to the mysql table:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;root@db1:~# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;mysql&amp;gt;&amp;nbsp;CONVERT_TZ( &#39;datetime&#39;, &#39;from_timezone&#39;, &#39;to_timezone&#39;)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/6325372041689220680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2013/10/mysql-timezones.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6325372041689220680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6325372041689220680'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2013/10/mysql-timezones.html' title='mysql timezones'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-6024007771780328203</id><published>2013-09-26T11:17:00.000+12:00</published><updated>2013-09-26T11:29:10.683+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="mikrotik"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>Mikrotik NAT, access services via external IP from inside the network</title><content type='html'>The laptop at 192.168.1.10 wants to communicate with the web server on 192.168.1.10 via the external IP address of the Mikrotik router at 1.1.1.1.&lt;br /&gt;
&lt;br /&gt;
Say you have a service such as webmail, which has a nat rule to allow access from an external network...&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMkWeKkN5kZwHRNb8AqdzCHLEx8BgbJivg4WGLnOgxIpN94GQxDp3ILgE99u5XEO5L7ekqLAC8BH5Ay2NT1r8wlgylil1X1tnxh5FZ5b3E6XNTlzW8sEpcXKwEMMMwIMiqPTiPp2Mn8Blj/s1600/asdf.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMkWeKkN5kZwHRNb8AqdzCHLEx8BgbJivg4WGLnOgxIpN94GQxDp3ILgE99u5XEO5L7ekqLAC8BH5Ay2NT1r8wlgylil1X1tnxh5FZ5b3E6XNTlzW8sEpcXKwEMMMwIMiqPTiPp2Mn8Blj/s1600/asdf.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/ip firewall nat add chain=dstnat action=dst-nat dst-address=1.1.1.1 protocol=tcp dst-port=888 to-port=80 to-address=192.168.1.10&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This works fine of course, so users set up the shortcut to &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;http://1.1.1.1:888&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Problem is when they are on the internal network it doesn&#39;t work, because the Mikrotik router won&#39;t send the reply data back out the same interface. A work-around is to create a src-nat rule directly below the dst-nat rule like this.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/ip firewall nat add chain=srcnat action=masquerade src-address=192.168.1.0/24 dst-address=192.168.1.10&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Goes something like this..&lt;br /&gt;
&lt;br /&gt;
1. Client initiates http request to 1.1.1.1:888&lt;br /&gt;
2. MT receives and translates destination to 192.168.1.10 as per 1st rule&lt;br /&gt;
3. MT then translates the src address from 192.168.1.160 to 192.168.1.1 as per 2nd rule&lt;br /&gt;
4. Now communication appears to be between 192.168.1.160 and 192.168.1.1&lt;br /&gt;
&lt;br /&gt;
Happy days.</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/6024007771780328203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2013/09/accessing-internal-services-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6024007771780328203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6024007771780328203'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2013/09/accessing-internal-services-via.html' title='Mikrotik NAT, access services via external IP from inside the network'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMkWeKkN5kZwHRNb8AqdzCHLEx8BgbJivg4WGLnOgxIpN94GQxDp3ILgE99u5XEO5L7ekqLAC8BH5Ay2NT1r8wlgylil1X1tnxh5FZ5b3E6XNTlzW8sEpcXKwEMMMwIMiqPTiPp2Mn8Blj/s72-c/asdf.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-650611035718792168</id><published>2013-03-11T12:41:00.003+13:00</published><updated>2013-03-11T12:41:37.720+13:00</updated><title type='text'>Export from LDAP with ldapsearch example</title><content type='html'>This does an unauthenticated bind and exports the Framed IP Address from OpenLDAP&lt;br /&gt;
&lt;br /&gt;
&#39;-x&#39; simple, no SASL&lt;br /&gt;
&#39;-D&#39; bind as&lt;br /&gt;
&#39;-w&#39; password&lt;br /&gt;
&#39;-b&#39; search base (starting point)&lt;br /&gt;
&#39;-s sub&#39; search sub tree&lt;br /&gt;
&lt;br /&gt;
ldapsearch -x -LLL -D &#39;cn=admin,dc=domain,dc=net&#39; -w password -b &#39;ou=users,dc=domain,dc=net&#39; -s sub radiusFramedIPAddress &amp;gt;&amp;gt; /var/tmp/radiusUsers.txt</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/650611035718792168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2013/03/export-from-ldap-with-ldapsearch-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/650611035718792168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/650611035718792168'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2013/03/export-from-ldap-with-ldapsearch-example.html' title='Export from LDAP with ldapsearch example'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-9108718617952023965</id><published>2012-09-10T10:57:00.001+12:00</published><updated>2012-09-10T10:57:20.208+12:00</updated><title type='text'>Mikrotik Dot Q-in-Q</title><content type='html'>How to create a Q-in-Q or 802.1ad double-tagged interface on a Mikrotik Router:&lt;br /&gt;
&lt;br /&gt;
Stripped down 802.1ad packet:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;DST-MAC | SRC-MAC | 802.1Q outer | 802.1Q inner | &amp;nbsp;PAYLOAD&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/interface vlan&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;add interface=ether1 name=outervlan vlan-id=600&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;add interface=outervlan name=innervlan vlanid=1500&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The router will strip the outer vlan tag to expose the inner vlan. vlan 1500 is essentially tunnelled using the outer vlan (600) across the provider network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/9108718617952023965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/09/mikrotik-dot-q-in-q.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/9108718617952023965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/9108718617952023965'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/09/mikrotik-dot-q-in-q.html' title='Mikrotik Dot Q-in-Q'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-7600515878069905941</id><published>2012-06-26T15:00:00.000+12:00</published><updated>2012-06-26T15:00:05.083+12:00</updated><title type='text'>MPLS Routing Loop</title><content type='html'>&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Certain destination IP addresses are not routable within certain parts of the network, and appear to loop. &amp;nbsp;This has been narrowed down to the label swap on a Cisco 6500 for the next hop of a GRE tunnel [point2point].&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;As per the LFIB, the Cisco 6500 is appending label &lt;span style=&quot;color: red;&quot;&gt;133 for network 10.10.32.1&lt;/span&gt; and sending it out tun0, but appears to be snatching the packet back again, as it has a &lt;span style=&quot;color: blue;&quot;&gt;local label of 133 for the network 10.10.32.70/32&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;##Traceroute from test router (simplified for readability)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;10.10.64.220&lt;/span&gt; and &lt;span style=&quot;color: #38761d;&quot;&gt;10.8.8.2&lt;/span&gt; are c6500 interfaces, the latter being the GRE interface.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[admin@rtr3] &amp;gt; /tool trace 10.10.32.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;# ADDRESS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;STATUS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;1 10.10.32.137 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=873,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**local-label for 10.10.32.1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;2 &lt;span style=&quot;color: #38761d;&quot;&gt;10.10.64.220&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=71,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;local-label for 10.10.32.1&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;**a&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: red; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;ppends label 133 as per LFIB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;3 &lt;span style=&quot;color: #38761d;&quot;&gt;10.8.8.2&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=133,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**takes the packet back as per LIB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;4 10.10.64.214 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=218,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**appends label for 10.10.32.70&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;5 10.10.64.135 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=422,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**pops label&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;6 10.10.64.66 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**reads original ip header and appends&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label for 10.10.32.1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;7 10.10.64.67 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;MPLS:L=1032,E=0&amp;gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;8 10.10.64.134 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=835,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;**&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;9 &lt;span style=&quot;color: #38761d;&quot;&gt;10.10.64.220&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MPLS:L=71,E=0&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;** and carries on until the TTL expires&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#show mpls ldp bindings local-label 71&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; lib entry: 10.10.32.1/32, rev 1474&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local binding: &amp;nbsp;label: 71&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;span style=&quot;color: blue;&quot;&gt;show mpls ldp bindings local-label 133&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; lib entry: 10.10.32.70/32, rev 636&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; local binding: &amp;nbsp;label: &lt;span style=&quot;color: blue;&quot;&gt;133&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;#show mpls forwarding-table labels 71&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Local &amp;nbsp; &amp;nbsp; &amp;nbsp;Outgoing &amp;nbsp; Prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Bytes Label &amp;nbsp; Outgoing &amp;nbsp; Next Hop&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;Label &amp;nbsp; &amp;nbsp; &amp;nbsp;Label &amp;nbsp; &amp;nbsp; &amp;nbsp;or Tunnel Id &amp;nbsp; &amp;nbsp; Switched &amp;nbsp; &amp;nbsp; &amp;nbsp;interface&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;71 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;133 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;10.10.32.1/32 &amp;nbsp;22346897 &amp;nbsp; &amp;nbsp; &amp;nbsp;Tu0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;point2point&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;No routing loops occur when the router preceeding the c6500 pops the label. This is obviously due to using the routing table.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Possible solutions perhaps specify next hop IP for the label rather than the p2p interface, somehow preventing local labels from having the same labels as the remote gre end point.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I believe if I rebuild the LFIB, this problem will go away... until next time. I would like to find a solution, whether it be a bug fix or best practice, or perhaps something that I am missing or haven&#39;t RTFM&#39;d properly.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/7600515878069905941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/06/mpls-routing-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/7600515878069905941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/7600515878069905941'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/06/mpls-routing-loop.html' title='MPLS Routing Loop'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-8500296712569007855</id><published>2012-05-17T17:06:00.001+12:00</published><updated>2012-05-17T17:06:26.487+12:00</updated><title type='text'>BIND DNS server slave config on ubuntu</title><content type='html'>&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get install bind9&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit named.conf.options as usual.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Edit named.conf.local and add zone&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;zone &quot;test.net&quot; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type slave;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file &quot;db.test.net&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; masters { 172.16.99.200; };&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;where 172.16.99.200 is the master DNS server. The above relative syntax of the file will be /var/cache/bind/*. If you want to specify a particular location such as...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;zone &quot;test.net&quot; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type slave;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file &quot;/etc/bind/zones/db.test.net&quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; masters { 172.16.99.200; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;...then you may need to modify permissions as well as apparmour to allow writing to the directory.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;chown -R root:bind /etc/bind/zones&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;chmod -R 770 /etc/bind/zones&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;nano /etc/apparmor.d/usr.sbin.named&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; add this line somewhere:&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; /etc/bind/slave/* rw,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/etc/init.d/bind9 restart&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; on the slave and check the zone directory to see if populated. If not&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;tail -f /var/log/syslog&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; will help troubleshoot.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/8500296712569007855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/05/bind-dns-server-slave-config-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8500296712569007855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8500296712569007855'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/05/bind-dns-server-slave-config-on-ubuntu.html' title='BIND DNS server slave config on ubuntu'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-866568262025629971</id><published>2012-04-23T14:33:00.000+12:00</published><updated>2012-04-23T14:33:10.758+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="nagios"/><title type='text'>Link Nagios to root of website</title><content type='html'>&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;By default nagios is accessible at&lt;b&gt; http://nagiosserver/nagios3&lt;/b&gt;. To have it accessible at http://nagiosserver, link the htdocs and stylesheet to /var/www (or wherever the root is located).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;rm -r /var/www&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ln -s /usr/share/nagios3/htdocs/ /var/www&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ln -s /etc/nagios3/stylesheets /var/www&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can change &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/var/www&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; to &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/var/www/whateeve&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;r, so that it is accessible at &lt;b&gt;http://nagiosserver/whatver&lt;/b&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/866568262025629971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/04/link-nagios-to-root-of-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/866568262025629971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/866568262025629971'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/04/link-nagios-to-root-of-website.html' title='Link Nagios to root of website'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-7190349688809201419</id><published>2012-04-18T14:25:00.002+12:00</published><updated>2012-04-23T10:55:47.769+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>VMWare ESX tools install on Ubuntu</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This is to install the open vm tools, which works on all Ubuntu distributions I have tried.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get install linux-headers-virtual&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get install --no-install-recommends open-vm-dkms&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get install --no-install-recommends open-vm-tools&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/7190349688809201419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/04/vmware-esx-tools-install-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/7190349688809201419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/7190349688809201419'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/04/vmware-esx-tools-install-on-ubuntu.html' title='VMWare ESX tools install on Ubuntu'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-786821582273805154</id><published>2012-04-16T12:33:00.002+12:00</published><updated>2012-04-16T12:33:32.637+12:00</updated><title type='text'>How to tell if Linux kernel is 32 or 64bit</title><content type='html'>&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;uname -m&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
#32 bit&lt;br /&gt;
i686&lt;br /&gt;
&lt;br /&gt;
#64bit&lt;br /&gt;
x86_64</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/786821582273805154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/04/how-to-tell-if-linux-kernel-is-32-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/786821582273805154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/786821582273805154'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/04/how-to-tell-if-linux-kernel-is-32-or.html' title='How to tell if Linux kernel is 32 or 64bit'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-1893899578629646011</id><published>2012-04-05T11:07:00.001+12:00</published><updated>2012-04-05T11:07:51.549+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco"/><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Make tftpd-hpa play nicely with Cisco</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The following was tested on Ubuntu 11.10. This is completely insecure, make sure it is confined to a LAN environment, i.e. not publicly accessibly.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
apt-get install tftpd-hpa&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;mkdir /tftp&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;chmod 777 /tftp&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;nano /etc/default/tftpd-hpa&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: x-small;&quot;&gt;# /etc/default/tftpd-hpa&lt;br /&gt;TFTP_USERNAME=&quot;tftp&quot;&lt;br /&gt;TFTP_DIRECTORY=&quot;/tftp&quot;&lt;br /&gt;TFTP_ADDRESS=&quot;0.0.0.0:69&quot;&lt;br /&gt;TFTP_OPTIONS=&quot;--secure --create -v&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;service tftpd-hpa restart&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;--create&lt;/b&gt; is needed to allow client to create new file. Otherwise you will get error stating &#39;File does not exist&#39; or similar.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;--secure&lt;/b&gt; is so that the client does not need to specify an absolute path such as /tftp/file. The root of the tftp server becomes TFTP_DIRECTORY.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;-v&lt;/b&gt; is for verbose logging in /var/syslog&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;culv-lns1#copy run tftp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Address or name of remote host []? 10.2.2.40&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Destination filename [culv-lns1-confg]?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;1446 bytes copied in 0.168 secs (8607 bytes/sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;_________________________________________________&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;culv-lns1#copy tftp://10.2.2.40/test.0 flash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Destination filename [test.0]?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Accessing tftp://
10.2.2.40&amp;nbsp;/test.0...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Loading test.0 from&amp;nbsp;
10.2.2.40&amp;nbsp;&amp;nbsp;(via GigabitEthernet0/0): !&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;[OK - 816 bytes]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;816 bytes copied in 0.408 secs (2000 bytes/sec)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/1893899578629646011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/04/make-tftpd-hpa-play-nicely-with-cisco.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/1893899578629646011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/1893899578629646011'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/04/make-tftpd-hpa-play-nicely-with-cisco.html' title='Make tftpd-hpa play nicely with Cisco'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-3523164622956319464</id><published>2012-02-21T11:58:00.000+13:00</published><updated>2012-02-21T11:58:40.744+13:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux Tips"/><title type='text'>Backup OpenLDAP Ubuntu</title><content type='html'>The default database location is /usr/lib/ldap&lt;br /&gt;
&lt;br /&gt;
It is recommended to backup to LDIF so it is transportable. Use slapcat to export.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;slapcat -v -l /backups/ldapbackup.ldif&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;To restore use slapadd.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;cd /usr/lib/ldap&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;rm *&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;slapadd -l ldapbackup.ldif&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;-v is verbose output&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;-l specifies the ldif format&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/3523164622956319464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/02/backup-openldap-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/3523164622956319464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/3523164622956319464'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/02/backup-openldap-ubuntu.html' title='Backup OpenLDAP Ubuntu'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-8736413579213603142</id><published>2012-02-14T14:18:00.000+13:00</published><updated>2012-04-27T11:58:55.505+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux Tips"/><category scheme="http://www.blogger.com/atom/ns#" term="nagios"/><title type='text'>nagios bash: ./check_disk: No such file or directory [UBUNTU]</title><content type='html'>Reminder: Install plugins with &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;apt-get install nagios-plugins&lt;/span&gt; rather than copying from another server.&lt;br /&gt;
&lt;br /&gt;
May have been missing an interpreter or something.</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/8736413579213603142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/02/nagios-bash-checkdisk-no-such-file-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8736413579213603142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8736413579213603142'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/02/nagios-bash-checkdisk-no-such-file-or.html' title='nagios bash: ./check_disk: No such file or directory [UBUNTU]'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-4368644192226357912</id><published>2012-02-14T09:57:00.000+13:00</published><updated>2012-02-14T09:57:31.047+13:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Delete Files Older Than x Days</title><content type='html'>Applies to FreeBSD and Linux.&lt;br /&gt;
&lt;br /&gt;
/mnt&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; /backup1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/server1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /folder1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /folder2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /backup1.tar.gz &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/server2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/server3&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;find /mnt/backup1 -maxdepth 2 -name &#39;*.gz&#39; -mtime +7 -exec rm {} \;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This will find and remove files that are 7 days old. It will search 2 folders deep from /mnt/backup1. It will not search folder1 or folder2. The single quotes around the name search string are required at least on FreeBSD.</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/4368644192226357912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/02/delete-files-older-than-x-days.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/4368644192226357912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/4368644192226357912'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/02/delete-files-older-than-x-days.html' title='Delete Files Older Than x Days'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-8658029492827650293</id><published>2012-02-03T16:43:00.003+13:00</published><updated>2012-04-27T11:45:17.356+12:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="nagios"/><category scheme="http://www.blogger.com/atom/ns#" term="snmp"/><title type='text'>HP SNMP agents and Ubuntu</title><content type='html'>&lt;span style=&quot;background-color: white; color: #222222; font-family: inherit; line-height: 18px;&quot;&gt;This will allow you to monitor HP hardware, i.e. RAID controller, degraded disk etc. This was done on Ubuntu 10.04&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: inherit; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; line-height: 18px;&quot;&gt;wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;chmod +x bootstrap.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;./bootstrap.sh -r ProLiantSupportPack &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;(this adds the HP repo to apt&#39;s sources)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;apt-key add GPG-KEY-ProLiantSupportPack&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;aptitude update&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;apt-get install&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;hp-snmp-agents&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;apt-get install net-snmp &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;(or &lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;apt-get install snmp &lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 18px;&quot;&gt;for later versions&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 18px;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/sbin/hpsnmpconfig - &lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Follow the prompts&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;nano /etc/default/snmpd&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Arial, Helvetica, sans-serif;&quot;&gt;modify this line, replacing x.x.x.x with your public facing IP if needed&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SNMPDOPTS=&#39;-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1 x.x.x.x&#39;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
##########################################&lt;br /&gt;
&lt;br /&gt;
Restart snmp&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/etc/init.d/snmpd restart&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: inherit;&quot;&gt;Start the agents!&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;/etc/init.d/hp-snmp-agents start&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 18px;&quot;&gt;
&lt;span style=&quot;color: #222222; font-family: inherit;&quot;&gt;Test with&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18px;&quot;&gt;snmpwalk -v 1 -c rocom localhost 1.3.6.1.4.1.232&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/8658029492827650293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/02/hp-snmp-agents-and-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8658029492827650293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/8658029492827650293'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/02/hp-snmp-agents-and-ubuntu.html' title='HP SNMP agents and Ubuntu'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-6701294092726495849</id><published>2012-01-12T09:58:00.005+13:00</published><updated>2012-01-12T09:59:48.207+13:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Tips"/><title type='text'>Display PHP errors on web page</title><content type='html'>So you don&#39;t have to troll logs when your web page doesn&#39;t display what is expected, copy and paste this to the top of your PHP code.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;ini_set(&#39;display_errors&#39;, 1);&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot; /&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;ini_set(&#39;log_errors&#39;, 1);&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot; /&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;ini_set(&#39;error_log&#39;, dirname(__FILE__) . &#39;/error_log.txt&#39;);&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot; /&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;error_reporting(E_ALL);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: inherit;&quot;&gt;&lt;span style=&quot;letter-spacing: 1px; line-height: 16px; text-align: left;&quot;&gt;You will probably want to remove it once in production.&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/6701294092726495849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2012/01/display-php-errors-on-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6701294092726495849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/6701294092726495849'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2012/01/display-php-errors-on-web-page.html' title='Display PHP errors on web page'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-779046482249261574</id><published>2011-12-21T09:09:00.000+13:00</published><updated>2011-12-21T09:09:12.038+13:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Scripting"/><title type='text'>Mikrotik For Loop</title><content type='html'>maori port scan.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;:for p from=20 to=80 do={:put $p;/system telnet 10.32.99.166 $p}&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/779046482249261574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2011/12/mikrotik-for-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/779046482249261574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/779046482249261574'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2011/12/mikrotik-for-loop.html' title='Mikrotik For Loop'/><author><name>sam</name><uri>http://www.blogger.com/profile/02626831655339197037</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-456199839424071339.post-5614618712167534779</id><published>2011-11-14T20:37:00.001+13:00</published><updated>2011-11-14T20:44:28.501+13:00</updated><title type='text'>rsync example</title><content type='html'>The&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; -u &lt;/span&gt;switch in rsync does not work between different file systems so it seems. It is supposed to ignore existing files in the destination directory, but it doesn&#39;t - well at least it doesn&#39;t between UFS and EXT3 in my doings.&lt;br /&gt;
&lt;br /&gt;
Using the&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt; --size-only&lt;/span&gt; switch along side &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;-u&lt;/span&gt; is a work around.&lt;br /&gt;
&lt;br /&gt;
Example rsync for my reference:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;rsync -airu --size-only /source/dir /dest/dir&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-a archive mode&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-i itemise change summary&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-r recursive&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;-u ignore existing files&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;man rsync&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nztik.blogspot.com/feeds/5614618712167534779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nztik.blogspot.com/2011/11/rsync-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5614618712167534779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/456199839424071339/posts/default/5614618712167534779'/><link rel='alternate' type='text/html' href='http://nztik.blogspot.com/2011/11/rsync-example.html' title='rsync example'/><author><name>sam</name><uri>http://www.blogger.com/profile/04510375993114904597</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>