The AIS script could not be upgraded on an EX switch because the user was unable to delete the existing AIS script with the command, request system scripts delete .
request system scripts delete
This article explains how to delet the AIS script using the command, rm -rf.
rm -rf.
Unable to push AIS script from Junos Space to virtual chassis using the CLI command, request system script add Following error is received: ERROR: Cannot use /var/tmp/jais-5.0R2.0-signed.tgz: ERROR: It may have been corrupted during download. ERROR: Please try again, making sure to use a binary transfer. error: Failed to remove bundle from fpc The virtual chassis of the EX4200 is unable to push AIS scripts on all members from the primary. Deleting the existing script using the following command did not help: mrc1-4n-sw1-re1> request system scripts delete fpc0: ERROR: Package 'jais' is not installed crontab: no crontab for root NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install pkg_delete: file '//packages/AISBundle_info.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) mgd: configuration check succeeds mgd: commit complete The AIS script is still seen in member 1, so we still cannot upgrade AIS. mrc1-4n-sw1-re1> show version fpc0: -------------------------------------------------------------------------- Hostname: mrc1-4n-sw1-re0 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] fpc1: -------------------------------------------------------------------------- Hostname: mrc1-4n-sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] AI-Scripts [4.1R5.0]
ERROR: Cannot use /var/tmp/jais-5.0R2.0-signed.tgz: ERROR: It may have been corrupted during download. ERROR: Please try again, making sure to use a binary transfer. error: Failed to remove bundle from fpc
mrc1-4n-sw1-re1> request system scripts delete fpc0: ERROR: Package 'jais' is not installed crontab: no crontab for root NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install pkg_delete: file '//packages/AISBundle_info.xml' doesn't exist pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) mgd: configuration check succeeds mgd: commit complete
mrc1-4n-sw1-re1> show version fpc0: -------------------------------------------------------------------------- Hostname: mrc1-4n-sw1-re0 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] fpc1: -------------------------------------------------------------------------- Hostname: mrc1-4n-sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] AI-Scripts [4.1R5.0]
Check the contents of the directory /etc/db/pkg/jais. % cd /etc/db/pkg/jais/ % ls +COMMENT +CONTENTS +DEINSTALL +DESC +REQUIRE If the file still exists, clear the contents of this directory by removing this JAIS directory. % rm -rf jais
% cd /etc/db/pkg/jais/ % ls +COMMENT +CONTENTS +DEINSTALL +DESC +REQUIRE
% rm -rf jais
rm is the command used in Linux terminology to unlink a file. For instance, the directory entry for the file is removed.
-r stands for recursive. If you specify a directory name and the -r option, rm will remove the specified directory and all its contents, including any subdirectories contained within it.
-f will do the removal without the prompt i.e. it eliminates the error message that rm generally produces if a specified file is not found.
After this is done, the old AIS script is deleted. fpc1: -------------------------------------------------------------------------- Hostname: sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] Then proceed with the upgrade of AIS to 5.0R2.0 and it will be successful. fpc1: -------------------------------------------------------------------------- Hostname: sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] AI-Scripts [5.0R2.0]
fpc1: -------------------------------------------------------------------------- Hostname: sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7]
fpc1: -------------------------------------------------------------------------- Hostname: sw1-re1 Model: ex4200-48px JUNOS Base OS boot [12.3R5.7] JUNOS Base OS Software Suite [12.3R5.7] JUNOS Kernel Software Suite [12.3R5.7] JUNOS Crypto Software Suite [12.3R5.7] JUNOS Online Documentation [12.3R5.7] JUNOS Enterprise Software Suite [12.3R5.7] JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R5.7] JUNOS Routing Software Suite [12.3R5.7] JUNOS Web Management [12.3R5.7] JUNOS FIPS mode utilities [12.3R5.7] AI-Scripts [5.0R2.0]