Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. root@noc:/opt/noc# cat /opt/noc/sa/profiles/Ubiquiti/EdgeSwitch/get_config.py
  2. # -*- coding: utf-8 -*-
  3. ##----------------------------------------------------------------------
  4. ## Ubiquiti.EdgeSwitch.get_config
  5. ##----------------------------------------------------------------------
  6. ## Copyright (C) 2007-2010 The NOC Project
  7. ## See LICENSE for details
  8. ##----------------------------------------------------------------------
  9. """
  10. """
  11. import noc.sa.script
  12. from noc.sa.interfaces import IGetConfig
  13.  
  14. class Script(noc.sa.script.Script):
  15. name="Ubiquiti.EdgeSwitch.get_config"
  16. implements=[IGetConfig]
  17. def execute(self):
  18. config=self.cli("show running-config")
  19. return self.cleaned_config(config)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement