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/get_config.py
- # -*- coding: utf-8 -*-
- ##----------------------------------------------------------------------
- ## Ubiquiti.EdgeSwitch.get_config
- ##----------------------------------------------------------------------
- ## Copyright (C) 2007-2010 The NOC Project
- ## See LICENSE for details
- ##----------------------------------------------------------------------
- """
- """
- import noc.sa.script
- from noc.sa.interfaces import IGetConfig
- class Script(noc.sa.script.Script):
- name="Ubiquiti.EdgeSwitch.get_config"
- implements=[IGetConfig]
- def execute(self):
- config=self.cli("show running-config")
- return self.cleaned_config(config)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement