ollyg / Net-Appliance-Session

Development of Net::Appliance::Session Perl distribution
https://metacpan.org/pod/Net::Appliance::Session
12 stars 6 forks source link

Error due to large config #12

Closed achatur closed 12 years ago

achatur commented 12 years ago

Hello,

I am not sure but I think I'm getting an error due to the size of the config I'm trying to pull. I'm doing a normal "show run" on an ASA. Works on all other ASA's in the environment except this one. If I issue a "show version" on the device, I got the correct output however here's the errors I'm getting:

[code] Attempting to login: Starting Priviliged Mode..

Software error:

Timeout, EOF or other failure waiting for command response at /var/www/cgi-bin/sanitize2.0.cgi line 328

[/code] Line 328: [code] my @FH = $s->cmd('show run'); [/code] firewall logs: [code] Nov 28 2011 10:48:27: %ASA-6-113004: AAA user authentication Successful : server = x.x.x.x : user = user1 Nov 28 2011 10:48:27: %ASA-6-113008: AAA transaction status ACCEPT : user = user1 Nov 28 2011 10:48:27: %ASA-6-611101: User authentication succeeded: Uname: user1 Nov 28 2011 10:48:27: %ASA-5-502103: User priv level changed: Uname: forum.netsec From: 1 To: 15 Nov 28 2011 10:48:27: %ASA-5-111008: User 'user1' executed the 'enable' command. Nov 28 2011 10:48:28: %ASA-5-111008: User 'user1' executed the 'terminal pager lines 0' command. Nov 28 2011 10:48:28: %ASA-5-111008: User 'user1' executed the 'no terminal pager' command. [/code] So it seems like it's hanging on "show run". Shorter time consuming commands run fine. Is there a way to increase the response time from the device to something acceptable where the script won't break? If anyone has any insight, please get in contact with me. Thanks, Amir

ollyg commented 12 years ago

Resolved with use of timeout setting.

achatur commented 12 years ago

Ok sounds good. Thanks again.

Sent from my Android

----- Reply message ----- From: "Oliver Gorwits" reply@reply.github.com To: "Amir Chatur" amir.chatur@gmail.com Subject: [Net-Appliance-Session] Error due to large config (#12) Date: Sun, Dec 18, 2011 4:12 am

Resolved with use of timeout setting.


Reply to this email directly or view it on GitHub: https://github.com/ollyg/Net-Appliance-Session/issues/12#issuecomment-3193996