Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from fabric.api import task, execute, run, env
- @task
- def ipmitool(host, cmd):
- run("ipmitool -H %s %s" % (host, cmd))
- @task
- def list_ipmi_events():
- host = env.host_string
- result = execute(ipmitool, host, "sel list", hosts=["gateway.example.com"])
- print result[host]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement