Thorsten Butz #1 Administration von Linux & Co mit der PowerShell #OMI #DSC #SSH Thorsten Butz.

Slides:



Advertisements
Similar presentations
WEB AND WIRELESS AUTOMATION connecting people and processes InduSoft Web Solution Welcome.
Advertisements

Why manageability is importantWhat makes applications manageableHow to make applications manageable Where application == Distributed cloud application.
Chapter 14 Web-Based Management 14-1 Chapter 14
James Boother Blog: INTRODUCTION TO POWERSHELL.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Microsoft virtual machine converter
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
Microsoft “gets it” You operate Windows workloads You operate Linux workloads You just want them both to run great You want the simplicity of unified.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
Windows Management Instrumentation Tool (WMIT) Mike Lawson & Steve Wise CS526 Semester Project 12/08/03.
The Pros and Cons of Collecting Performance Data using Agentless Technology Dima Seliverstov John Tavares Tianxiang Zhang BMC Software, Inc.
Standards Support and Interoperability in Windows Server 2012: Networking, Management, and Storage Jeffrey Snover Distinguished Engineer and Lead Architect.
Jeffrey Snover Distinguished Engineer Microsoft Session Code: SRV312.
VMware vCenter Server Module 4.
Traditional Virtualized Private Cloud Public Cloud  Windows  Linux  UNIX  Windows  Linux  UNIX  Windows  Linux  Windows  Linux.
A crash course in njit’s Afs
IM-B201 Traditional Virtualized Private Cloud Public Cloud  Windows  Linux  UNIX  Windows  Linux  UNIX  Windows  Linux  Windows  Linux.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.

Chapter 14: Remote Server Administration BAI617. Chapter Topics Configure Windows Server 2008 R2 servers for remote administration Remotely connect to.
Remote Desktop Services Remote Desktop Connection Remote Desktop Protocol Remote Assistance Remote Server Administration T0ols.
Client Installation StratusLab Tutorial (Orsay, France) 28 November 2012.
Windows Domain Hardening
AKTE X LINUXADMINISTRATION MIT DER WINDOWS POWERSHELL Thorsten Butz.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
Virtual techdays INDIA │ august 2010 INVENTORY YOUR NETWORK AND CLIENTS WITH POWERSHELL Govindaraj Rangan │ Technology Strategist, Microsoft Corporation.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
PowerShell Shenanigans Lateral Movement with PowerShell
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
POWERSHELL SHENANIGANS KIERAN JACOBSEN HP ENTERPRISE SERVICES.
APC by Schneider Electric– Bill Pasquill SSPCNSV Installation ●Steps needed to install PCNSV on VMware ESX server 3.5 ●Mount CD ●Copy files ●Run Installation.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Managing Linux with System Center and PowerShell DSC Anurag Gupta M382.
Ubuntu, SUSE, OpenSUSE, CentOS & Oracle EL + hundreds on VM Depot Bring your own framework! Ecosystem Supported Microsoft 1st Party Support.
Cross-platform from the metal up Offer robust Linux/UNIX capabilities across WSSC & Azure products.
2/26/021 Pegasus Security Architecture Author: Nag Boranna Hewlett-Packard Company.
General rules 1. Rule: 2. Rule: 3. Rule: 10. Rule: Ask questions ……………………. 11. Rule: I do not know your skill. If I tell you things you know, please stop.
Core 3: Communication Systems. Network software includes the Network Operating Software (NOS) and also network based applications such as those running.
Windows PowerShell Desired State Configuration Overview (for WMF 4.0 Preview) Windows PowerShell Desired State Configuration (DSC) is a new management.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Open source Windows Management Infrastructure server implemented by Microsoft. Portable Includes Windows Server Management protocol stack.
How to not (teach | use) Powershell by Thorsten Butz #b9.
Web-Based Management. Display on Web browser Economical displays Ubiquitous access Reduction in network load for non-polled configuration Web Interface.
Michael Kelley Linux Monitoring and Management with Microsoft System Center and PowerShell DSC INF334 A.
Microsoft ® Lync™ Server 2010 Setup and Deployment Module 04 Microsoft Corporation.
Networking #notes from the field Thorsten Butz. # about_me $speaker name='Thorsten Butz' jobrole = 'Trainer','Consultant','Author' certification.
Free, online, technical courses Take a free online course. Microsoft Virtual Academy.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
The EPIKH Project (Exchange Programme to advance e-Infrastructure Know-How) Overview of software tools for gLite installation & configuration.
Free, online, technical courses Take a free online course. Microsoft Virtual Academy.
Pass Microsoft Installing and Configuring Windows Server 2012 exam in just 24 HOURS! 100% REAL EXAM QUESTIONS ANSWERS Microsoft Installing.
Nano Server Administration Thorsten Butz. # about_me $speaker name='Thorsten Butz' jobrole = 'Trainer','Consultant','Author' certification = 'MC*','LPIC-2'
SharePoint Online and PowerShell?
INFSO-RI Module 03 Installing the ETICS Client ETICS Online Tutorials.
2Operating Systems  Program that runs on a computer  Manages hardware resources  Allows for execution of programs  Acts as an intermediary between.
About_Containers A note from the field Thorsten Butz.
Preparing for the Windows 8.1 MCSA
PowerShell Introduction Copyright © 2016 – Curt Hill.
Grades4sure PDF Dumps CompTIA Security + Certification Exam
Microsoft - Managing Office 365 Identities and Requirements
Basic Commands ls cp ls –l (in detail format) echo ls –a
StratusLab Tutorial (Bordeaux, France)
Andrew Pruski SQL Server & Containers
Lab 1 introduction, debrief
Get Microsoft Exam Dumps Questions - Microsoft Braindumps Dumps4Download
Services Provided by Network Operating Systems
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Chapter 14 Web-Based Management 14-1 Chapter 14
Microsoft Virtual Academy
Preparing for the Windows 8. 1 MCSA Module 6: Securing Windows 8
Presentation transcript:

Thorsten Butz #1 Administration von Linux & Co mit der PowerShell #OMI #DSC #SSH Thorsten Butz

Thorsten Butz #2 about_me Thorsten Butz Trainer, Consultant, Author, Podcaster gplus.to/thorstenbutz thorsten-butz.de slidingwindows.de

Thorsten Butz #3 +

Thorsten Butz #4 Standards-based management OMI Openwsman Wiseman OpenPegasus SFCB/SBLIM SSH … } WBEM

Thorsten Butz #5 A brief history of acronyms Distributed Management Task Force (DMTF) Organization focusing on simplifying management of (heterogeneous) IT environments. Members: Cisco, Dell, HP, Intel, Microsoft, Oracle, VMware, etc. (founded 1992) Common Information Model (CIM) A conceptual model providing standards to exchange management information of computing devices. Web Services-Management (WS-Man) SOAP based protocol for the management of computing devices. Web-Based Enterprise Management (WBEM) A set of management technologies built upon CIM and WS-Man focusing on remote administration in distributed environments.

Thorsten Butz #6 Origins Windows Management Instrumentation (WMI) Microsoft's primary implementation of WBEM # kind of..

Thorsten Butz #7 PowerShell version -ge 3 Windows Management Infrastructure (MI) Successor of WMI, fully downwardly compatible New namespaces e.g. root/StandardCimv2, root/virtualization/v2 CIM Cmdlets Using WS-Man (TCP 5985, 5986) communication instead of RPC/DCOM

Thorsten Butz #8 OMI (aka NanoWBEM) Developed by Microsoft, published in 2012 by Portable, small foot-print, high performance CIMOM Running Linux, Unix, Windows; networking devices, storage controllers, phones x86/amd64 systems only Current version (April 2015): 1.08

Thorsten Butz #9 WPSDSCLinux

Thorsten Butz #10 Demo 1

Thorsten Butz #11 Demo 1

Thorsten Butz #12 Demo 1

Thorsten Butz #13 Demo 1

Thorsten Butz #14 Demo 1 Install Prerequisites for CentOS 6/7: yum -y groupinstall 'Development Tools' yum -y install pam-devel openssl-devel wget yum -y install python python-devel * Install Prerequisites for Debian/Ubuntu: apt-get -y install build-essential pkg-config libssl-dev libpam0g-dev apt-get -y install python python-dev * Install Prerequisites for SuSE: zypper install -y --type pattern Basis-Devel zypper install -y pkg-config libopenssl-devel pam-devel zypper install -y python python-devel * * WPSDSCLinux

