Automation
Automation

Scripting How-To: SSH session from within a SLAX script

by Cordelia on ‎08-09-2015 07:21 AM - edited on ‎09-19-2017 07:47 AM by Administrator Administrator (2,586 Views)

Overview

Script for use in Junos Space 13.2 and later. This applies to SLAX version 1.2 and higher.

Feature

 

This script explained at How to open an SSH session from within a SLAX script.


001	version 1.2;
002	 
003	/* Namespace declarations */
004	ns junos = "http://xml.juniper.net/junos/*/junos";
005	ns xnm = "http://xml.juniper.net/xnm/1.1/xnm";
006	ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0";
007	ns str = "http://exslt.org/strings";
008	ns func extension = "http://exslt.org/functions";
009	ns jspace = "http://jspace-utils/asharp@juniper.net";
010	 
011	/* Junos Space annotations */
012	/* @ISLOCAL = "true" */
013	/*