Audiovox P965 Datenblatt

Stöbern Sie online oder laden Sie Datenblatt nach Software Audiovox P965 herunter. Audiovox P965 Datasheet Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 280
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Mikrotik - Part 7

PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information.PDF generated at: Thu, 19 Dec 2013 20:05:50 CE

Seite 2 - Contents

Supported Hardware7Soekris net4801-48/50 +lan16413.22 All 7 (3+4) ethernet works, USB works (tested with Huawei 3G modem), extra serial port works. An

Seite 3

API in Java97 }Hasher.javaHelper functions to perform some tasks package libAPI; /* * Helper.java * * Created on 08 June 2007, 11:25 * * To chang

Seite 4 - MikroTik RouterOS

API in Java98 String hex = Integer.toHexString(0xFF & messageDigest[i]); if (hex.length() == 1) { hexString.appe

Seite 5 - Hardware

API in Java99 private DataInputStream in = null; LinkedBlockingQueue queue = null; /** * Creates a new instance of CommandRead * @param in

Seite 6

API in Java100 return; } sk = a ^ 0xC00000; }

Seite 7 - Ethernet chipsets

API in Java101 } else { try { queue.put(s); } catch (InterruptedException ex) {

Seite 8

API in Java102 WriteCommand setCommand(String command) { this.command = command.trim(); return this; } String getCommand() { r

Seite 9 - Embedded Controllers

API in Java103 for (byte c : command.getBytes("US-ASCII")) { ret[i++] = c; } } else

Seite 10 - 3G cards

API In CPP104API In CPPThis is written in C++. The code is based highly on the code from API In C. I like the way this was done in respectto how easy

Seite 11 - Supported Hardware

API In CPP105 any code or documentation that is identified in the RFC as being copyrighted. The original and principal author of md5.h is L. Peter

Seite 12

API In CPP106/* Append a string to the message. */void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);/* Finish the message and retu

Seite 13

Supported Hardware8Huawei E1550 [8]v3.x andhigherUSBHuawei E1762 USB Modem v5.14 andhigherLocks up occasionally on 433UAH. Need to unplug toreset.USBH

Seite 14

API In CPP107 copyrighted. The original and principal author of md5.c is L. Peter Deutsch <[email protected]>. Other authors are noted in th

Seite 15

API In CPP108#define T17 /* 0xf61e2562 */ (T_MASK ^ 0x09e1da9d)#define T18 /* 0xc040b340 */ (T_MASK ^ 0x3fbf4cbf)#define T19 0x265e5a51#define T20

Seite 16

API In CPP109#define T64 /* 0xeb86d391 */ (T_MASK ^ 0x14792c6e)static voidmd5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/){ md5_word_

Seite 17

API In CPP110 else /* dynamic big-endian */#endif#if BYTE_ORDER >= 0 /* big-endian */ { /*

Seite 18 - Memory cards

API In CPP111 SET(b, c, d, a, 15, 22, T16);#undef SET /* Round 2. */ /* Let [abcd k s i] denote the operation a = b + ((a + G(b,c,

Seite 19 - 802.11a/b/g wireless cards

API In CPP112 SET(c, d, a, b, 3, 16, T43); SET(b, c, d, a, 6, 23, T44); SET(a, b, c, d, 9, 4, T45); SET(d, a, b, c, 12, 11, T46); S

Seite 20

API In CPP113 pms->abcd[0] = 0x67452301; pms->abcd[1] = /*0xefcdab89*/ T_MASK ^ 0x10325476; pms->abcd[2] = /*0x98badcfe*/ T_MASK ^ 0

Seite 21 - USB wireless cards

