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
We setted-up an oxidized instance to work with ~20 switchs, everything is working great except on an SG350X switch. We configured a custom ruby model for this switch :
classCiscoSMBcustom < Oxidized::ModelusingRefinements# Cisco Small Business 300, 500, and ESW2 series switches# http://www.cisco.com/c/en/us/support/switches/small-business-300-series-managed-switches/products-release-notes-list.htmlprompt/^\r?([\w.@()-]+[#>]\s?)$/cmd'show vlan'do |cfg|
cfg.insert(0,"▬▬ι═══════ﺤ Interfaces VLAN -═══════ι▬▬\n")cfgcfg.cut_tail(1)endcmd'show startup-config'do |cfg|
cfg.insert(0,"\n\n▬▬ι═════════ﺤ Full Config -═════════ι▬▬\n")cfgcfg.cut_tail(1)endcfg:telnet,:sshdousername/User ?[nN]ame:/password/^\r?Password:/post_logindoifvars(:enable) == truecmd'enable'elsifvars(:enable)cmd'enable',/^\r?Password:$/cmdvars(:enable)endendpost_login'terminal datadump'# Disable pagerpost_login'terminal width 0'pre_logout'exit'# exit returns to previous priv level, no way to quit from exec(#)endend
The problem is that oxidized is getting timedout during the export of the configuration, after "show startup-config". It stops randomly after 50-200 lines of conf.
Some additionnal informations :
When i log in SSH directly to the switch and type all the commands from our ruby file, everything is working fine.
The service account have all necessary permissions.
Oxidized version : 0.29.1
Rugged version : 1.7.1
Net-SSH version : 7.2.0
Have a nice day !
LaKishta
The text was updated successfully, but these errors were encountered:
Hello,
We setted-up an oxidized instance to work with ~20 switchs, everything is working great except on an SG350X switch. We configured a custom ruby model for this switch :
The problem is that oxidized is getting timedout during the export of the configuration, after "show startup-config". It stops randomly after 50-200 lines of conf.
Some additionnal informations :
Have a nice day !
LaKishta
The text was updated successfully, but these errors were encountered: