<br />
<b>Deprecated</b>:  Return type of Wikimedia\Rdbms\IResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php</b> on line <b>70</b><br />
<br />
<b>Deprecated</b>:  Return type of Wikimedia\Rdbms\IResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php</b> on line <b>80</b><br />
<br />
<b>Deprecated</b>:  Return type of Wikimedia\Rdbms\IResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/libs/rdbms/database/resultwrapper/IResultWrapper.php</b> on line <b>75</b><br />
<br />
<b>Deprecated</b>:  Return type of Wikimedia\Rdbms\ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php</b> on line <b>117</b><br />
<br />
<b>Deprecated</b>:  Return type of Wikimedia\Rdbms\ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/libs/rdbms/database/resultwrapper/ResultWrapper.php</b> on line <b>90</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>199</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>214</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>228</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>256</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>362</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/PHPSessionHandler.php</b> on line <b>383</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>624</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>629</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>639</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>634</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>649</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>644</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>659</b><br />
<br />
<b>Deprecated</b>:  Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>672</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>681</b><br />
<br />
<b>Deprecated</b>:  Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in <b>/var/www/html/includes/session/Session.php</b> on line <b>685</b><br />
<br />
<b>Deprecated</b>:  Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in <b>/var/www/html/includes/Message.php</b> on line <b>159</b><br />
<br />
<b>Deprecated</b>:  RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in <b>/var/www/html/includes/RawMessage.php</b> on line <b>34</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property RequestContext::$recursion is deprecated in <b>/var/www/html/includes/context/RequestContext.php</b> on line <b>354</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Parser::$mPreprocessorClass is deprecated in <b>/var/www/html/includes/parser/Parser.php</b> on line <b>280</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property PPDStack::$accum is deprecated in <b>/var/www/html/includes/parser/Preprocessor_DOM.php</b> on line <b>803</b><br />
<?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-11-10T19:43:37Z</updated>
		<subtitle>Historie editací této stránky</subtitle>
		<generator>MediaWiki 1.30.0</generator>

<br />
<b>Deprecated</b>:  Creation of dynamic property WikitextContent::$mText is deprecated in <b>/var/www/html/includes/content/TextContent.php</b> on line <b>56</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WikitextContent::$mText is deprecated in <b>/var/www/html/includes/content/TextContent.php</b> on line <b>56</b><br />
	<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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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=&#039;diff-marker&#039;&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>

<br />
<b>Deprecated</b>:  Creation of dynamic property WikitextContent::$mText is deprecated in <b>/var/www/html/includes/content/TextContent.php</b> on line <b>56</b><br />
	<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 &amp;#039;&amp;#039;&amp;#039;URL for the ARP table&amp;#039;&amp;#039;&amp;#039;. The default is &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;http://{GATEWAY_IP_ADDRESS}/cgi-bin/arp.cgi?ip_address={IP_ADDRESS}&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;, where parameters &amp;#039;&amp;#039;&amp;#039;{GATEWAY_IP_ADDRESS}&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;{IP_ADDRESS}&amp;#039;&amp;#039;&amp;#039; 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 &amp;#039;s/;//&amp;#039;&lt;/div&gt;</summary>
		<author><name>Sivosha</name></author>	</entry>

	</feed>