for the error ImportError: no module named request
in Ubuntu
sudo apt-get install request
in CentOS
yum install python-pip
pip install requests
use
pip install pyyaml
or
sudo apt-get install python-yaml # in Ubuntu
yum install python-yaml # in CentOS
pip install arrow
apt-get install jq # in Ubuntu
yum install jq # in CentOS
fill in the username
, password
in secret.yaml
./history.py 2017-02-28T06:01:00+0800 2017-03-28T06:01:00+0800 c01.i07 | jq '.'