Python script to change password

194 views
Skip to first unread message

midhun pk

unread,
Sep 18, 2020, 8:31:44 AM9/18/20
to Junos Python EZ
Hi all,

I am new to the script , looking for a python script to change the user password for juniper devices(routers, switches and firewall) , Could anyone hlep me on this .

Thanks and Regards,
Midhun P.K

midhun pk

unread,
Sep 20, 2020, 1:58:55 AM9/20/20
to Junos Python EZ
Hi All, 

Please requesting anyone to help me on the above.

Regards,
Midhun P.K

Nitin Kumar

unread,
Sep 20, 2020, 2:09:38 AM9/20/20
to Junos Python EZ, midhun pk
Is that going to be for an existing user or that too need to be created?

Thanks
Nitin Kr


From: junos-p...@googlegroups.com <junos-p...@googlegroups.com> on behalf of midhun pk <mith...@gmail.com>
Sent: Sunday, September 20, 2020 11:28:54 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: Re: Python script to change password
 

[External Email. Be cautious of content]

--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/40497295-58ef-4129-acff-07b6b7d6fd4fn%40googlegroups.com.

Juniper Business Use Only

midhun pk

unread,
Sep 20, 2020, 2:22:14 AM9/20/20
to Nitin Kumar, Junos Python EZ
Hi Nitin,

Thanks for reply, its for existing user and am trying to change the password for multiple juniper devices on infoblox NETMRI tool using Ad HOC command batch but no luck , other commands are working fine but for password it should enter interactively and it is getting hangs on password prompt , so though to use a python script to work on this .

Regards,
Midhun P.K

Nitin Kumar

unread,
Sep 20, 2020, 2:32:14 AM9/20/20
to midhun pk, Junos Python EZ
Hi,

Check if you can use this example

You can simply use cu.load API to change users password.

Thanks
Nitin Kr


From: midhun pk <mith...@gmail.com>
Sent: Sunday, September 20, 2020 11:52:00 AM
To: Nitin Kumar <nit...@juniper.net>
Cc: Junos Python EZ <junos-p...@googlegroups.com>

Juniper Business Use Only

Reply all
Reply to author
Forward
0 new messages