API In CPP114 static const md5_byte_t pad[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,

Seite 22 - USB storage

API In CPP115#define DONE 1#define TRAP 2#define FATAL 3class Sentence { std::vector<std::string> strWords; // vecor of strings represen

Seite 23 - SFP modules

API In CPP116/******************************************************************** * Print a sentence. ***********************************************

Seite 24 - USB Ethernet

Supported Hardware9Option Qualcomm 3G WCDMA Model M00201-10886(GTM378) [16]v3.x andhigherminiPCI-eOption Qualcomm 3G CDMA Model M00301 (GTM380)[17]v3.

Seite 25

API In CPP117}/******************************************************************** * Add a Sentence to a block **************************************

Seite 26

API In CPP118 mt.WriteSentence(sentence); // receive and print block from the API mt.ReadBlock(block); block.Print(); } catch (in

Seite 27

API In CPP119#include "MikrotikAPITypes.h"#define NOCONNECT 1#define NOLOGIN 2class MikrotikAPI { private: int fdSock;

Seite 28 - Firewall

API In CPP120Mikrotik API source file (MikrotikAPI.cpp)#include "MikrotikAPI.h"using namespace std;MikrotikAPI::MikrotikAPI(const string &am

Seite 29 - Monitoring

API In CPP121 address.sin_port = htons(port); addressSize = sizeof(address); DEBUG ? printf("Connecting to %s\n", strIp

Seite 30 - User/Routing

API In CPP122 char cNull[1] = {0}; //Send login message WriteWord("/login"); WriteWord(cNull); ReadSent

Seite 31 - Multicast

API In CPP123 DEBUG ? writeSentence.Print() : 0; WriteSentence(writeSentence); ReadSentence(readSentence)

Seite 32

API In CPP124 if (littleEndian) { encodedLengthData[0] = lengthData[2] | 0xc0; encodedLengthData[1] = len

Seite 33 - Resilience/Monitoring

API In CPP125 ********************************************************************/void MikrotikAPI::WriteSentence(Sentence &writeSentence){

Seite 34 - Reporting

API In CPP126 lengthData[3] &= 0x1f; // mask out the 1st 3 bits read(fdSock, &lengthData[2], 1);

Seite 35 - Wireless Setups

Supported Hardware10Sierra Wireless MC8755 for Europe [33]v3.x andhigherMiniPCI-eSierra Wireless MC8765 [33]v3.x andhigherMiniPCI-eSierra Wireless MC8

Seite 36 - Manual:MPLS

API In CPP127 } int retMessageLength = *messageLength; delete messageLength; delete [] lengthData; return retMess

Seite 37 - Interface

API In CPP128 // deallocate szTmpWord delete [] tmpWord; DEBUG ? printf("Word = %s\n", strWordO

Seite 38 - Local Bindings

API In CPP129}/******************************************************************** * Read Sentence Block from the socket...keeps reading sentences *

Seite 39 - Manual:Virtualization

API In CPP130 } return strReturn;}/******************************************************************** * MD5 helper function to calcu

Seite 40 - Software

API In CPP131 // now look @ the second car in the 16^0 place if (hexToConvert[1] == 'f' || hexToConvert[1] == 'F') {

Seite 41 - Network Description

Api php template132Api php templateThis is a php template for working with RouterOS v3 API.Requirements1. It uses the php api Class found here : link

Seite 42 - Firewall NAT rules

Api php template133if ($API->connect('192.168.1.2', 'api', 'api1234')) { // Change this as necessery$ARRAY = $API-&

Seite 43 - Import Metarouter image

Api php template134echo "<br />"; $API->disconnect();}?>Registration Tables<?php function popup( $text, $popup ) { ?>

Seite 44

Api php template135noise</td><td>strength at rates</td><td>tx ccq</td><td>pthroughput</td><td>ack time

Seite 45 - See Also

Api php template136$regtable = $ARRAY[$i]; if ($regtable['ap']=="true") { echo "<font color=#04B404 s

Seite 46 - User Management

Supported Hardware11ZTE MF680 [45]v5.4 andhigherUsed by 3 in Sweden. Set data chanel to 1 USBZTE MF668 [46]v4.5 andhigherfor Rogers Wireless (Canada)

Seite 47 - The Dude

Api php template137 "</font><br>"; } echo "</td><td>";for ($i=0; $i<250; $i++)

Seite 48 - User Manager

Api php template138$regtable = $ARRAY[$i]; echo "<font color=#880000 size=2>" . $regtable['signal-strength'] . &q

Seite 49 - Reference

Api php template139"</font><br>"; } echo "</td><td>";for ($i=0; $i<250; $i++)

Seite 50 - Questions and answers

Api php template140 echo "<font color=#FF0000 size=2>". $regtable['802.1x-port-enabled'] ."</font><br&

Seite 51 - API PHP package

Api php template141$regtable['wmm-enabled'] . "</font><br>"; }else{ echo "<font color=#FF0000

Seite 52

Api php template142<?phprequire('routeros_api.class.php');$API = new routeros_api();$API->debug = false;if ($API->connect('192

Seite 53 - Ping from router

Api php template143for ($i=0; $i<250; $i++) {$regtable = $ARRAY[$i]; echo "<font color=#04B404 size=3>" . $regtable

Seite 54

Api php template144$regtable = $ARRAY[$i]; echo "<font color=#000099 size=3>" . $regtable['mtu'] . "</fon

Seite 55

Api php template145<?phprequire('routeros_api.class.php');$API = new routeros_api();$API->debug = false;if ($API->connect('192

Seite 56

Api php template146 echo "<font color=#04B404 size=2>" . $regtable['name'] . "</font><br>";

Seite 57

Supported Hardware12Novatel Expedite ET620 CDMA/EV-DO v3.x andhigherPCMCIAOnda H600/ZTE MF330 v3.x andhigherOnda MDC525UP Not supported USBOnda MT833U

Seite 58 - MAC finder

Api php template147 {$regtable = $ARRAY[$i]; echo "<font color=#000099 size=1>" . $regtable['interface-type'

Seite 59

Api php template148 echo "<font color=#880000 size=2>" . $regtable['band'] . "</font><br>";

Seite 60 - API in C using winsock

Api php template149 echo "<font color=#04B404 size=2>" . $regtable['default-authentication'] . "</font>&l

Seite 61

Api php template150 echo "</td><td>";for ($i=0; $i<250; $i++) {$regtable = $ARRAY[$i];

Seite 62

Api php template151 {$regtable = $ARRAY[$i]; if ($regtable['running']=="true") { echo

Seite 63

Api php template152Hotspot Hosts List<?php function popup( $text, $popup ) { ?> <a href="javascript:void(0);" onmouseover="

Seite 64

Api php template153 } echo "</td><td>";for ($i=0; $i<250; $i++) {$regtable = $ARRAY[$i];

Seite 65

Api php template154echo "</td><td>";for ($i=0; $i<250; $i++) {$regtable = $ARRAY[$i]; echo "<font col

Seite 66

Api php template155 } echo "</td><td>";for ($i=0; $i<250; $i++) {$regtable = $ARRAY[$i];

Seite 67

Api php template156echo "</table>";echo "<br />Debug:";echo "<br />";print_r($ARRAY); $API->disco

Seite 68

Supported Hardware13ZTE MF112 [67]v5.x andhigherPower issues on mipsbe boards USBHuawei ET127 v5.x andhigher3GHuawei EC1261 v5.x andhigherUSBHuawei E1

Seite 69

API in VB dot NET157 Send("/login") Send("=name=" + user) Send("=response=00" + EncodeP

Seite 70

API in VB dot NET158 Case 0 output.Add(o) If o.Substring(0, 5) = &quo

Seite 71

API in VB dot NET159 Dim tmp = BitConverter.GetBytes(l Or &HE0000000) Return New Byte() {tmp(3), tmp(2), tmp(1),

Seite 72

RouterOS PHP class160RouterOS PHP class•• Author: Kamil Trzcinski•• E-mail: ayufan(at)osk-net(dot)pl• WWW: [1]•• License: GPL•• added callbacks•• adde

Seite 73

RouterOS PHP class161•• static function connect($host, $login, $password, $port = 8728, $timeout = 5)Connects to new RouterOS using specified "ho

Seite 74

RouterOS PHP class162 [tx-ccq] => 95 [p-throughput] => 5361 [ack-timeout] => 30 [last-ip] => 1

Seite 75

RouterOS PHP class163Array( [00:1F:1F:XX:XX:XX] => Array ( [.id] => *2 [interface] => ap11 [mac-ad

Seite 76

RouterOS PHP class164$conn->unsett("/queue/simple", "*10", "time");•• function btest($address, $speed = "1M"

Seite 77

RouterOS PHP class165 [snr] => 45 [radio-name] => 3713 ))<?require_once(dirname(__FILE__)."/routeros.class.

Seite 78

RouterOS PHP class166 $name = $name[0]; if($dests[$name]) die("destination $dest already defined!\n"); $tag = $conn->btest

Seite 79

Supported Hardware14Nokia Datacard CS-11 & CS-15 v5.14 andhigherUSBZTE MF821 v5.15 andhigherUSBHuawei K4510 [79]v5.15 andhigherUSBHuawei E173s v5.

Seite 80 - Manual:API Python3

RouterOS PHP class167 } // not running if($results["status"] != "running") { // state changed if($status[$dest] != $res

Seite 81

RouterOS PHP class168 if($data < $multi*$multi) { return round($data/$multi, 1) . "k$postfix"; } if($data < $multi*$multi*$multi

Seite 82

RouterOS PHP class169 $lines = array(); foreach($dests as $dest=>$desc) { $lines[] = array("host"=>$desc["dest"], "

Seite 83

RouterOS PHP class170left-value, right-value - either string or variableif %version% ~= 4.*# execute commands for version 4.*else# execute commands fo

Seite 84 - API multiplatform from townet

RouterOS PHP class171Add new section alias of type to configuration update with comma delimeted group keys and list of default_key.See RouterOSParser:

Seite 85

RouterOS PHP class172Add or set config for specified short command.$parser->config("firewall-filter", "action=drop chain=forward&quo

Seite 86

RouterOS PHP class173$parser->parseFile(array("config line 1", "config line 2", "config line 3"));•• function call($c

Seite 87

RouterOS PHP class174$parser->update($conn); // perform update?># load predefined global OSPF configurationrequire ospf.cfg# set device name, cl

Seite 88

RouterOS PHP class175redistribute-rip=no redistribute-bgp=no metric-default=2 metric-connected=2 metric-static=1 metric-rip=1 metric-bgp=1endif# add s

Seite 89 - MikroNode

API command notes176API command notesSummaryThis page contains some information about details of API commands, examples or use-cases. For more detaile

Seite 90 - Connection Object

Supported Hardware154G LTE cardsLTE should be configured under the new "/interface lte" menuModel Tested RouterOSversionComments FormatBandR

Seite 91

API command notes177result of double Tab[admin@MikroTik] > ip address add broadcast comment copy-from disabled netmask network address int

Seite 92

API command notes178All this boils down to this, where XX is encoded word legth, aaaa is word and 0x00 is terminating zero single linesentenceXXaaaa0x

Seite 93

API command notes179!fatal!fatal can be received only in cases when API is closing connection:•• too many commands are sent to router prior login•• th

Seite 94

API command notes180will result in: !trap =category=4 =message=already have device with such name !doneWhile adding several entries with same name as

Seite 95

API command notes181=tx-bits-per-second=11266!re=rx-packets-per-second=8=rx-drops-per-second=0=rx-errors-per-second=0=rx-bits-per-second=14179=tx-pack

Seite 96

API command notes182Example/ping=address=192.168.88.1=count=3In this case ping returned after duration*count seconds, where duration was default 1 sec

Seite 97

API command notes183!doneCancel taggingYou may cancel every previously executed task. Note however how cancel behaves with specified tag and without.E

Seite 98

API command notes184Example with specified tagCommand execution./ping=address=google.com.tag=22Reply itself.!re=host=5.226.127.144=size=56=ttl=61=time

Seite 99

API command notes185.tag=22Canceling with additional errorsCancel failed /tool fetch via http. 3 is that tag of /tool/fetch, 7 is a /cancel tag itself

Seite 100

API Ruby class186API Ruby classRuby GEMThe API Ruby class(es) are now packaged together as a Ruby GEM. The latest GEM is available for download fromth

Seite 101

Supported Hardware168GB Seagate ST1 CF microdrive V V NA ? ?64MB Nokia microSD NA NA ? V ?512MB Kingston microSD NA NA V ? ?1GB Apacer microSD NA NA V

Seite 102 - API in Java

API Ruby class187<<< END-OF-SENTENCE>>> '!trap' (5)>>> 'message=cannot log in' (21)>>> '.

Seite 103

API Ruby class188>>> '!re' (3)>>> '.id=*5' (6)>>> 'name=ether1' (11)>>> 'type=e

Seite 104 - WriteCommand.java

API Ruby class189>>> 'mtu=1524' (8)>>> 'l2mtu=1524' (10)>>> 'bytes=26909135851/15002882324' (

Seite 105

API Ruby class190>>> '!re' (3)>>> '.id=*5' (6)>>> 'name=ether1' (11)>>> 'type=e

Seite 106 - References

API Ruby class191>>> 'comment=' (8)>>> '.tag=2' (6)>>> END-OF SENTENCE<<< '/cancel'

Seite 107 - API In CPP

API Ruby class192# output until we "cancel" the command. We only want to receive 10 responses:$reply_limit = 10# Execute the command:$reply

Seite 108

API Ruby class193<<< '/interface/monitor-traffic' (26)<<< '=interface=ether1' (17)<<< '=.proplist=

Seite 109

API Ruby class194{"!re"=>nil, "rx-bits-per-second"=>"3712135", "tx-bits-per-second"=>"28404"

Seite 110

API Ruby class195>>> END-OF SENTENCEUpdating DNS settings on multiple devicesImagine I have a list of RouterOS devices that all need primary

Seite 111

API Ruby class196 ## for it to complete (either with a '!done' or '!trap' response) before ## executing the callback code bl

Seite 112

ContentsArticlesMikroTik RouterOS 1Hardware 2Supported Hardware 2Bandwidth Managment and Queues 24Firewall 25Monitoring 26User/Routing 27Scripts 29Tun

Seite 113

Supported Hardware17SparkLAN WMIA-165G miniPCI RB1xx / RB3xx / RB4xx /RB5xx / RB6xx / x862.9 / 3.x /4.xPerfect, StableSparkLAN WMIA-166AG miniPCI RB1x

Seite 114

API Ruby class197while children > 1 Process.wait children -= 1endOutput might look a bit like:user@host:~/$ ./dnsupdate.rb 10.0.0.4: Connecting..

Seite 115

API Ruby class198One may wonder why not use ?name=foo instead of using the ID parameter. The gem author has discovered thatAPI commands that make chan

Seite 116

API Ruby class199>>> '!done' (5)>>> '.tag=1' (6)>>> END-OF SENTENCE<<< '/interface/monito

Seite 117

API Ruby class200>>> '!re' (3)>>> 'rx-bits-per-second=106012' (25)>>> 'tx-bits-per-second=3952&apo

Seite 118

API Ruby class201>>> '!fatal' (6)>>> 'session terminated on request' (29)>>> END-OF SENTENCE[[{"!r

Seite 119

Librouteros202Librouteroslibrouteros is a free and open-source library written in C which abstracts the API provided by RouterOS. It wasinitially writ

Seite 120

Librouteros203 if->running ? "running" : "stopped", if->enabled ? "enabled" : "disabled"); pr

Seite 121

Librouteros204References[1] http:/ / verplant. org/ librouteros/[2] http:/ / verplant. org/ librouteros/ manpages/ librouteros. 3. html[3] http:/ / gi

Seite 122

API in C205 (section A.5) but excluding the rest of Appendix A. It does not include any code or documentation that is identified in the RFC as bein

Seite 123

API in C206void md5_init(md5_state_t *pms);/* Append a string to the message. */void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);

