checkSSH

package module
v0.0.0-...-66c13b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

checkSSh

This checks in parallel if the ssh session can be possible on the list of hosts.

Input is yaml file in format

ip:
  - 192.168.1.X
  - 192.168.2.X
  - 192.168.1.X

The output is the sucess.log and error.log.

Import

go get github.com/HamzaAnis/checkSSH

Example

package main

import "github.com/HamzaAnis/checkSSH"

func main() {
	checkSSH.Perform("ip.yaml",10)
}

Here 10 go routines will run and check the sessions in parallel and append to the log files.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Perform

func Perform(configFileName string, routines int)

Perform takes in the yaml file name containing the ips and perform the operation

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL