I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-09-07 19:26:46-07 by tinuc
Cisco load balancer CSS 11501 series
Hello All, So I'm not sure if any of you are familiar with the CSS but I was hoping to get some help. So the CSS is a tricky beast. The IOS isn't completely Cisco's. Infact, Cisco bought the CSS from another company and adapted the code and made some mods to make it similar to theirs. Any how, so my question is, can I use Net-Appliance-Session for this device? I know I "can" use it and it works but the problem with the CSS is, if you input multiple lines at ones, the CSS doesn't like it. It sometimes locks up and the only way to revive it is to reboot the device. In a lab environment this is OK but in production, this isn't very cool. The question: If I use something like:
foreach my $line(@array) { my @out1 = $s->cmd($line); }
will this wait for the output from each command before throwing the next? If not, how would I go about telling it to? I know I can use the "time out" value but I'm trying to have a more accurate way of doing this since this will be on production devices. Using SecureCRT I have a script that tells it to wait to throw next command till it sees the "(config)#" prompt. How would I do that with these modules? Amir
Direct Responses: 11404 | Write a response
Posted on 2009-09-07 20:00:49-07 by oliver in response to 11403
Re: Cisco load balancer CSS 11501 series
Hi Amir, yes the cmd() method will wait to see a new prompt line before returning, or will time out and throw an error if it doesn't see the prompt. If the CSS has prompt line which look like regular IOS you should be fine, but may need to increase the timeout if it's slow, that's all.
Direct Responses: 11405 | Write a response
Posted on 2009-09-07 23:02:25-07 by tinuc in response to 11404
Re: Cisco load balancer CSS 11501 series
Awesome! Thanks!
Direct Responses: Write a response