I'm trying to automate some CIMC CLI commands to show the inventory of C-Series servers, i.e. show CPU, show hdd, etc. Typically I use Putty to SSH to the CIMC and run each command manually. I'd like to automate this process and save the results to a text file. So I tried using plink.exe to run:
c:\plink.exe -ssh -P 22 192.168.48.176 -l admin -pw password -m cimc_commands.txt >output.txt
But when I do this, i get: "No entry for terminal type "dumb"; using dumb terminal settings." and it just hangs.
If I just use:
c:\plink.exe -ssh -P 22 192.168.48.176 -l admin -pw password
I can log on to the CIMC and manually run commands, so it's got something to do with running the commands from a text file.
Anyone know what I'm doing wrong? Or am I going about this all wrong and there's a better way?