Can you please post me back with the diags(debug log and info log) by using the inbuilt omnistacks device type?
You can enable debug mode from File menu.
As well as you can send us the PuTTy captures for that device by following the below link (if required this can be used for new device type)
I managed to write a custom activity template to deal with this.
Basically as mentioned there is a couple of big differences with how the Alcatel OmniSwitch OS works over cisco like devices.
First is there is no enable mode. I dealt with this by just making the function EnterEnableMode() return true.
Second, the prompt is NOT made up with the switch hostname. The prompt can be what ever you want it to be. The problem this causes with CatTools is the prompt is then present in the config.
My prompt is
The config will then have the line in it
session prompt default "myswitch>"
This causes two issues.
1) If bCleanBuffer is true in the function SendCommandSingle() then everything is stripped in the config after the session prompt command (the config will end with the line session prompt default ")
2) The function cl.WaitForMultData() if you get it to check against the prompt will again see the session prompt command in the config, think its the final prompt, then run an exit (this is a bit of an assumption as I can't see how cl.WaitForMultData() is written)
The above two things are only issues when trying to get the config via the function SendCommandSingle(). During everything else (that I have tried anyway it's fine).
I dealt with it by just making the GetConfig() function run everything it needs to get the config (so it doesn't call SendCommandSingle()). The biggest change thought is I can't let cl.WaitForMultData() look for the prompt. I have to let it time out and then assume that it actually got the config and just grab the data.
Biggest issue with this, is I can't obviously handle if a timeout actually does occur.
Anyway I will grab the data as suggested and send it through at some point.
Please try the below to improve your scripts,
1.If you want to avoid time-outs by sending a delay/wait you can use 'cl.Delay X' command , here 'X' is your delay time.
2.To set the prompts of your choice use the variations and set all four inputs under Variations-->Full Prompts
Hi ianj rgnanda,
we can't backup all Omniswitch , did you have a solution ? or an template for it ?
thx a lot.