Junos Automation (Scripting)
Highlighted
Junos Automation (Scripting)

telnet to console IP using pyEZ

‎03-15-2017 02:19 PM

HI,

 

I am wondering ,If we do a request system halt , is there any way to bring the device back up through pyEZ ? instead of directly doing a telnet and hitting return to reboot.

 

Thank you

3 REPLIES 3
Highlighted
Junos Automation (Scripting)

Re: telnet to console IP using pyEZ

‎03-16-2017 11:12 PM

Hi Folks,

I am not sure if it is feasible with known Utilities, however if you figure out the script to send enter signal on the console terminal to reboot the halted routing engine.

http://junos-pyez.readthedocs.io/en/2.0.0/jnpr.junos.utils.html

 

-Python JNCIE 3X [SP|DC|ENT] JNCIP-SEC JNCDS 3X [ WAN | DC|SEC] JNCIS-Cloud JNCIS-DevOps CCIP ITIL
#Please mark my solution as accepted if it helped, Kudos are appreciated as well.
Highlighted
Junos Automation (Scripting)

Re: telnet to console IP using pyEZ

‎03-17-2017 07:07 AM

 

yes with telnetlib i was able to reboot. 

 

Thank you.

Highlighted
Junos Automation (Scripting)

Re: telnet to console IP using pyEZ

‎03-17-2017 07:47 PM

Great! Good to know that..

-Python JNCIE 3X [SP|DC|ENT] JNCIP-SEC JNCDS 3X [ WAN | DC|SEC] JNCIS-Cloud JNCIS-DevOps CCIP ITIL
#Please mark my solution as accepted if it helped, Kudos are appreciated as well.
Feedback