show interfaces descriptions
Interface Admin Link Description
fab0 up up fab0 interface description
fab1 up up fab1 interface description
lo0 up up loopback description
lo0.0 up up loopback logical unit 0 description
What you really want however is the RPC associated with this particular command, again from the CLI you can use the "| display xml rpc" argument to identify the RPC associated with this particular command, as shown below.
show interfaces descriptions | display xml rpc
This informs you that the RPC get-interface-information with the argument descriptions is used to return this data in a suitable format that can then be converted to CSV.So with the RPC known, you can then make a call via PyEz to obtain this data, note that the rpc name that contains "-" have to be converted to "_" instead. e.g. get_interface_information and not get-interface-information
rsp = dev.rpc.get_interface_information(descriptions=True)
Some information about the above approach can be found at the following URL: https://www.juniper.net/documentation/us/en/software/junos-pyez/junos-pyez-developer/topics/task/junos-pyez-rpcs-executing.htmlRegards.