Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 22513

Re: Backing up Alcatel OmniSwitch with CatTools

$
0
0

Hi Nanda,

 

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.

 

For example:

 

My prompt is

 

myswitch>

 

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.



Viewing all articles
Browse latest Browse all 22513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>