OpenAcs開源常用腳本/TR069

1.? ? 重啟

? ? ? cpe.Reboot("commandKey");

2.? 恢復(fù)出廠設(shè)置腳本

? ? ? cpe.FactoryReset();


3.? CPE支持的方法GetRPCMethods

? ? var methods = cpe.GetRPCMethods();

? ? for (i = 0; i < methods.length; i++) {

? ? ? ? logger ('Method: '+methods[i]);

? ? }

4.? 得到參數(shù)名稱GetParameterNames

? ? var names = cpe.GetParameterNames ('.', true);

? ? for (i = 0; i < names.length; i++) {

? ? ? ? ? cpe.log (names[i].name + ' -> '+names[i].writable);

? ? }

5.? 得到參數(shù)的值GetParameterValues

? ? var parameters = new Array ();

? parameters[0] = 'InternetGatewayDevice.DeviceInfo.xxxxxxxxxxxxx.';


6.? 設(shè)置參數(shù)的值

? ? var parameters = new Array ();

? parameters[0] = {name: 'InternetGatewayDevice.IPPingDiagnostics.Host', value: '192.168.0.1'};

? parameters[1] = {name: 'InternetGatewayDevice.IPPingDiagnostics.NumberOfRepetitions', value: '2'};

? cpe.SetParameterValues (parameters, "commandKey");

7.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Lua 5.1 參考手冊(cè) by Roberto Ierusalimschy, Luiz Henrique de F...
    蘇黎九歌閱讀 14,259評(píng)論 0 38
  • 在JavaScript中,一切都是對(duì)象。 使用深度優(yōu)先遍歷,element是一個(gè)DOM元素,selectors是一...
    garble閱讀 690評(píng)論 0 1
  • Spring Web MVC Spring Web MVC 是包含在 Spring 框架中的 Web 框架,建立于...
    Hsinwong閱讀 22,966評(píng)論 1 92
  • 標(biāo)簽(空格分隔): 編程 Go官方文檔 Using the tour 1.1 Hello, 世界 Welcome...
    uangianlap閱讀 1,650評(píng)論 0 5
  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,688評(píng)論 19 139

友情鏈接更多精彩內(nèi)容