Hello all,
I have been trying to run commands that collect basic info from the VIO's
The issue I am having is setting the env with the "oem_setup_env" after I login as "padmin".
I usually do the following:
ssh server command
ssh root@server date , but I need to login set the env and then run the command prtconf or oslevel -r etc....
Here is my code:
#!/bin/ksh
Tmp=/tmp/VIOtmpX.txt
Output="1>$Tmp 0>&1"
Output2="/tmp/VIOtmp.txt"
env="oem_setup_env";
who="whoami";
# eval "ssh padmin@vioserver $Output";
sleep 5;
eval "$env";
eval "$who $Output";
eval "oslevel -r $Output2";
print "Exiting script";
exit 0