Code Monkey home page Code Monkey logo

systems-network-check's Introduction

How-To: Automating Systems Availability Network Checks

The sample Microsoft Windows PowerShell script listed in this repository demonstrates how to automate checking the network availability of a targeted system and send an email alert if the system is unresponsive. This can be useful for scenarios that require quickly pre-checking a system's network availability before performing further automation or where a standalone network monitoring platform is unavailable.

Performing the Availability Check on Targeted Systems:

The sample PowerShell script named systems_check.ps1 demonstrates how to perform the following primary actions:

  1. Obtain information on targeted systems from a specified system XML file.
  2. Check availability of targeted systems by attempting to ping the device on the network.
  3. Send an email alert to specified parties if the ping attempt failed on the targeted system.

Providing Alert Information for the Targeted Systems:

The sample XML file named system1.xml demonstrates how to setup targeted system information for the systems_check.ps1 script. In the sample system1.xml file, the following information has been provided for three clustered server nodes that will be monitored:

  1. Cluster Name
  2. Data Center Location
  3. Connected Top of the Rack (TOR) Switch
  4. Server Node Name
  5. Server Hardware Serial Number
  6. Server IP Address

Requirements:

  1. Microsoft Windows PowerShell.
  2. A reachable SMTP Server.
  3. [Optional] Task Scheduler on Microsoft Windows or a similar equivalent for creating a scheduled task/job to run the systems availability check on a set interval.

Use Cases:

A modified version of the systems_check.ps1 script is part of the automation used to support and enable the following Cisco Data Center product demonstrations on Cisco dCloud:

  1. Cisco HyperFlex Edge with Intersight v1
  2. Cisco Unified Computing System 4.0 v1
  3. Cisco UCS Management with Intersight v1
  4. Cisco UCS 4.0 with Kubernetes - (KUBaM) v1
  5. Cisco UCS Central 2.0 v1
  6. Cisco UCS Central 2.0 Lab v1
  7. Cisco UCS Programmability and Automation Lab v1

Cisco dCloud is available at https://dcloud.cisco.com, where product demonstrations and labs can be found in the Catalog.

Author:

Ugo Emekauwa

Contact Information:

[email protected] or [email protected]

systems-network-check's People

Contributors

ugo-emekauwa avatar

Watchers

James Cloos avatar

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.