#!/bin/sh
[ "$RMMuser" =  "" ] && RMMuser="admin"
[ "$RMMpassword" =  "" ] && RMMpassword="password"
echo --------RMM2 Version Information-------------------
kiratool -u $RMMuser -p $RMMpassword ver
kiratool -u $RMMuser -p $RMMpassword fw
kiratool -u $RMMuser -p $RMMpassword info
echo --------RMM2 Network Configuration-------------------
kiratool -u $RMMuser -p $RMMpassword mac
kiratool -u $RMMuser -p $RMMpassword ipsrc
kiratool -u $RMMuser -p $RMMpassword ip
kiratool -u $RMMuser -p $RMMpassword netmask
kiratool -u $RMMuser -p $RMMpassword gw

# To confirm whether a .bin file is valid RMM2 firmware image ...
# kiratool.exe -u $RMMuser -p $RMMpassword fw validate fw-kira-kimasmig4-asmidc-intel_040202-5990.bin

# To upgrade the RMM2 firmware use:  (this also confirms that the image is valid)
# kiratool.exe -u $RMMuser -p $RMMpassword fw upgrade fw-kira-kimasmig4-asmidc-intel_040202-5990.bin
