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 characters
#!/bin/bash | |
echo script name: $0 | |
echo first argument: $1 | |
echo number of arguments passed: $# | |
echo all the arguments are: $@ | |
echo exit status of most recent process: $? | |
echo process id of the script: $$ | |
echo username: $USER | |
echo hostname: $HOSTNAME | |
echo a random number: $RANDOM |
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 characters
''' | |
Example format for sdp.csv file. | |
source,dest,port | |
10.0.x.x,10.0.x.y,80 | |
10.0.x.x,10.0.x.y,800 | |
''' | |
import csv | |
import base64 | |
import paramiko |
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 characters
''' | |
example data: | |
name: someText aFewMoreRandomThings aggregate_id: someNumber | |
if this error is found, the script will search for all related logs to this aggregate_id and the text Retries exceeded (RMQ specific). | |
script will then collect all this data and send it to email | |
error type: {} | |
aggregateid: {}\n | |
mq deadfinal log: \n{} | |
related log : \n{} |
NewerOlder