Add support to log collecter CLI options for ports
Changes:
- Added CLI option for SSH port
- Fix HTTPs port for redfishtool
Tested:
Tested on sanndbox script.
Change-Id: I96e864f923a5e38552af063981decc1d26b7863f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/lib/ssh_utility.py b/ffdc/lib/ssh_utility.py
index fb44121..17e1dea 100644
--- a/ffdc/lib/ssh_utility.py
+++ b/ffdc/lib/ssh_utility.py
@@ -22,7 +22,7 @@
for remote host command execution and scp.
"""
- def __init__(self, hostname, username, password):
+ def __init__(self, hostname, username, password, port_ssh):
r"""
Description of argument(s):
@@ -38,6 +38,7 @@
self.hostname = hostname
self.username = username
self.password = password
+ self.port_ssh = port_ssh
def ssh_remoteclient_login(self):
r"""
@@ -55,6 +56,7 @@
# Connect to the server
self.sshclient.connect(
hostname=self.hostname,
+ port=self.port_ssh,
username=self.username,
password=self.password,
banner_timeout=120,