policycheck: cmd.script: - source: salt://bitdefender/files/policycheck.sh - runas: root - onlyif: test -d /opt/BitDefender/bin
salt MINION state.apply bitdefender.policycheckMINION
---------- ID: policycheck Function: cmd.script Result: True Comment: Command 'policycheck' run Started: 12:31:14.574542 Duration: 14640.925 ms Changes: ---------- pid: 147315 retcode: 0 stderr: stdout: OK MINION Policy appears to be for Linux
Summary for MINION------------Succeeded: 1 (changed=1)Failed: 0------------Total states run: 1Total run time: 14.641 s
ssalt '*' cmd.run 'ps -ef | grep mongo' --output=txtMINION: mongodb 1151 1 0 Feb16 ? 22:35:12 /usr/bin/mongod --config /etc/mongodb.conf--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/2dcd3ef0-9d50-482d-a314-0e766bfa1a4d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/17da0287-1956-4624-bb92-a5060fc6e571%40googlegroups.com.
Perhaps simplest solution is to pass returned JSON through jq (https://stedolan.github.io/jq/) to isolate the output into simple text as you want.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/17da0287-1956-4624-bb92-a5060fc6e571%40googlegroups.com.