Skip to content

Commit c914c7b

Browse files
committed
Completely remove SET_TIME
1 parent ab3ae67 commit c914c7b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

modules/auxiliary/admin/atg/client.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,12 @@ def initialize
111111
'TLS-350_CMD' => "\x01S602"
112112
}
113113
],
114-
[ 'SET_TIME',
115-
{
116-
'Description' => 'S50100 Set time of day (use TIME option) (untested)',
117-
# disabled, unsure how this works just yet
118-
# 'TLS-350_CMD' => "\x01S50100"
119-
}
120-
],
114+
# [ 'SET_TIME',
115+
# {
116+
# 'Description' => 'S50100 Set time of day (use TIME option) (untested)',
117+
# 'TLS-350_CMD' => "\x01S50100"
118+
# }
119+
# ],
121120
[ 'STATUS',
122121
{
123122
'Description' => 'I20500 In-tank status report',
@@ -164,7 +163,6 @@ def initialize
164163
register_advanced_options(
165164
[
166165
OptEnum.new('PROTOCOL', [true, 'The Veeder-Root TLS protocol to speak', 'TLS-350', %w(TLS-350 TLS-250)]),
167-
OptString.new('TIME', [false, "The time to set (use with SET_TIME, defaults to Time.now (~#{Time.now.inspect})"]),
168166
OptInt.new('TIMEOUT', [true, 'Time in seconds to wait for responses to our probes', 5])
169167
]
170168
)
@@ -243,8 +241,6 @@ def run_host(_host)
243241
else
244242
print_warning message
245243
end
246-
when 'SET_TIME'
247-
response = get_response("#{action.opts[protocol_opt_name]}#{Time.now.to_i}\n")
248244
else
249245
response = get_response("#{action.opts[protocol_opt_name]}\n")
250246
print_good("#{peer} #{protocol} #{action.opts['Description']}:\n#{response}")

0 commit comments

Comments
 (0)