You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
audiocodes.rb is not working for me, I have tested with Mediant 1000B (M1KB)
I think this is because of missing newline in MS Windows Style (\r\n).
I inserted \r\n at the end of the command (also with the pre_logout exit command)
Following code works for me with telnet, ssh password auth and ssh pubkey auth:
class M1kb < Oxidized::Model
prompt /^\r?([\w.@() -]+[#>]\s?)$/
comment '## '
expect /\s*--MORE--$/ do |data, re|
send ' '
data.sub re, ''
end
cmd "show running-config\r\n" do |cfg|
cfg
end
cfg :ssh do
username /^login as:\s$/
password /^.+password:\s$/
pre_logout "exit\r\n"
end
cfg :telnet do
username /^Username:\s$/
password /^Password:\s$/
pre_logout 'exit'
end
end
It is also very important to set the "Default terminal window height" (Administration -> WEB & CLI -> CLI Settings) on the Audiocodes device to something diffent than "-1". I think the problem is that in the ssh session there is no window height defined so the line buffer is nul. You can set the value to "0" or much higher (which reduces --MORE-- paging in the output).
The text was updated successfully, but these errors were encountered:
audiocodes.rb is not working for me, I have tested with Mediant 1000B (M1KB)
I think this is because of missing newline in MS Windows Style (\r\n).
I inserted
\r\n
at the end of the command (also with the pre_logout exit command)Following code works for me with telnet, ssh password auth and ssh pubkey auth:
It is also very important to set the "Default terminal window height" (Administration -> WEB & CLI -> CLI Settings) on the Audiocodes device to something diffent than "-1". I think the problem is that in the ssh session there is no window height defined so the line buffer is nul. You can set the value to "0" or much higher (which reduces --MORE-- paging in the output).
The text was updated successfully, but these errors were encountered: