Automation

Expand all | Collapse all

Need equivalent pyez method of request system software rollback

  • 1.  Need equivalent pyez method of request system software rollback

    Posted 29 days ago
    Hi,
    Need equivalent command of request system software rollback <image>. Found this in the documentation under jnpr.junos.utils.sw: 
    1. rollback()
      Issues the 'request' command to do the rollback and returns the string output of the results.

      Returns Rollback results (str)

    But the ask is to rollback to a particular image from a list of images present. Not seeing the rollback() taking any arguments like image name. Any idea how this can be achieved?


  • 2.  RE: Need equivalent pyez method of request system software rollback

    Posted 13 days ago
    The request system software rollback command does not accept image names. It reverts to the last successfully installed package.  

    https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/request-system-software-rollback.html
    Use this command to revert to the last successfully installed package before the request system software (add | delete) command. It uses the copy stored in the /var/sw/pkg directory.

    If you want to install a specific image, you will have to perform a normal install as outlined here:
    https://www.juniper.net/documentation/en_US/junos-pyez/topics/task/program/junos-pyez-program-software-installing.html

    ------------------------------
    Benjamin Griffin
    ------------------------------