Tags » Bash Script

Extract a value from a JSON endpoint in bash (stopping Jenkins CI build)

Curl the URL to get the JSON response and pipe it to the python tool. The python code will extract the value mapped to the given key (number in this case). 56 more words

Linux/Ubuntu

Useful AWS CLI Commands -AMI

Take Our PollTo get AMI ID with tags

aws ec2 describe-images –filter Name=tag:amitype,Values=autoscale –output text | grep -i ami | awk ‘{ print  $5, $7 }’ | awk ‘NR==1{print $1}’ 109 more words

System Administration

Bash script to remove AMI's and associated snapshots older than 7 days

#!/bin/bash
amiid=`aws ec2 describe-images –filter Name=tag:amitype,Values=autoscale –output text | grep -i ami | awk ‘{ print $5, $7 }’ | awk ‘NR==1{print $1}’`
time=`aws ec2 describe-images –image-ids $amiid –query ‘Images[*].’ –output text | awk ‘{ print $2 }’` 119 more words

System Administration

System V init script(start-stop-daemon)

I’ve been looking for efficient ways to start at boot my NodeJS dependent applications, with inspiration from https://gist.github.com/alobato/1968852, I modified it to my own needs. 244 more words

Ubuntu

SRX Performance Testing

For a project, I had to gather data in order to measure the SRX performance under different traffic loads. This was done for a SRX chassis system in cluster mode. 81 more words

Network

Pulling arbitrary data into Domo

This post is part of a series of posts I’m doing about Domo (the Business Cloud) and how I’m using the free tier to analyze metrics around… 870 more words

Technology