|
SAFplus Runtime Director API
3.0.5
|
A machine. More...


Public Member Functions | |
| def | __init__ |
| def | asp_running |
| Return true if ASP is running. More... | |
| def | asp_status |
| Return with init.d/asp status return code. More... | |
| def | start_asp |
| def | stop_asp |
| def | unload_tipc |
| def | zap_asp |
| def | restart_asp |
Public Member Functions inherited from psh.Psh | |
| def | __init__ |
| def | ifconfig |
| def | ls |
| Output format is a list of strings. More... | |
| def | dir |
| Output format is a list of tuples containing: ("filename", datetime, int(size), "owner", "group", "permissions", int(directory or link count)) More... | |
| def | cd |
| change directory More... | |
| def | rm |
| remove files More... | |
| def | rmtree |
| remove recursively (rm -rf) More... | |
| def | cp |
| copy More... | |
| def | mv |
| move More... | |
| def | pwd |
| return the current directory More... | |
| def | which |
| return the full path for an executable, by searching through your path More... | |
| def | mkdirs |
| Make all directories necessary to make the passed path exist. More... | |
| def | chown |
| change file owner More... | |
| def | chmod |
| change file permissions More... | |
| def | chattr |
| change file attributes More... | |
| def | cat |
| dump a file More... | |
| def | date |
| def | pidof |
| return the process id More... | |
| def | kill |
| Send a signal (default is the kill signal) to a process. More... | |
| def | killall |
| Send a signal to all processes matching a name. More... | |
| def | scp |
| remote copy More... | |
| def | rsync |
| def | wget |
| Gets a bunch of files given a URL. More... | |
| def | run |
| Wrapper for run_raw that raises an exception if the return code is not 0. More... | |
| def | get_return_code |
| def | tail |
| FIXME add description. More... | |
Public Member Functions inherited from pcli.Pcli | |
| def | __init__ |
| Optional parameter specifies the return code on success for use in detecting if a command succeeded or not. More... | |
| def | underlying_expect |
| Return the raw expect object so you can do your own expecting. More... | |
| def | set_prompt |
| def | get_return_code |
| Override this function to implement the logic that gets a result code from the execution of the prior command. More... | |
| def | prompt |
| This matches the shell prompt. More... | |
| def | run |
| Wrapper for run_raw that raises an exception if the return code is not 0. More... | |
| def | run_raw |
| Run an arbitrary command, with timeout. More... | |
Public Attributes | |
| name | |
| ip | |
| user | |
| password | |
| asp_dir | |
| bash | |
Public Attributes inherited from psh.Psh | |
| exp | |
| default_timeout | |
| psh | |
| path | |
| lines | |
| lines_read | |
Public Attributes inherited from pcli.Pcli | |
| success_return_code | |
| exp | |
| promptText | |
| rePROMPT | |
| default_timeout | |
A machine.
This class represents a node (machine) in the cluster
| def nodeExpect.Node.__init__ | ( | self, | |
| name, | |||
| aspdir, | |||
| ip, | |||
| user, | |||
| password, | |||
logdir = "." |
|||
| ) |
| def nodeExpect.Node.asp_running | ( | self, | |
aspdir = None |
|||
| ) |
Return true if ASP is running.
| def nodeExpect.Node.asp_status | ( | self, | |
aspdir = None |
|||
| ) |
Return with init.d/asp status return code.
| def nodeExpect.Node.restart_asp | ( | self, | |
aspdir = None |
|||
| ) |
| def nodeExpect.Node.start_asp | ( | self, | |
stop_first = False, |
|||
start_args = None, |
|||
aspdir = None |
|||
| ) |
| def nodeExpect.Node.stop_asp | ( | self, | |
aspdir = None |
|||
| ) |
| def nodeExpect.Node.unload_tipc | ( | self | ) |
| def nodeExpect.Node.zap_asp | ( | self, | |
aspdir = None |
|||
| ) |
| nodeExpect.Node.asp_dir |
| nodeExpect.Node.bash |
| nodeExpect.Node.ip |
| nodeExpect.Node.name |
| nodeExpect.Node.password |
| nodeExpect.Node.user |