I need to generate a set of "show" commands daily for a group of devices, and have the text output for each device stored on a server share. For example switch 1 would have a file called switch1_show, switch 2 would have a file called switch2_show, etc.
I would like to use the Netshow tool provided by LMS 3.1, RME. My plan is to:
1. Generate NetShow jobs (with the cwcli interface) for each device. I would generate one job per device since it would be easier to separate the text output into different files for each device.
2. Use following command to create the text output
cwcli netshow jobresults -u xxx -p xxx -id xxxx -output c:\temp\switch1_show.txt
The "cwcli netshow jobresults" command above works fine in a manual process. It's manual because it requires the job id.
I need to automate this procedure, and my problem is trying to find the job id for step 2. Is there a way that cwcli can automatically obtain the job ID without any user intervention?
Does anyone have any suggestions?