Advertisement
Guest User

Untitled

a guest
Jun 27th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <class 'noc.sa.script.exception.CLISyntaxError'>
  2.  
  3. 18 rx_ver = re.compile(r"MAC Address\s+[:]\s+(?P<id>\S+)", re.IGNORECASE | re.MULTILINE)
  4. 19 implements = [IGetChassisID]
  5. 20
  6. 21 def execute(self):
  7. 22 ==> match = self.re_search(self.rx_ver, self.cli("show switch", cached=True))
  8. 23 mac = match.group("id")
  9.  
  10. Device Type : DES-3200-52 Fast Ethernet Switch
  11. MAC Address : 28-10-7B-58-EF-F8
  12. IP Address : 172.16.0.106 (Manual)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement