I have a few ALCATEL 7750 routers and i am able to successfully graph all ports/interfaces/services i need. But i wanted to add port descriptions to the graphs from the router itself.
The problem is that the router output of description field is as follows (from verbose query):
Code: Select all
+ Found item [ifDescr='1/1/1, 10/100/Gig Ethernet TX, MSRV01-1-2/41'] index: 35684352 [from value]
1/1/1 - is port/interface number
10/100/Gig Ethernet TX - is port/interface type
and the last MSRV01-1-2/41 is actual description i gave in router
As i understood the output is comma separated and same logic applies to all interfaces/ports
Is there a way to parse the output and discard values from first two columns/commas and use the values from third column as a description?
Thanks in advance.