On 2/12/11 3:29 PM, Michael MacIsaac wrote:
Leland,
> Some of you folks might find this useful.
smcli looks very cool indeed - thanks!
> Documentation is slim,
agreed :)) Do you have a sample /etc/smcli.conf and -T value that just
work? For example, I created a /etc/smapi.conf and tried this:
./smcli-11.042a vnlq -T notsure -n VSW1 -o SYSTEM
but it failed. Any pointers will be appreciated. Thanks.
Shoot...I meant to document that usage at the top of the script. I'll
add it in a little bit.
The script sources the contents of /etc/smapi.conf, ~/.smapi, and the
environment variables SMHOST, SMUSER, and SMPASS to set the
corresponding smhost, smuser, and smpass command arguments. By using
them, you do not have to specify them each time you run the command.
Here's an example of what you'd put in /etc/smapi.conf and/or ~/.smapi:
smhost="zvmserver/44444"
smuser="maint" # <--- probably shouldn't use that fella
smpass="maint" # <--- probably shouldn't still be maint. ;-)
I'm currently using the IUCV interface, so all I have is:
smhost="IUCV"
Then you just use smcli like so:
smcli iqd -T linuxguestname iqd
smcli Image_Create_DM -T linuxguestnme <directoryentry
Leland