Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. root@noc:/opt/noc# cat /opt/noc/sa/profiles/Ubiquiti/EdgeSwitch/__init__.py
  2. # -*- coding: utf-8 -*-
  3. ##----------------------------------------------------------------------
  4. ## Vendor: Ubiquiti
  5. ## OS: EdgeSwitch
  6. ##----------------------------------------------------------------------
  7. ## Copyright (C) 2007-2015 The NOC Project
  8. ## See LICENSE for details
  9. ##----------------------------------------------------------------------
  10. """
  11. """
  12. import noc.sa.profiles
  13. from noc.sa.protocols.sae_pb2 import TELNET, SSH
  14.  
  15.  
  16. class Profile(noc.sa.profiles.Profile):
  17. name = "Ubiquiti.EdgeSwitch"
  18. supported_schemes = [TELNET, SSH]
  19. pattern_username = "[Uu]ser:"
  20. pattern_password = "[Pp]assword:"
  21. pattern_unpriveleged_prompt = r"^\S+? >"
  22. pattern_promt = r"^\S+? #"
  23. pattern_more = "--More-- or (q)uit"
  24. command_more = " "
  25. command_super = "enable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement