Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@noc:/opt/noc# cat /opt/noc/sa/profiles/Ubiquiti/EdgeSwitch/__init__.py
- # -*- coding: utf-8 -*-
- ##----------------------------------------------------------------------
- ## Vendor: Ubiquiti
- ## OS: EdgeSwitch
- ##----------------------------------------------------------------------
- ## Copyright (C) 2007-2015 The NOC Project
- ## See LICENSE for details
- ##----------------------------------------------------------------------
- """
- """
- import noc.sa.profiles
- from noc.sa.protocols.sae_pb2 import TELNET, SSH
- class Profile(noc.sa.profiles.Profile):
- name = "Ubiquiti.EdgeSwitch"
- supported_schemes = [TELNET, SSH]
- pattern_username = "[Uu]ser:"
- pattern_password = "[Pp]assword:"
- pattern_unpriveleged_prompt = r"^\S+? >"
- pattern_promt = r"^\S+? #"
- pattern_more = "--More-- or (q)uit"
- command_more = " "
- command_super = "enable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement