Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- ##----------------------------------------------------------------------
- ## Vendor: RubyTech
- ## OS: FGS
- ##----------------------------------------------------------------------
- ## Copyright (C) 2007-2013 The NOC Project
- ## See LICENSE for details
- ##----------------------------------------------------------------------
- ## NOC modules
- from noc.sa.profiles import Profile as NOCProfile
- class Profile(NOCProfile):
- name = "RubyTech.FGS"
- supported_schemes = [NOCProfile.TELNET, NOCProfile.SSH]
- command_submit = "\r"
- pattern_username = r"^Login: "
- pattern_password = r"\nPassword: "
- pattern_more = r"^...\(q to quit\)"
- command_more = " "
- # pattern_unpriveleged_prompt = r"^\S+> "
- # pattern_syntax_error = r"^% (Unrecognized command|Incomplete command|Wrong number of parameters or invalid range, size or characters entered)$"
- # command_disable_pager = "terminal datadump"
- # command_super = "enable"
- # command_enter_config = "configure"
- # command_leave_config = "end"
- # command_save_config = "copy running-config startup-config"
- pattern_prompt = r"(\n|)^\S+(|(\S+))# "
- # command_leave_config = "logout"
- rogue_chars=["\r"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement