Need sample to connect from Linux to windows servers


(Deepchandna) #1

Can anyone please share the process or code sample to connect from StackStorm linux server to windows servers?


(Lindsay Hill) #2

https://www.google.com/search?source=hp&ei=PNdxW45MhvD_BNzBr_gO&q=stackstorm+windows&oq=stackstorm+windows&gs_l=psy-ab.3..0j0i22i30k1.1074.3214.0.3644.18.17.0.0.0.0.184.1981.7j10.17.0..2..0...1.1.64.psy-ab..1.17.1977...0i131k1.0.0a6hbUYWYfc


(Deepchandna) #3

@lhill Thanks much…


(Deepchandna) #4

As per stackstorm document required samba client is 4.1.

smbclient >= 4.1 - Command line Samba client ( smbclient package on Ubuntu and samba-client package on Fedora)`

Can i install version “4.6.2”? Can we have version greater than 4.1 for samba? Please respond ASAP.


(Lindsay Hill) #5

The document states “smbclient >= 4.1”

>= is commonly used in mathematics and programming and means “Greater than or Equal to”

If you require immediate, on-demand support, please contact sales@stackstorm.com.


(Deepchandna) #6

Okays, please take your time and respond .


(Luciano) #7

You can use Windows Integration Pack - GitHub - StackStorm-Exchange/stackstorm-windows.

A simple Mistral workflow executing a remote command would be like this:

---
version: '2.0'

default.remote-windows-command-demo:
  input:
    - host
    - user
    - password
  tasks:
    Dir_C_Drive:
      action: windows.winexe_cmd
      input:
        command: "dir c:\\"
        host: <% $.host %>
        username: <% $.user %>		
        password: <% $.password %>

Regards,

Luciano


(Deepchandna) #8

@luciano Thanks :slightly_smiling_face: