hello everyone
I spended last 2 days trying to use ios_config module against SG300 switch.
I late discoverd this switch family doesn`t use Cisco IOS although has a CLI. :facepalm
Is there anyone here that manage Cisco Small Business switches with ansible?
Best regards,
Hey Islan, did you ever find anything out?
I ran into this today.
I tried using RAW commands to upload base configurations, but the SG300 switch I was using for testing kept closing the connection or haning. Sometimes the switch even hung until I power cycled it, or even factory reset it in some cases.
It’s a late reply, but still relevant. The current 2.4 and even 2.5 ansible IOS modules are not tailored to the IOS dialect used by the Small Business Switches. The main reason the ios_config module does not work, is two fold.
One is the fact it does not expect the “more line” input on the command line. To get rid of that in a Small Business Switch is using “terminal datadump”.
Second is the fact the IOS dialect of the Small Business devices does not accept multiple commands in one line with a delimiter as in IOS like ‘;’. The ios_config module uses for instance “conf terminal; interface ; no shut; end” to inject the commands, this creates an error on the Small Business devices.