-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding custom ME management port for scp transfer #295
Changes from 4 commits
38a1123
f4fd570
4f2b556
d5ee499
4c21b11
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,10 +149,11 @@ function update_firmware($param = '') | |
|
||
$ipaddr = $sms_sd_ctx->getIpAddress(); | ||
$login = $sms_sd_ctx->getLogin(); | ||
$sd_mgt_port = $sd->SD_MANAGEMENT_PORT; | ||
|
||
try | ||
{ | ||
$ret_scp = exec_local(__FILE__ . ':' . __LINE__, "/opt/sms/bin/sms_scp_transfer -s $src -d $dst -l $login -a $ipaddr -p $SD->SD_PASSWD_ENTRY", $output); | ||
$ret_scp = exec_local(__FILE__ . ':' . __LINE__, "/opt/sms/bin/sms_scp_transfer -s $src -d $dst -l $login -a $ipaddr -p $SD->SD_PASSWD_ENTRY -P $sd_mgt_port", $output); | ||
} | ||
catch (Exception | Error $e) | ||
{ | ||
|
@@ -408,10 +409,15 @@ function update_license() | |
$ipaddr = $sms_sd_ctx->getIpAddress(); | ||
$login = $sms_sd_ctx->getLogin(); | ||
$passwd = $sms_sd_ctx->getPassword(); | ||
|
||
$network= get_network_profile(); | ||
$SD = &$network->SD; | ||
$sd_mgt_port = $SD->SD_MANAGEMENT_PORT; | ||
$sd_mgt_port = $sd->SD_MANAGEMENT_PORT; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed by this commit d5ee499 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line 416 should not be there There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed by commit 4c21b11 |
||
|
||
try | ||
{ | ||
$ret_scp = exec_local(__FILE__ . ':' . __LINE__, "/opt/sms/bin/sms_scp_transfer -s $src -d $dst -l $login -a $ipaddr -p $passwd", $output); | ||
$ret_scp = exec_local(__FILE__ . ':' . __LINE__, "/opt/sms/bin/sms_scp_transfer -s $src -d $dst -l $login -a $ipaddr -p $passwd -P $sd_mgt_port", $output); | ||
} | ||
catch (Exception | Error $e) | ||
{ | ||
|
@@ -437,4 +443,4 @@ function update_license() | |
} | ||
} | ||
|
||
?> | ||
?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$sd --> $SD