Seite 124

Supported Hardware18TP-Link TL-WN881ND[102]]PCI-e x86 v5.xx,v6.xxv5.xx NOT working not appear in interfaces, v6.x working(6.1 unstable after scan stop

Seite 125

API in C207 any code or documentation that is identified in the RFC as being copyrighted. The original and principal author of md5.c is L. Peter De

Seite 126

API in C208#define T16 0x49b40821#define T17 /* 0xf61e2562 */ (T_MASK ^ 0x09e1da9d)#define T18 /* 0xc040b340 */ (T_MASK ^ 0x3fbf4cbf)#define T19

Seite 127

API in C209#define T63 0x2ad7d2bb#define T64 /* 0xeb86d391 */ (T_MASK ^ 0x14792c6e)static voidmd5_process(md5_state_t *pms, const md5_byte_t *data

Seite 128

API in C210#if BYTE_ORDER == 0 else /* dynamic big-endian */#endif#if BYTE_ORDER >= 0 /* big-endian */ {

Seite 129

API in C211 SET(c, d, a, b, 14, 17, T15); SET(b, c, d, a, 15, 22, T16);#undef SET /* Round 2. */ /* Let [abcd k s i] denote the operatio

Seite 130

API in C212 SET(d, a, b, c, 0, 11, T42); SET(c, d, a, b, 3, 16, T43); SET(b, c, d, a, 6, 23, T44); SET(a, b, c, d, 9, 4, T45); SET

Seite 131

API in C213 pms->count[0] = pms->count[1] = 0; pms->abcd[0] = 0x67452301; pms->abcd[1] = /*0xefcdab89*/ T_MASK ^ 0x10325476; p

Seite 132

API in C214{ static const md5_byte_t pad[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

Seite 133

API in C215 struct Sentence **stSentence; int iLength;};// endianness variable...globalint iLittleEndian;// API specific functionsint apiCon

Seite 134

API in C216 * int fdSock; int iLoginResult; struct Sentence stSentence; struct Block stBlock; fdSock = apiConnect("10.0

Seite 135 - Api php template

Supported Hardware19T1/E1Model Form factor Platform ROS ResultFarsite FarSync TE1 PCI x86 3.15 supportedNote: Since v3.15 RouterOS doesn't suppor

Seite 136

API in C217 * Returns a socket descriptor ********************************************************************/int apiConnect(char *szIPaddr, int iPor

Seite 137 - Registration Tables

API in C218 DEBUG ? printf("Closing socket\n") : 0; close(fdSock);}/********************************************************

Seite 138

API in C219 // get md5 of the password + challenge concatenation md5_init(&state); md5_append(&state, cNull, 1); md5_appen

Seite 139

API in C220 * Encode message length and write it out to the socket ********************************************************************/void writeLen(

Seite 140

API in C221 { cEncodedLength[0] = cLength[2] | 0xc0; cEncodedLength[1] = cLength[1]; cEn

Seite 141

API in C222/******************************************************************** * Write a word to the socket ****************************************

Seite 142

API in C223int readLen(int fdSock){ char cFirstChar; // first character read from socket char *cLength; // length of next message to read.

Seite 143

API in C224 cLength[2] = cFirstChar; cLength[2] &= 0x3f; // mask out the 1st 2 bits read

Seite 144 - Basic Interface List

API in C225/******************************************************************** * Read a word from the socket * The word that was read is returned as

Seite 145

API in C226 free(szTmpWord); DEBUG ? printf("word = %s\n", szRetWord) : 0; return szRetWord;

Seite 146

Supported Hardware20Brand Model Works / Doesn'tgeneric USB flash drive WorksKingston DataTraveler 2GB WorksSFP modulesBrand Model Rate Connector/

Seite 147 - Wireless Interface List

API in C227 } } // if any errors, get the next sentence if (stReturnSentence.iReturnValue == TRAP || stReturnSen

Seite 148

API in C228 return stBlock;}/******************************************************************** * Initialize a new block * Set iLength to

Seite 149

API in C229}/******************************************************************** * Add a sentence to a block * Allocate memory and add a sentence to

Seite 150

API in C230 stSentence->iLength = 0; stSentence->iReturnValue = 0;}/******************************************************************

Seite 151

API in C231/******************************************************************** * Add a partial word to a sentence struct...useful for concatenation

Seite 152

API in C232 ********************************************************************/char *md5ToBinary(char *szHex){ int di; char cBinWork[3];

Seite 153

API in C233 sprintf(szReturn + di * 2, "%02x", binaryDigest[di]); } return szReturn;}/*********************************

Seite 154

API in C234 } // now look @ the second car in the 16^0 place if (cToConvert[1] == 'f' || cToConvert[1] == 'F

Seite 155 - Hotspot Hosts List

API in C235 { int testWord; char testByte[sizeof(int)]; } endianTest; endianTest.testWord = 1; if (endianTes

Seite 156

API in C236 char *szIPaddr; char *szPort = "8728"; // default port string int iPort; // default port int cha

Seite 157

Supported Hardware21Ingellen INSP-SX-MM 1,25G LC, MM 850 RB2011LS-IN Works!AXCEN AXGT-R1T4-05I1 10/100/1000 RJ45, Cat6 - RB2011LS-IN Works!AXCEN AXGD-

Seite 158

API in C237 // convert port string to an int iPort = atoi(szPort); } iInteractiveMode ? printf("Connecting to API

Seite 159 - API in VB dot NET

API in C238 { writeSentence(fdSock, &stSentence); // receive and print response blo

Seite 160

API ActionScript 3 class239API ActionScript 3 classThese are ActionScript 3 classes for working with RouterOS v3 API. You can take it, edit it and use

Seite 161

API ActionScript 3 class240 public function login(u:String, p:String) { doLogin = 1; user = u;

Seite 162

API ActionScript 3 class2410xff); data.writeByte(len & 0xff); } else {

Seite 163 - RouterOS PHP class

API ActionScript 3 class242 // Send challenge response s

Seite 164

API ActionScript 3 class243 len = ((len1 & 63) << 8) + readUnsignedByte(); } else

Seite 165

API ActionScript 3 class244 if (str.substr(0,1) == '!') tag = "";

Seite 166

API ActionScript 3 class245 }}Example 1// Short example that outputs wireless registration-table every secondimport ApiSocket;import ApiEvent;var

Seite 167

API ActionScript 3 class246 trace(evt.data[i]['mac-address']) trace(" " + evt.data[i]['sig

Seite 168

Supported Hardware22•• USB_HSO•• USB_USBNETAX88178 (USB2.0 Gigabit Ethernet) recognized but not working.References[1] http:/ / wiki. mikrotik. com/ wi

Seite 169

API Delphi Client247TRosApiResultThis class gives you an ability to work with data returned from queries. Each command execution is "isolated&quo

Seite 170

API Delphi Client248if RouterOS.Connect('192.168.0.1', 'admin', 'password') thenbegin //we are connected successfullyen

Seite 171

API Delphi Client249 begin ShowMessage('Done'); ResListen.Free; tmrListen.Enabled := False; Break; end; Memo1.L

Seite 172

API Delphi250function send_command(cmd_arr: array of string): integer;Send the strings contained in the array, then send a #0 (example:res:=send_comma

Seite 173

API Delphi251The API_STUDIO applicationI usually develop using mikrotik API and the API STUDIO allow me to test API commands before implementing itin

Seite 174

API Delphi252DOWNLOADSPlease refer to this forum thread for download: API_STUDIO [4]. The download contain all source code and theexecutable (compiled

Seite 175 - return TRUE;

API in C Sharp253 } public void Send(string co) { byte[] bajty = Encoding.ASCII.GetBytes(co.ToCharArray());

Seite 176

API in C Sharp254 else { if (tmp[3] < 0xC0) {

Seite 177

API in C Sharp255 o += (Char)connection.ReadByte(); } } return output; } byte[]

Seite 178

API in C Sharp256 System.Security.Cryptography.MD5 md5; md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();

Seite 179 - API command notes

Supported Hardware23[49] http:/ / www. novatelwireless. com/ images/ pdf/ Merlin_X720_Datasheet. pdf[50] http:/ / www. novatelwireless. com/ content/

Seite 180

API in C Sharp257Example 2Block SMTP port and specific Ip rule by Oguzhanusing System.IO;using System.Net.Sockets; class Program { static

Seite 181

API PHP class258API PHP classThis is PHP class for working with RouterOS API. You can take it, edit it and use it as you need.NOTE - The class as show

Seite 182 - API sentence examples

API PHP class259Class<?php/***************************** * * RouterOS PHP API class v1.5 * Author: Denis Basta * Contributors: * Nick Barnes *

Seite 183

API PHP class260 * * @return void */ function encode_length($length) { if ($length < 0x80) { $length = chr($len

Seite 184

API PHP class261 $this->write('=response=00' . md5(chr(0) . $password . pack('H*', $MATCHES[0][1])))

Seite 185

API PHP class262 foreach ($response as $x) { if (in_array($x, array( '!fatal',

Seite 186

API PHP class263 ))) { if ($x == '!re') $CURRENT =& $PARSED[];

Seite 187

API PHP class264 return $array_new; } else { return $array; } } /** * Read data from Router

Seite 188

API PHP class265 } } else { $LENGTH = $BYTE; } // If we have got more characters to rea

Seite 189 - API Ruby class

API PHP class266 $com = trim($com); fwrite($this->socket, $this->encode_length(strlen($com)) . $com);

Seite 190

Supported Hardware24[108] http:/ / www. compex. com. sg/ fullDescription. aspx?pID=96[109] http:/ / www. compex. com. sg/ fullDescription. aspx?pID=32

Seite 191

API PHP class267Example 1<?phprequire('routeros_api.class.php');$API = new routeros_api();$API->debug = true;if ($API->connect(&apo

Seite 192

API PHP class268<?phprequire('routeros_api.class.php');$API = new routeros_api();$API->debug = true;if ($API->connect('111.111

Seite 193

API PHP class269 [2] => Array ( [.id] => *3 [name] => ether3 [mtu] => 1500 [type] => ether

Seite 194 - Using the Gem in Code

API PHP class270 [strength-at-rates] => -73dBm@1Mbps 4m4s640ms,-73dBm@2Mbps 4m58s730ms,[email protected] 42s450ms,-73dBm@11Mbps 90ms [tx-ccq] =&g

Seite 195

API PHP class271$API->write('~active-address~"1.1."');$ARRAY = $API->read();print_r($ARRAY);Returns a number with leasesMikr

Seite 196

MikroTik for Mac272MacPorts and wineIf you cannot get Darwine to work, you can install Wine using Mac Ports at http:/ / guide. macports. org/ OnceMacP

Seite 197

MikroTik for Mac273Making Home/End/PgUp/PgDown work in Terminal.appIt really annoys me that by default you have no Home/End functionality in terminal.

Seite 198

Assorted examples274Assorted examples•• Automated Backups•• Automatic Backup with Centralized Storage - By Ashish Patel•• Bash scripts for Linux/Mysql

Seite 199

Article Sources and Contributors275Article Sources and ContributorsMikroTik RouterOS „Source: http://wiki.mikrotik.com/index.php?oldid=22355 „Contribu

Seite 200 - children -= 1

Article Sources and Contributors276MikroTik for Mac „Source: http://wiki.mikrotik.com/index.php?oldid=22848 „Contributors: Chenull, Donie, Eugene, Hen

Seite 201

Firewall25FirewallMiscellaneous•• Basic universal firewall script•• Attempt To Detect And Block Bad Hosts•• Securing A New RouterOS Install•• Spam Fil

Seite 202

Image Sources, Licenses and Contributors277Image Sources, Licenses and ContributorsImage:Shot.jpg „Source: http://wiki.mikrotik.com/index.php?title=Fi

Seite 203

Firewall26Web-Proxy or External Cache Servers (SQUID, ISA, any Open Source CacheServer)• Examples for Use Caching Server (5 Main Idea’s)•• Squid3+TPRO

Seite 204

API in C Sharp 252API PHP class 258MikroTik for Mac 271Assorted examples 274ReferencesArticle Sources and Contributors 275Image Sources, Licenses and

Seite 205 - Librouteros

User/Routing27User/RoutingRouting•• Split horizon•• Dynamic Routing Concepts•• ECMP load balancing with masquerade•• NTH load balancing with masquerad

Seite 206 - External links

User/Routing28•• BGP Load Balancing with two interfacesOSPF•• Steps of making neighborship between OSPF routers•• OSPF and Point-to-Point interfaces••

Seite 207 - API in C

Scripts29ScriptsSetup•• How to Make an Automated Configuration and Uninstall•• A script to set up WAN/LAN/WLAN to get you startedGeneral•• Traffic Pri

Seite 208

Scripts30• Get active VPN connections via e-mail (PPTP and L2TP)•• Get active VPNs, connected wireless stations, active Hotspot sessions and connected

Seite 209

Scripts31System Maintenance• BackupROS (Centralized Backups) - by Nahuel Ramos (new!)•• Centralized Automated Backups via Email with Procmail and Perl

Seite 210

Tunnels32Tunnels•• PPtP Server / VPN•• PPtP Client / VPN•• PPTP VPN - multiple ADSL remote locations to Cental Office•• IPSec VPN with Dynamic Routing

Seite 211

Wireless Setups33•• Bridge Network With Wireless Modes•• Wireless WDS Mesh•• Connect to an Available Wireless NetworkReferences[1] http:/ / www. mikro

Seite 212

Manual:MPLS34Forwarding TableSub-menu: /mpls forwarding-tableEntries in this sub-menu shows label bindings for specific routes that will be used in MP

Seite 213

Manual:MPLS35Property Descriptioncomment (string; Default: ) Short description of the interfacedisabled (yes | no; Default: no) If set to yes then thi

Seite 214

Manual:MPLS36Remote BindingsSub-menu: /mpls remote-bindingsSub-menu shows label bindings for routes received from other routers. This table is used to

Seite 215

MikroTik RouterOS1MikroTik RouterOSThis is a user editable how-to page, anyone can contribute! If you havesome firewall rules or scripts to share, sim

Seite 216

Manual:Virtualization37•• offer virtual routers with VPN solutions that give a network administrator customer his own router on a highspeedbackbone to

Seite 217

Use Metarouter to Implement Tor Anonymity Software38Why use Tor?From the Tor web site [2]"Using Tor protects you against a common form of Interne

Seite 218 - * Sentence = multiple words

Use Metarouter to Implement Tor Anonymity Software39These commands set up the necessary bridges and add interfaces to the natBridge. In this example,

Seite 219

Use Metarouter to Implement Tor Anonymity Software40add chain=dstnat in-interface=ether1 protocol=tcp dst-port=8118 \ action=dst-nat to-addresses=10.

Seite 220

Use Metarouter to Implement Tor Anonymity Software41The first command names the new Metarouter virtual machine. The second command sets up a dynamic i

Seite 221

Use Metarouter to Implement Tor Anonymity Software42t rely on it for strong anonymity. (Running on Linux mips)Aug 18 00:45:18.923 [notice] Choosing de

Seite 222

User/IPv643User/IPv6•• Overview and examples•• Setting up an IPv6 tunnel via a tunnel broker•• Creating loopback address for IPv6•• OSPFv3 with Quagga

Seite 223

The Dude44The DudeThe Dude [1] is a free application by MikroTik, which can dramaticallyimprove the way you manage your network environment.It will au

Seite 224

The Dude45•• Graphing Client Signal Strength•• Managing Multiple Remote Bridged Routers•• Dude as Syslog Server•• Dude como Servidor Syslog (el españo

Seite 225

User Manager46Concepts explainedCommon•• Customers•• Users•• Routers•• Sessions•• Payments•• Reports•• Logs•• Customer permission levels•• Character c

Seite 226

Hardware2Hardware•• RB 750G - Getting Started HelpSupported HardwareThis page should be edited by the user community to reflect their tested hardware

Seite 227

User Manager47Customer page•• Setup•• How to find it?•• Sections•• Status•• Routers•• Credits•• Users•• Sessions•• Customers•• Reports•• LogsUser page

Seite 228

User Manager48•• How to create timed Voucher?•• Cannot access User Manager WEB interface•• Incorrect time shown for sessions and credits•• User Manage

Seite 229

API PHP package49"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <

Seite 230

API PHP package50 <td><?php echo $entry('message'); ?></td> </tr><?php } ?>

Seite 231

API PHP package51 </li> <li> <input type="submit" id="act&q

Seite 232

API PHP package52 //Here's the fun part - actually changing the password $setRequest = new RouterOS\Request('/ip hotspot user

Seite 233

API PHP package53 <input type="password" id="password2" name="password2" value="" /&

Seite 234

API PHP package54 $printRequest->setQuery( RouterOS\Query::where('email', $_POST['email'])->andWhere(&apos

Seite 235

API PHP package55 <?php } ?> <form action="" method="post"> <ul>

Seite 236

API PHP package56 //Adjust RouterOS IP, username and password accordingly. $client = new RouterOS\Client('192.168.0.1', 'admin&ap

Seite 237

Supported Hardware3Intel •D945GCNL 3.11 Works fine but integrated ethernet (just disable) goes up and down on rebootsmulti-cpu= yes. shared IRQ for PC

Seite 238

API in C using winsock57API in C using winsockThis is an implementation of RouterOS API written on C that using winsock2 for compatibility with Window

Seite 239

API in C using winsock58// Updated 28 August 2011 by hel#include <stdio.h>#include <winsock2.h>#pragma comment(lib, "ws2_32.lib"

Seite 240

API in C using winsock59 } // determine endianness of this machine // iLittleEndian will be set to 1 if we are // on a little endi

Seite 241

API in C using winsock60 stReadSentence = readSentence(fdSock); DEBUG ? printSentence (&stReadSentence) : 0; if (stReadSenten

Seite 242 - API ActionScript 3 class

API in C using winsock61 DEBUG ? printSentence (&stReadSentence) : 0; if (stReadSentence.iReturnValue == DONE) { return

Seite 243

API in C using winsock62 else { cEncodedLength[0] = cLength[2] | 0x80; cEncodedLength[1] = cLe

Seite 244

API in C using winsock63 cEncodedLength[2] = cLength[2]; cEncodedLength[3] = cLength[3]; } sen

Seite 245

API in C using winsock64 writeWord(fdSock, "");}/******************************************************************** * Read a me

Seite 246

API in C using winsock65 recv(fdSock, &cLength[1], 1, 0); recv(fdSock, &cLength[2], 1, 0);

Seite 247

API in C using winsock66 } iLen = (int *)cLength; } // assume 1-byte encoded length...same on both LE and BE sys

Seite 248 - Example 1

Supported Hardware4Xen 3.2.1 on Intel C2Q 4.x Installs and runs fine on HVM bootloader using Intel VT technology. Evenswitches to RouterOS console fro

Seite 249 - API Delphi Client

API in C using winsock67 // read iBytesToRead from the socket iBytesRead = recv(fdSock, szTmpWord,

Seite 250 - Examples

API in C using winsock68 // check to see if we can get a return value from the API if (strstr(szWord, "!done") != NULL

Seite 251 - Executing queries

API in C using winsock69 DEBUG ? printf("readBlock\n") : 0; do { stSentence = readSentence(fdSock); DEB

Seite 252 - API Delphi

API in C using winsock70/******************************************************************** * Print a block. * Output a Block with printf. *********

Seite 253

API in C using winsock71 // update iLength stBlock->iLength = iNewLength; DEBUG ? printf("addSentenceToBlock stBlock->iLengt

Seite 254 - The API_STUDIO application

API in C using winsock72 else { stSentence->szSentence = realloc(stSentence->szSentence, iNewLength * sizeof stSentence->

Seite 255 - API in C Sharp

API in C using winsock73 printf("Sentence iReturnValue = %d\n", stSentence->iReturnValue); for (i=0; i<stSentence->iLengt

Seite 256

API in C using winsock74/******************************************************************** * MD5 helper function to calculate and return hex repres

Seite 257

API in C using winsock75 else if (cToConvert[0] == 'c' || cToConvert[0] == 'C') { iAccumulated += 16*12;

Seite 258

API in C using winsock76 DEBUG ? printf("%d\n", iAccumulated) : 0; return (char)iAccumulated; }/*****************************

Seite 259

Supported Hardware5Intel 82599ES - Intel X520 series adapters 5.x & 6.x Works, fine! Note: has SFP transceiver vendorrestrictions: [3]D-Link DFE-5

Seite 260 - Example 2

Manual:API Python377Manual:API Python3SummarySince python language have introduced changes to syntax when going from 2.x to 3.x some adjustments had t

Seite 261 - API PHP class

Manual:API Python378 def writeSentence(self, words): ret = 0 for w in words: self.writeWord(w) ret += 1

Seite 262

Manual:API Python379 self.writeStr(chr((l >> 16) & 0xFF)) self.writeStr(chr((l >> 8) & 0xFF)) sel

Seite 263

Manual:API Python380 if s == '': raise RuntimeError("connection closed by remote end") ret += s.decode(&apos

Seite 264

Manual:API Python381if __name__ == '__main__': main()file|api client in python3 [1]References[1] http:/ / wiki. mikrotik. com/ images/ 6/

Seite 265

API multiplatform from townet82};USE OF MKAPI LIBRARYTo write a C program using MkApi you need to include the library when you compile your applicatio

Seite 266

API multiplatform from townet83 { AnsiString line = parse_line(&c); //Here the variable line contains only a line from the reply. char

Seite 267

API multiplatform from townet84MKDeal - tool di interfaccia mikrotik uso: MKDeal ip utente password -c comando (per comandi one-shot) MKDealip utente

Seite 268

API multiplatform from townet85back from a command, are ever integer numbers, but this ones doesn’t start from the number zero, like working intelnet.

Seite 269

MikroNode86MikroNodeMikronodeFull-Featured asynchronous Mikrotik API interface for NodeJS [1]. var api = require('mikronode'); var connectio

Seite 270

Supported Hardware6Dell PowerEdge R210 5.1 - 5.6 1U Rackmount. Half-depth (39cm) chassis. Dual port on-board Broadcom 5716 Gigabit Ethernetcontrollers

Seite 271

MikroNode87TODO•• Cleanup login section in connect method.•• Re-design code to hide internal methods and variables.•• Utilize promises.•• Write tests

Seite 272

MikroNode88unaltered.•• channel.close(force)Close the channel. If there are any commands still waiting to be executed, they will be completed beforecl

Seite 273 - Example 5

MikroNode89 chan3.write(['/interface/set','=disabled=yes','=.id=ether1'],function(chan) { chan.on('done&ap

Seite 274 - MikroTik for Mac

MikroNode90 console.log('Interface: '+JSON.stringify(packet)); }); listenChannel.close(); // This should call

Seite 275 - MacPorts and wine

API in Java91API in JavaSummaryRouterOS API access library written in Java. This code is also capable to connect to IPv6 addresses.LicensingCode is pr

Seite 276

API in Java92 } @Override public void run() { String s = ""; while (true) { try { s = aConn.getDat

Seite 277 - Assorted examples

API in Java93 private DataOutputStream out = null; private DataInputStream in = null; private String ipAddress; private int ipPort; private

Seite 278

API in Java94 * to get IP address of the connection. Reads data from socket created. * @return InetAddress */ public InetAddress getIpAddre

Seite 279 - SomniusX, Tecpro, Tiukov, Zee

API in Java95 /** * exeecutes already set command. * @return returns status of the command sent */ public String runCommand() { ret

Seite 280

API in Java96 String transition = tmp[tmp.length - 1]; String chal = ""; chal = Hasher.hexStrToStr

Kommentare zu diesen Handbüchern

Keine Kommentare