Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 912707 Details for
Bug 1111482
[RFE] Support fencing for iLO over SSH
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Proposed fence agent
fence_ilo_mp (text/plain), 1.83 KB, created by
Marek Grac
on 2014-06-27 08:40:09 UTC
(
hide
)
Description:
Proposed fence agent
Filename:
MIME Type:
Creator:
Marek Grac
Created:
2014-06-27 08:40:09 UTC
Size:
1.83 KB
patch
obsolete
>#!/usr/bin/python -tt > >import sys, re >import atexit >sys.path.append("/usr/share/fence") >from fencing import * > >#BEGIN_VERSION_GENERATION >RELEASE_VERSION="4.0.9.16-bc817" >BUILD_DATE="(built Fri Jun 27 10:36:27 CEST 2014)" >REDHAT_COPYRIGHT="Copyright (C) Red Hat, Inc. 2004-2010 All rights reserved." >#END_VERSION_GENERATION > >def get_power_status(conn, options): > conn.send_eol("show /system1") > > re_state = re.compile('EnabledState=(.*)', re.IGNORECASE) > conn.log_expect(options, re_state, int(options["--shell-timeout"])) > > status = conn.match.group(1).lower() > > if status.startswith("enabled"): > return "on" > else: > return "off" > >def set_power_status(conn, options): > if options["--action"] == "on": > conn.send_eol("start /system1") > else: > conn.send_eol("stop -f /system1") > > conn.log_expect(options, options["--command-prompt"], int(options["--power-timeout"])) > > return > >def reboot_cycle(conn, options): > conn.send_eol("reset hard /system1") > conn.log_expect(options, options["--command-prompt"], int(options["--power-timeout"])) > > return > >def main(): > device_opt = ["ipaddr", "login", "passwd", "secure", "cmd_prompt", "method"] > > atexit.register(atexit_handler) > > all_opt["cmd_prompt"]["default"] = ["MP>", "hpiLO->"] > all_opt["power_wait"]["default"] = 5 > > options = check_input(device_opt, process_input(device_opt)) > > docs = {} > docs["shortdesc"] = "Fence agent for HP iLO MP" > docs["longdesc"] = "" > docs["vendorurl"] = "http://www.hp.com" > docs["symlink"] = [("fence_ilo3_ssh", "Fence agent for HP iLO3 over SSH"), > ("fence_ilo4_ssh", "Fence agent for HP iLO4 over SSH")] > show_docs(options, docs) > > conn = fence_login(options) > conn.send_eol("SMCLP") > > ## > ## Fence operations > #### > result = fence_action(conn, options, set_power_status, get_power_status, None, reboot_cycle) > fence_logout(conn, "exit") > sys.exit(result) > >if __name__ == "__main__": > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1111482
:
912707
|
912708
|
912710
|
913766
|
913767