Login do Modem (CTRL+SHIFT+K no firefox)
var x = $.xmo; x.init(); x.login("internal", "");
Listar
x.getValuesTree("Device");
Alterar o MTU
1432
x.setValuesTree("1432", "Device/IP/Interfaces/Interface[@uid='1']/MaxMTUSize");
x.setValuesTree("1432", "Device/IP/Interfaces/Interface[@uid='2']/MaxMTUSize");
x.setValuesTree("1432", "Device/IP/Interfaces/Interface[@uid='3']/MaxMTUSize");
x.setValuesTree("1432", "Device/IP/Interfaces/Interface[@uid='4']/MaxMTUSize");
x.setValuesTree("1432", "Device/IP/Interfaces/Interface[@uid='5']/MaxMTUSize");
1404
x.setValuesTree("1404", "Device/IP/Interfaces/Interface[@uid='1']/MaxMTUSize");
x.setValuesTree("1404", "Device/IP/Interfaces/Interface[@uid='2']/MaxMTUSize");
x.setValuesTree("1404", "Device/IP/Interfaces/Interface[@uid='3']/MaxMTUSize");
x.setValuesTree("1404", "Device/IP/Interfaces/Interface[@uid='4']/MaxMTUSize");
x.setValuesTree("1404", "Device/IP/Interfaces/Interface[@uid='5']/MaxMTUSize");
Firewall
x.setValuesTree("Low", "Device/Firewall/CVTR98Config");
x.setValuesTree("LOW", "Device/Firewall/Config");
x.setValuesTree("ENABLED", "Device/Firewall/Chains/Chain[@uid='1']/Rules/Rule[@uid='1']/Status");
Certeza
x.getValuesTree("Device/IP/Interfaces")
Nenhum comentário:
Postar um comentário