<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="cs">
		<id>https://wiki.freenetis.org/index.php?action=history&amp;feed=atom&amp;title=CGI_script</id>
		<title>CGI script - Historie editací</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.freenetis.org/index.php?action=history&amp;feed=atom&amp;title=CGI_script"/>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=CGI_script&amp;action=history"/>
		<updated>2026-05-10T22:00:49Z</updated>
		<subtitle>Historie editací této stránky</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.freenetis.org/index.php?title=CGI_script&amp;diff=2061&amp;oldid=prev</id>
		<title>Sivosha v 10. 12. 2013, 10:21</title>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=CGI_script&amp;diff=2061&amp;oldid=prev"/>
				<updated>2013-12-10T10:21:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;cs&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Starší verze&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Verze z 10. 12. 2013, 10:21&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Řádek 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Řádek 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[cs: CGI ]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[cs: CGI &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;skripty&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[ru: CGI скрипт]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[ru: CGI скрипт]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sivosha</name></author>	</entry>

	<entry>
		<id>https://wiki.freenetis.org/index.php?title=CGI_script&amp;diff=2059&amp;oldid=prev</id>
		<title>Sivosha: Založena nová stránka: cs: CGI  ru: CGI скрипт  Support for CGI scripts can be enabled in the Settings section.  = Getting MAC address =  FreenetIS currently allows to obtain MAC ad...</title>
		<link rel="alternate" type="text/html" href="https://wiki.freenetis.org/index.php?title=CGI_script&amp;diff=2059&amp;oldid=prev"/>
				<updated>2013-12-10T10:20:57Z</updated>
		
		<summary type="html">&lt;p&gt;Založena nová stránka: &lt;a href=&quot;http://wiki.freenetis.org/index.php/CGI&quot; class=&quot;extiw&quot; title=&quot;cs:CGI&quot;&gt;cs: CGI &lt;/a&gt; &lt;a href=&quot;http://wiki.freenetis.org/index.php/CGI_%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82&quot; class=&quot;extiw&quot; title=&quot;ru:CGI скрипт&quot;&gt;ru: CGI скрипт&lt;/a&gt;  Support for CGI scripts can be enabled in the Settings section.  = Getting MAC address =  FreenetIS currently allows to obtain MAC ad...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nová stránka&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[cs: CGI ]]&lt;br /&gt;
[[ru: CGI скрипт]]&lt;br /&gt;
&lt;br /&gt;
Support for CGI scripts can be enabled in the Settings section.&lt;br /&gt;
&lt;br /&gt;
= Getting MAC address =&lt;br /&gt;
&lt;br /&gt;
FreenetIS currently allows to obtain MAC address in addition to SNMP and using custom CGI scripts that you put directly on the router in question. The script should only return MAC address.&lt;br /&gt;
&lt;br /&gt;
The path to the script is defined by permit CGI scripts settings, specifically in the Network tab item '''URL for the ARP table'''. The default is '''&amp;lt;nowiki&amp;gt;http://{GATEWAY_IP_ADDRESS}/cgi-bin/arp.cgi?ip_address={IP_ADDRESS}&amp;lt;/nowiki&amp;gt;''', where parameters '''{GATEWAY_IP_ADDRESS}''' and '''{IP_ADDRESS}''' will be replaced by IP address and gateway IP address, in which are searched for MAC address.&lt;br /&gt;
&lt;br /&gt;
== Getting the MAC address fromf the ISC DHCP server ==&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 . /usr/local/lib/bashlib&lt;br /&gt;
 echo &amp;quot;Content-type: text/plain&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 ip_address=`param ip_address`&lt;br /&gt;
 cat /var/lib/dhcp/dhcpd.leases | grep -A6 $ip_address | grep &amp;quot;hardware ethernet&amp;quot; | cut -d &amp;quot; &amp;quot; -f 5 | sed 's/;//'&lt;/div&gt;</summary>
		<author><name>Sivosha</name></author>	</entry>

	</feed>