<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32317</bug_id>
          
          <creation_ts>2016-07-26 16:53:12 +0300</creation_ts>
          <short_desc>(py)winrm -- another way to execute cmds remotely on Windows</short_desc>
          <delta_ts>2016-07-28 21:45:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>New/proposed packages</product>
          <component>Обычный репозиторий</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://github.com/diyan/pywinrm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>evg</cc>
    
    <cc>viy</cc>
          
          <qa_contact name="Andrey Cherepanov">cas</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157791</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-07-26 16:53:12 +0300</bug_when>
    <thetext>https://github.com/diyan/pywinrm

-- can be used like that:

import winrm

s = winrm.Session(&apos;windows-host.example.com&apos;, auth=(&apos;john.smith&apos;, &apos;secret&apos;))
r = s.run_cmd(&apos;ipconfig&apos;, [&apos;/all&apos;])

(I have also read some notes at https://blogs.technet.microsoft.com/heyscriptingguy/2015/10/27/using-winrm-on-linux/ .)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157795</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-07-26 17:37:24 +0300</bug_when>
    <thetext>It can be used by https://packages.altlinux.org/en/Sisyphus/srpms/ansible :

$ rpmpeek /ALT/Sisyphus/noarch/RPMS.classic/ansible-2.0.2.0-alt2.noarch.rpm fgrep -i winrm -r . | fgrep import
./usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py:    from winrm import Response
./usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py:    from winrm.exceptions import WinRMTransportError
./usr/lib/python2.7/site-packages/ansible/plugins/connection/winrm.py:    from winrm.protocol import Protocol
$ 

It optionally uses https://packages.altlinux.org/en/Sisyphus/srpms/python-module-requests-kerberos .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157799</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-07-27 06:04:40 +0300</bug_when>
    <thetext>python3-module-winrm-0.2.0-alt1.git -&gt; sisyphus:

* Tue Jul 26 2016 Ivan Zakharyaschev &lt;imz@altlinux&gt; 0.2.0-alt1.git
- initial build for ALT Sisyphus (ALT#32317).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157834</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-07-28 21:45:03 +0300</bug_when>
    <thetext>A similar functionality is provided by winexe (linked with samba) --
https://bugzilla.altlinux.org/show_bug.cgi?id=32316 .

I&apos;m including a simple wrapper around pywinrm with a command-line interface similar to winexe in python3-module-winrm-0.2.0-alt3.git. (It&apos;s useful for testing purposes.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>