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