Net-Appliance-Session - Re: Juniper Phrase Book

Posted on Sun Oct 19 02:20:59 2008 by oliver in response to 9018 (See the whole thread of 10)
Re: Juniper Phrase Book
Hi Kevin,

I have uploaded a new version (1.5) of Net::Appliance::Phrasebook to CPAN with a prototype JUNOS command set included.

Some things you will need to do to use it properly:

1. Probably disable paging using
$s->do_paging(0)
before connect. Otherwise, please send me the command used to enable/disable paging on JUNOS (Google failed me!)
2. Set
$s->in_privileged_mode(1)
immediately after connecting. From what I understand JUNOS does not have Cisco-style unprivileged and privileged modes.
3. Commit your config before disconnecting using
$s->cmd(commit)
You can just call exit and then answer the [yes/no] commit question, but it's fiddly, so I don't recommend it.

Please let me know how you get on. If there are errors and you want to send a command output to me privately instead of posting here, use my email address which is at the bottom of the module's manual page.

regards,
oliver.
Direct Responses: 9224 | 9434 | Write a response