in reply to Re: Net::Appliance::Session, Disable paging & send commands after "su" ?
in thread Net::Appliance::Session, Disable paging & send commands after "su" ?

Just noticed you already have logging at the 'debug' level, so it should show the data...but I don't see it. Perhaps calling the $s->last_reponse() method would show it?
  • Comment on Re^2: Net::Appliance::Session, Disable paging & send commands after "su" ?

Replies are listed 'Best First'.
Re^3: Net::Appliance::Session, Disable paging & send commands after "su" ?
by zen0 (Initiate) on Nov 19, 2013 at 12:45 UTC
    Hello monks,

    I found the solutions for one of my problems :

    1. disable paging -- just put ....new->({ ..do_paging => 0.. })

    https://rt.cpan.org/Public/Bug/Display.html?id=69139

    2. $s->begin_privileged({password => 'pass'});

    The above suggestion.. Doesn't work for me. Workaround is to put "send pass " in the macro begin_privileged at the Phrasebook file i.e.

    ...... macro begin_privileged send su - match passsu send pass match privileged ......