Last active
March 1, 2022 12:57
Revisions
-
dlangille renamed this gist
May 12, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dlangille revised this gist
May 12, 2014 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ #!/bin/sh JLS="/usr/sbin/jls" PKG="/usr/sbin/pkg" # list of the jail ids for all jails JAILS=`${JLS} jid` @@ -12,15 +13,15 @@ if [ "${CHECKING}" != 'host' ] then for jail in ${JAILS} do JAILSTATUS=`${PKG} -j ${jail} audit -q` if [ "${JAILSTATUS}" != "" ] then HOSTNAME=`${JLS} -j ${jail} host.hostname` RESULT="${RESULT}${HOSTNAME}: ${JAILSTATUS} " fi done else RESULT=`${PKG} audit -q` if [ "${RESULT}" != "" ] then RESULT="`hostname`: ${RESULT}" @@ -35,3 +36,4 @@ else echo ${RESULT} exit 2 fi -
dlangille revised this gist
May 11, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,7 +32,6 @@ then echo 'No problems found' exit 0 else echo ${RESULT} exit 2 fi -
dlangille revised this gist
May 11, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,9 @@ fi if [ "${RESULT}" == "" ] then echo 'No problems found' exit 0 else echo 'Problems found in these jails' echo ${RESULT} exit 2 fi -
dlangille revised this gist
May 11, 2014 . 1 changed file with 18 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,18 +5,27 @@ JLS="/usr/sbin/jls" # list of the jail ids for all jails JAILS=`${JLS} jid` RESULT="" CHECKING=$1 if [ "${CHECKING}" != 'host' ] then for jail in ${JAILS} do JAILSTATUS=`sudo pkg -j ${jail} audit -q` if [ "${JAILSTATUS}" != "" ] then HOSTNAME=`${JLS} -j ${jail} host.hostname` RESULT="${RESULT}${HOSTNAME}: ${JAILSTATUS} " fi done else RESULT=`pkg audit -q` if [ "${RESULT}" != "" ] then RESULT="`hostname`: ${RESULT}" fi fi if [ "${RESULT}" == "" ] then -
dlangille revised this gist
May 11, 2014 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,20 +5,23 @@ JLS="/usr/sbin/jls" # list of the jail ids for all jails JAILS=`${JLS} jid` RESULT="" NEWLINE=" " for jail in ${JAILS} do JAILSTATUS=`sudo pkg -j ${jail} audit -q` if [ "${JAILSTATUS}" != "" ] then HOSTNAME=`${JLS} -j ${jail} host.hostname` RESULT="${RESULT}${HOSTNAME}${NEWLINE}${JAILSTATUS}${NEWLINE}${NEWLINE}" fi done if [ "${RESULT}" == "" ] then echo 'No problems found' else echo 'Problems found in these jails' echo ${RESULT} fi -
dlangille created this gist
May 11, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ #!/bin/sh JLS="/usr/sbin/jls" # list of the jail ids for all jails JAILS=`${JLS} jid` RESULT="" for jail in ${JAILS} do JAILSTATUS=`sudo pkg -j ${jail} audit -q` if [ "${JAILSTATUS}" != "" ] then HOSTNAME=`jls -j ${jail} host.hostname` RESULT="?${RESULT}${HOSTNAME}{$JAILSTATUS}" fi done if [${RESULT} == ""] then echo 'No problems found' else echo ${RESULT} fi