I'm trying to write a command script in NCM that shows me all of the "notconn" interfaces on a Cisco Nexus switch. That part is easy enough with a "show interface status down | grep notconn | cut -b -14" command. But...once I've got the list of interfaces, I want to iterate through that list of interfaces to grab the *full* description (descriptions are truncated by "show interf status"), with "show interface description | cut -b 30-". Then I'd like to put the interface and description together, outputting each interface and description into a line on the report.
After looking through various example and reading through the variables in the NCM admin guide, I don't think command scripts have this power. I don't see a way that I can pull data output from the CLI and dump it into a variable or iterate through an array. Before I look to perl/expect to do this, am I missing anything?
TIA.