Thanks All,
This RPC command works for me via ansible
I used ansible lookup module to take the license content from a file with
the hostname as filename but more advanced use should be to take it
directly from Juniper bulk activation excel based on the serial number
Nitzan
On Wed, Mar 28, 2018
On Mar 28, 2018, at 9:24 AM, Sander Steffann wrote:
>
> I tried that, and git an error message back saying eta the license-add
> command is only supported on cli and not over RPC :'(
—Stacy
___
juniper-nsp mailing list juniper-nsp@puck.nether.net
Thanks Phil!
I knew there was an RPC for this, but hadn’t had the chance to figure it out.
Adam,
Given the info from Phil, you can use a playbook similar to this:
---
- name: 'Add a license to a Junos device'
hosts: junos-all
connection: local
gather_facts: no
roles:
- Juniper.junos
Hi,
> The "xml-name" statement gives the name of the RPC used to access
> this command, which means the RPC adds a
> license from either a URL or a string, and the
> exports license data to a URL.
I tried that, and git an error message back saying eta the license-add command
is only support
adamv0...@netconsultings.com writes:
>The problem is I need to hit enter after the license is passed and then also
>^D (ctrl+D) at the end and I'm not sure how would I go about doing that in
>junos_command.
Not sure why these aren't documented but the functionality is there.
Here's the JUNOS DDL
ther.net] On Behalf
> Of Nitzan Tzelniker
> Sent: Wednesday, March 28, 2018 12:57 AM
> To: j...@unistra.fr
> Cc: juniper-nsp@puck.nether.net
> Subject: Re: [j-nsp] Ansible juniper_junos -add license module?
>
> I dont think rpc will be good option as the command "request syste
I dont think rpc will be good option as the command "request system license
add " dose not have rpc
May be junos_command will do it but I am not sure
user@switch> request system license add jj | display xml rpc
http://xml.juniper.net/junos/17.3R2/junos";>
xml rpc equivalent of this c
On Sun, Mar 25, 2018 at 03:59:14PM +0100, adamv0...@netconsultings.com wrote:
> [...]
> If not how can I send ^D (ctrl+D a.k.a end of file) in expect script please?
# ASCII 4: EOT (end of transmission)
set ctrlD \004
send $ctrlD
--
Jean
#!/usr/bin/expect
set host "myho
It has a module, juniper_junos_rpc, for sending any NETCONF RPC which could be
used to add licenses.
Sorry, not at a computer right now to give you the exact syntax, but it should
certainly be possible with this module.
--Stacy
> On Mar 25, 2018, at 7:59 AM,
> wrote:
>
> Hi folks,
>
>
>
Hi folks,
Does anyone know whether ansible (juniper_junos) has a module for adding
licenses please?
If not how can I send ^D (ctrl+D a.k.a end of file) in expect script please?
Thanks
adam
netconsultings.com
::carrier-class solutions for the telecommunications industry::
10 matches
Mail list logo