Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. ##----------------------------------------------------------------------
  3. ## Vendor: RubyTech
  4. ## OS: FGS
  5. ##----------------------------------------------------------------------
  6. ## Copyright (C) 2007-2013 The NOC Project
  7. ## See LICENSE for details
  8. ##----------------------------------------------------------------------
  9.  
  10. ## NOC modules
  11. from noc.sa.profiles import Profile as NOCProfile
  12.  
  13.  
  14. class Profile(NOCProfile):
  15. name = "RubyTech.FGS"
  16. supported_schemes = [NOCProfile.TELNET, NOCProfile.SSH]
  17. command_submit = "\r"
  18. pattern_username = r"^Login: "
  19. pattern_password = r"\nPassword: "
  20. pattern_more = r"^...\(q to quit\)"
  21. command_more = " "
  22. # pattern_unpriveleged_prompt = r"^\S+> "
  23. # pattern_syntax_error = r"^% (Unrecognized command|Incomplete command|Wrong number of parameters or invalid range, size or characters entered)$"
  24. # command_disable_pager = "terminal datadump"
  25. # command_super = "enable"
  26. # command_enter_config = "configure"
  27. # command_leave_config = "end"
  28. # command_save_config = "copy running-config startup-config"
  29. pattern_prompt = r"(\n|)^\S+(|(\S+))# "
  30. # command_leave_config = "logout"
  31. rogue_chars=["\r"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement