text 天极jf
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 天极jf相关的知识,希望对你有一定的参考价值。
#!/bin/bash
case "$1" in
# ipmi
ipmi)
ipmitool -I lanplus -H "$2" -U taobao -P 9ijn0okm "${@:3}"
;;
# sn_ip_map
snip)
docker exec -it $(docker ps |grep oob |awk '{print $1}') cat /tmp/sn_ip_map
;;
# opsbuild
opsb)
docker exec -it $(docker ps |grep -w clone |awk '{print $1}') /home/tops/bin/python /root/opsbuild/bin/opsbuild.py "${@:2}"
;;
# acli list
ops)
docker exec -it $(docker ps |grep -w clone |awk '{print $1}') /home/tops/bin/python /root/opsbuild/bin/opsbuild.py acli list --status=ALL -n 10000
;;
opsin)
curl -X PUT "localhost:7070/api/v5/SetMachineAction?hostname=$2" -d '{"action_name":"clone", "action_status":"approved", "action_description":"", "force":true}'
;;
# machine info
minfo)
curl localhost:7070/api/v3/column/m.*?m.id="${@:2}"
;;
# tianji_clt
clt)
/cloud/app/tianji-tools/PrivateCloudTool#/tianji_ops_tool/current/tianji_clt "${@:2}" --config /cloud/data/bootstrap_controller/BootstrapController#/bootstrap_controller/tianji_dest.conf
;;
apis)
echo "apis:
localhost:7070
/api/v3
/column/m.*(c.*)?m.*(c.*)=xxx
/api/v5
/GetMachineInfo?hostname=xxx&attr=*
/SetMachineAction?hostname=xxx -d '{json}'
/AddAuditLog?object=xxx -d '{json}'
"
;;
# help info
-h|--help)
echo "Usage: {ipmi,snip,ops(b/in),minfo,clt}"
;;
###
*) echo "hello @\$@"
;;
esac
以上是关于text 天极jf的主要内容,如果未能解决你的问题,请参考以下文章
Julia两天极速入门学习笔记
Julia两天极速入门学习笔记
Julia两天极速入门学习笔记
3天极速掌握 Scala 语言:First Day
css JF Griffing - 移动设备2平铺布局
JF 笔试 反思