i need to write a bash script that will go in the server to check the ip address of ipmi,
as i read that i can use
ipmitool lan print
i can write it inside server to show the ip address.
but i need to do this command on my local host and i tried to execute this command:
ipmitool lan print -H *servername* -U admin -P password
but i found this error
Unable to establish LAN session
what is wrong with my command?
Note: i can access to the server using ssh without problem, but ipmitool doesnt work with ssh in same command line