try {
log.debug("CLI: Attempting to login: host={} loginId={} password={} portNumber={}", host, loginId,
password, portNumber);
- sshJcraftWrapper.connect(host, loginId, password, Integer.parseInt(portNumber));
+ sshJcraftWrapper.connect(host, loginId, password); //what about portNum?
log.debug("Sending 'sdc'");
sshJcraftWrapper.send("sdc", ":");
SshJcraftWrapper sshJcraftWrapper = new SshJcraftWrapper();
try {
sshJcraftWrapper
- .connect(Host_ip_address, User_name, Password, "]]>]]>", 30000, Integer.parseInt(Port_number),
- "netconf");
+ .connect(Host_ip_address, User_name, Password, 30000, Integer.parseInt(Port_number), "netconf"); // what about prompt "]]>]]>"?
String NetconfHelloCmd = netconfHelloCmd;
NetconfHelloCmd = NetconfHelloCmd + "]]>]]>";
log.debug("Sending the hello command");
try {
String NetconfHelloCmd = netconfHelloCmd;
sshJcraftWrapper
- .connect(Host_ip_address, User_name, Password, "]]>]]>", 30000, Integer.parseInt(Port_number),
- "netconf");
+ .connect(Host_ip_address, User_name, Password, 30000, Integer.parseInt(Port_number),
+ "netconf"); //What about prompt "]]>]]>" here?
NetconfHelloCmd = NetconfHelloCmd + "]]>]]>";
log.debug(":Sending the hello command");
sshJcraftWrapper.send(NetconfHelloCmd);