|
OK, I got my app working OK. I troubleshot this some more, First I took a deeper look at the phrasebook and determined there was no real issue there, so changing phrasebooks wouldn't have helped me as far as I could tell. To verify I set my connection phrasebook to PIXOS and it connected to the router OK and then ssh to PIX OK but still failed to enable.
I was using this method as per the example in a past post here:
$s->in_privileged_mode(0);
$s->begin_privileged("passwd");
I did some further troubleshooting and determined this line in Net-Appliance-Session-Engine.pm in the begin_privileged sub was causing my problem
return 0 unless $self->do_privileged_mode;
So now instead of setting in_privileged_mode to false I am using this and it works OK for me
$s->do_privileged_mode(1);
$s->begin_privileged("passwd");
Now it occurs to me why my router to router connections worked OK while router to PIX failed. I am logining in straight to priv level 15 when going from router to router. So I would have had this same problem as I did with the PIX had I needed to do an enable after logging into the next router.
Thanks!
|