diff options
author | evasquez <eric.vasquez@calxeda.com> | 2013-07-11 10:29:49 -0500 |
---|---|---|
committer | evasquez <eric.vasquez@calxeda.com> | 2013-07-11 10:29:49 -0500 |
commit | 93ccaef5848e53740710bf05f20865f3d587dbab (patch) | |
tree | ee0f529308c66bd7327da040f0762a2fb8d61df3 | |
parent | 9c29f4c5f41feb912c5f9d9776244d37c9b26be3 (diff) | |
download | cxmanage-93ccaef5848e53740710bf05f20865f3d587dbab.tar.gz |
Added doc example usage for get_sel().
-rw-r--r-- | cxmanage_api/node.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py index f1113ed..3f79398 100644 --- a/cxmanage_api/node.py +++ b/cxmanage_api/node.py @@ -302,6 +302,18 @@ class Node(object): def get_sel(self): """Get the system event log for this node. + >>> node.get_sel() + ['1 | 06/21/2013 | 16:13:31 | System Event #0xf4 |', + '0 | 06/27/2013 | 20:25:18 | System Boot Initiated #0xf1 | Initiated by power up | Asserted', + '1 | 06/27/2013 | 20:25:35 | Watchdog 2 #0xfd | Hard reset | Asserted', + '2 | 06/27/2013 | 20:25:18 | System Boot Initiated #0xf1 | Initiated by power up | Asserted', + '3 | 06/27/2013 | 21:01:13 | System Event #0xf4 |', + ... + ] + >>> # + >>> # Output trimmed for brevity + >>> # + :returns: The node's system event log :rtype: string """ |