z1pti3 / jimiplugin-remote Goto Github PK
View Code? Open in Web Editor NEWjimi IT automation framework to carry out remote tasks on workstations, servers, etc
License: Apache License 2.0
jimi IT automation framework to carry out remote tasks on workstations, servers, etc
License: Apache License 2.0
As per below, the fix is to add the timeout=None to the command function:
def command(self, command, args=[], elevate=False, runAs=None):
self.channel.send("{0}{1}".format(command,"\n"))
return (0, self.recv(), "")
to
def command(self, command, args=[], elevate=False, runAs=None, timeout=None):
self.channel.send("{0}{1}".format(command,"\n"))
return (0, self.recv(), "")
I had experienced an issue whereby debugging a Test Fire Trigger resulted in it being triggered 4 times.
Unknown why it ran 4 times as the number 4 does not reflect number of events, foreachs etc.
Each flow only supports a single remote connection, it is not possible to connect to more than one system at a time
When using multicommand when you get errors it says they are ok anyway?
"commands": [
{
"command": "apt-get update",
"data": "Reading package lists...\n",
"errors": [
"E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1374 (apt-get)\n",
"E: Unable to lock directory /var/lib/apt/lists/\n"
],
"msg": "Command succesfull",
"rc": 100,
"result": true
},
{
"command": "apt-get dist-upgrade -y",
"data": "",
"errors": [
"E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1219 (apt-get)\n",
"E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?\n"
],
"msg": "Command succesfull",
"rc": 100,
"result": true
}
],
"errors": "",
"msg": "All commands ran",
"rc": 0,
"result": true
The powershell code to run as current user is not working on windows 7
jimiPlugin-remote/includes/linux.py
Line 48 in f070347
Within the linux connector it is hard coded to 5000 seconds this should be changed to 10 seconds and/or made to be optional within the action that connects?
Once you have connected or tried to connect a number of times the system no longer permits connections
I have a use case where I need to rapidly deploy/automate the installation of software for many users. The remote upload command is fine for uploading small software packages but at a large scale this will cause a bottleneck on upload bandwidth.
Adding the ability to have JIMI tell the client to download the software package from JIMI itself over HTTP/S will make this more efficient and usable at a large scale. The current workaround is to send a remote command to the client to do the following:
powershell -noprofile -executionpolicy bypass -command "Invoke-WebRequest -Uri 'http://server.net/Software/Setup.zip' -OutFile 'C:\Windows\Temp\Setup.zip'"
However, it makes more sense to be able to do this all within a plugin that tells the client to download from JIMI itself. This will help complete the functionality of using JIMI to push out the installation of software at scale.
Thanks,
Danny
When using remoteUpload against one IP multiple times, you will occasionally be faced with:
"flowData": {
"action": {
"action_id": "608821243022b5a73697b831",
"action_name": "Upload Package",
"msg": "File transfer failed - [Errno 32] Broken pipe",
"rc": 403,
"result": false
},
A restart of JIMI resolves the issue.
Uploads hang and never timesout. No file hash checking after upload either
Plugin does not appear to correctly close handles for SMB and as a result every so often it reports a connection error as the max handle count is exceeded.
Reboot and wait for the system to restart before continuing
Convert remote download and upload so that it can only use jimi storage - this would prevent the current issue whereby it can write and read from anywhere on the system
Make windows SMB optional
Using a jimi remote upload if the remote directory path does not exist jimi does not upload the file and returns false. The issue is that no error messages or exit codes tell you that this is the issue.
On every connect, turn off paging by running the command: "terminal monitor 0"
This is a per session command and will remove the requirement of handling the "more" prompt.
If you attempt to connect to the same host multiple times from different flows you get:
smbprotocol.exceptions.SMBException: Server message signature could not be verified: 1488cc7e507ddbf7ee86c5bbd8c4b883 != 75bfdef70950d50774ceba003bc85c75
When using download with storage jimi simply checks that the storage file exists by name and does not check if the given action acl is allowed access
Be great to have a builtin option to ensure the connected host matches what is expected before continuing the flow
Integration with native jimiFlow objects so that flow objects can be run remotely without extra work by a developer.
Be great to have a feature to run commands over WMI / SMB
When running remote in jimi with concurrency actions hang on start, never end and then the trigger notify completes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.