Giter Site home page Giter Site logo

import_testserverip's Introduction

ImportTestConnection

Imports 'Server' names/IPs from file, and tests connections. Returns as a CSV

Requirements

Imported file must have one column with either hostnames or IP addresses. The running computer must be on the same network as the queried machines. Export file and location can be specified, otherwise it will default to $PWD and the file name "results.csv". Count defaults to 1. This cannot be changed yet.

How To Use

Example 1:

Test-ServerIP -File servers.txt This will import a file called servers.txt that is located in the same directory your command is running. The function will test each object in the list for one Ping test. The results will be compiled into a file called results.csv and save to working directory.

Example 2:

Test-ServerIP -File servers.txt -Export 'C:\Temp\report.csv' This imports the 'servers.txt' file and exports to the 'reports.csv' file located in C:\Temp.

Possible Upgrades

Count

User able to specify the count. This will increase the time required to complete the task. Count can default to 1, unless otherwise specified. Recommended to not go over 4. Switch statement for successful Count: If speciified Count, return ON. If less than specified Count, return BAD. If 0, return OFF.

FileType

Create switch statement / Parameter Set. If the imported file is a text file (one column) or a csv file (multiple columns). The CSV file needs to be in a readable format. For example, the column name must either be in an order or must be the specific Name "Hostname". Additional Parameter for the column name definition. This would need to be a mandatory field if the parameter 'FileType'=CSV. This definition would remove the requirement of the CSV file required to be in a readable state as the user will need to specify the 'ColumnName'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.