npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@itentialopensource/junos-file-transfer

v0.0.7-2022.1.1

Published

Download file artifact for Juno devices

Downloads

19

Readme

Junos File Transfer

Table of Contents

Overview

This Pre-Built Automation contains a workflow designed to perform file transfer for Junos OS devices orchestrated by NSO. The workflow utilizes the RPC command to execute shell commands such as SSH and SCP on the Junos device.

Estimated Run Time: 10 min. (depends on file size and network speed)

Installation Prerequisites

Users must satisfy the following pre-requisites:

  • Itential Automation Platform
    • ^2022.1
  • NSO adapter

Requirements

This Pre-Built Automation requires the following:

  • Junos OS device
  • NSO (with Juno NED)
  • SSH Public Key Authentication for device to remote server access

Features

The main benefits and features of the Pre-Built Automation are outlined below.

  • Utilize shell commands on the Juno device to perform MD5 and SCP commands
  • Validate sufficient storage space before download
  • Validate file integrity after download
  • Allow zero-touch mode of operation
  • Utilizes SSH public key authentication (to remote server) for enhanced security
  • Exposes runtime outcome (as a job variable) to parent job

Future Enhancements

Add support for Junos Os devices managed by IAG (Ansible)

How to Install

To install the Pre-Built Automation:

  • Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section in order to install the Pre-Built Automation.
  • The Pre-Built Automation can be installed from within App-Admin_Essential. Simply search for the name of your desired Pre-Built and click the install button.

How to Run

Use the following to run the Pre-Built Automation: Navigate to the Operations Manager app in IAP, then select to run the JunOS File Transfer Pre-Built. Fill up the form with the following details:

  • Zero Touch (checkbox) - eliminate user interactions
  • Perform MD5 check (checkbox) - validate file integrity (using MD5) after download
  • Device Name - NSO Junos OS device name to perform SCP on
  • Local Path - local device file system path to save file (Ex. /var/tmp/)
  • Username - remote file server username to be used with SSH and SCP (Ex. user1)
  • IP Address - remote file server IP address (Ex. 192.168.240.25)
  • Path - remote file server path to file (Ex. /var/opt/)
  • File Name - remote file server file to be downloaded (Ex. foo.bar)

FAQ

MD5 verification fails due to copy command timeout

The copy command may timeout when trying to copy large files from the remote server. The following error can appear in NSO logs:

{
  "jsonrpc": "2.0",
  "error": {
    "type": "rpc.method.failed",
    "code": -32000,
    "message": "Method failed",
    "data": {
      "reason": "DEVICE_NAME: transport timeout; closing session"
    },
    "internal": "jsonrpc_schema2181"
}

In order to fix this issue, make sure to give device read-timeout sufficient time to perform the copy command:

admin@ncs% set devices device DEVICE_NAME read-timeout 400
admin@ncs% comm
Commit complete.

Additional Information

Please use your Itential Customer Success account if you need support when using this Pre-Built Automation.