Thorsten Butz #15 Demo 1 Download OMI and DSC mkdir ~/Downloads && cd ~/Downloads wget wget tar xvf omi tar.gz tar xvf PSDSCLinux.tar.gz mv dsc/*.

Thorsten Butz #16 Demo 1 Compile OMI and DSC cd omi-1.0.8/./configure && make && make install cd.. make && make reg * Run OMI OMI_HOME=/opt/omi-1.0.8/ /opt/omi-1.0.8/bin/omiserver –d * WPSDSCLinux

Thorsten Butz #17 Demo 1 Create azure endpoint to "open" TCP Port 5986 to the Internet

Thorsten Butz #18 Demo 1 # Define variables $vm = 'azure-ol7.cloudapp.net' $user = 'root' $password = ConvertTo-SecureString -String 'YourPa$$w0rd' -AsPlainText –Force $cred = New-Object System.Management.Automation.PSCredential ($user, $password) # TEST endpoint Test-NetConnection -ComputerName $vm -Port InformationLevel Quiet # Initiate Session $sessionOptions = New-CimSessionOption -UseSsl:1 -SkipCACheck:1 -SkipCNCheck:1 -SkipRevocationCheck:1 $session = New-CimSession -Credential $cred -ComputerName $vm -Port 5986 ` -Authentication Basic -SessionOption $sessionOptions # Verify Session Get-CimClass -Namespace root/omi -CimSession $session -ClassName OMI_Identify

Thorsten Butz #19 Demo 1 # Any existing DscConfig? Get-DscConfiguration -CimSession $session # DSC test configuration Configuration MyFirstLinuxDSC { Import-DSCResource -Module nx Node "$vm"{ nxFile myTestFile { Ensure = "Present" Type = "File" DestinationPath = "/var/tmp/helloworld_dsc.txt" Contents="Hello World!" } MyFirstLinuxDSC -OutputPath 'c:\LinuxDSC' Start-DscConfiguration -CimSession $session -Path 'C:\LinuxDSC' -Verbose –Wait # This should work fine Test-DscConfiguration -CimSession $session

Thorsten Butz #20 RFC 4251 (et al)

Thorsten Butz #21 SSH.NET {sshnet.codeplex.com}

Thorsten Butz #22 PowerShell SSH modules {1} "SSH-Sessions" by Joakim Svenson powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library

Thorsten Butz #23 PoSh SSH modules {2} "PoSh-SSH" by Carlos Perez

Thorsten Butz #24 PoSh-SSH (by Carloz Perez) Requires -Version 3.0 PoSh module written in C# Open source

Thorsten Butz #25 Demo 2 Installation PoSh-SSH

Thorsten Butz #26 Demo 2 # Define variables $vm = 'sea-www5.contoso.com' $user = 'root' $password = ConvertTo-SecureString -String 'p' -AsPlainText –Force $cred = New-Object System.Management.Automation.PSCredential($user, $password) # Test SSH port Test-NetConnection -ComputerName $vm -Port 22 -InformationLevel Quiet # Initiate session $sshSession = New-SSHSession -ComputerName $vm -Credential $cred # Remote command Get-SSHSession # Mind the SessionID, pipelining not supported Invoke-SSHCommand -Index 0 -Command 'uname -a'

Thorsten Butz #27 Demo 2 # Remote command, reloaded (Invoke-SSHCommand -SessionId $sshSession.SessionId -Command 'uname -a').output $linuxCommand = ` 'uname -a; lsb_release -a; cat /proc/cpuinfo | grep "model name" | uniq' (Invoke-SSHCommand -SessionId $sshSession.SessionId -Command $linuxCommand).output # Close session Get-SSHSession | Remove-SSHSession

Thorsten Butz #28 Demo 2 # Download single file $configFullName = '/etc/network/interfaces' $configFileName = $configFullName.split("/")[$configFullName.split("/").count-1] Get-SCPFile -ComputerName $vm -Credential $cred -LocalFile $configFileName - RemoteFile $configFullName Get-Content $configFileName # Download directory (recursive) Get-SCPFolder -ComputerName $vm -Credential $cred ` -RemoteFolder '/etc/ssh' -LocalFolder 'c:\download'

Thorsten Butz #29 Wrap up! "In the context of Azure we make more money if someone's using 10 instances of Linux than they're using 2 instances of Windows." Jeffrey Snover, March 2015

Thorsten Butz #30 Real \b(wo)?men\b don't click.