moler.events.unix package

Submodules

moler.events.unix.advise_to_change_your_password module

class moler.events.unix.advise_to_change_your_password.AdviseToChangeYourPassword(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_textualevent.GenericUnixTextualEvent

on_new_line(line, is_full_line)

Put your parsing code here.

Parameters:
  • line – Line to process, can be only part of line. New line chars are removed from line.
  • is_full_line – True if line had new line chars, False otherwise
Returns:

None

moler.events.unix.failed_login_counter module

class moler.events.unix.failed_login_counter.FailedLoginCounter(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

moler.events.unix.genericunix_lineevent module

Generic Unix/Linux module

class moler.events.unix.genericunix_lineevent.GenericUnixLineEvent(detect_patterns, connection=None, till_occurs_times=-1, match='any', runner=None)

Bases: moler.events.lineevent.LineEvent

moler.events.unix.genericunix_textualevent module

Generic Unix/Linux module

class moler.events.unix.genericunix_textualevent.GenericUnixTextualEvent(connection=None, till_occurs_times=-1, runner=None)

Bases: moler.events.textualevent.TextualEvent

moler.events.unix.last_failed_login module

class moler.events.unix.last_failed_login.LastFailedLogin(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.last_login.LastLogin

moler.events.unix.last_login module

class moler.events.unix.last_login.LastLogin(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_textualevent.GenericUnixTextualEvent

on_new_line(line, is_full_line)

Put your parsing code here.

Parameters:
  • line – Line to process, can be only part of line. New line chars are removed from line.
  • is_full_line – True if line had new line chars, False otherwise
Returns:

None

moler.events.unix.ping_no_response module

class moler.events.unix.ping_no_response.PingNoResponse(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

moler.events.unix.ping_response module

class moler.events.unix.ping_response.PingResponse(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

moler.events.unix.private_system module

class moler.events.unix.private_system.PrivateSystem(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

moler.events.unix.shutdown module

class moler.events.unix.shutdown.Shutdown(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

moler.events.unix.u_boot_crtm module

class moler.events.unix.u_boot_crtm.UBootCrtm(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_textualevent.GenericUnixTextualEvent

on_new_line(line, is_full_line)
Put your parsing code here.
Parameters:
  • line – Line to process, can be only part of line. New line chars are removed from line.
  • is_full_line – True if line had new line chars, False otherwise
Returns:

None

moler.events.unix.wait4prompt module

class moler.events.unix.wait4prompt.Wait4prompt(connection, prompt, till_occurs_times=-1, runner=None)

Bases: moler.events.shared.wait4.Wait4

moler.events.unix.wait4prompts module

class moler.events.unix.wait4prompts.Wait4prompts(connection, prompts, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_textualevent.GenericUnixTextualEvent

change_prompts(prompts)
on_new_line(line, is_full_line)

Method to parse output from device. Write your own implementation to do something useful :param line: Line to parse, new lines are trimmed :param is_full_line: True if new line character was removed from line, False otherwise :return: None

moler.events.unix.warning_default_password module

class moler.events.unix.warning_default_password.WarningDefaultPassword(connection, till_occurs_times=-1, runner=None)

Bases: moler.events.unix.genericunix_lineevent.GenericUnixLineEvent

Module contents

Package for implementing Unix/Linux commands.