我无法向路由器发送配置文件交换命令。
public void alterProfile(String name) throws Exception {
ApiConnection con = null;
String stmt = "/ppp/secret/set profile=default " + name;
try {
con = ConnectionFactoryMikrotik.connect();
con.execute(stmt);
} catch (Exception e) {
e.printStackTrace();
} finally {
ConnectionFactoryMikrotik.disconnect(con);
}
}
您知道我是否计算错误的语法?
Exception:
me.legrange.mikrotik.MikrotikApiException: unknown parameter
at me.legrange.mikrotik.impl.ApiConnectionImpl$SyncListener.getResults(ApiConnectionImpl.java:476)
at me.legrange.mikrotik.impl.ApiConnectionImpl$SyncListener.access$100(ApiConnectionImpl.java:430)
at me.legrange.mikrotik.impl.ApiConnectionImpl.execute(ApiConnectionImpl.java:114)
at me.legrange.mikrotik.impl.ApiConnectionImpl.execute(ApiConnectionImpl.java:72)