HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
BladeSystem - General
cancel
Showing results for 
Search instead for 
Did you mean: 

Writing VCM Scripts.

 
The Brit
Honored Contributor

Writing VCM Scripts.

I am looking into the uses of scripting at the VCM CLI level, to recreate a Domain in a different enclosure.

It looks to be fairly straight forward, except I cant figure out how to trigger it. For example, I create a single line script, in file TestScript.txt

# Add Profile.
add profile TEST -NoDefaultENetConn -NoDefaultFcConn SNType=Factory-Default

Now I want to execute this remotely using SSH
from Windows (XP)

I tried

ssh BaxterD@www.xxx.yyy.zzz -F TestScript.txt

and it appeared to log in (after I supplied the pasword, but it didn't appear to create anything.

Last login: Mon Jun 14 12:37:50 2010 from 10.30.11.94
-------------------------------------------------------------------------------
HP Virtual Connect Management CLI v2.33
(C) Copyright 2006-2009 Hewlett-Packard Development Company, L.P.
All Rights Reserved
-------------------------------------------------------------------------------


GETTING STARTED:

help : displays a list of available subcommands
exit : quits the command shell
? : displays a list of managed elements for a subcommand
? : displays detailed help for a command

->show profile TEST
No profiles exist

->show profile
=========================================================
Name Device Bay Server Status
=========================================================
TEST-WIN1 -- -- OK
DEV-W2K3 enc0:13 ProLiant BL465c G1 OK
TEST-ESX -- -- OK

What am I doing wrong?? Can anyone show me an example, or point me to some more specific documentation.

thanks

Dave
2 REPLIES
The Brit
Honored Contributor

Re: Writing VCM Scripts.

OK forget it. I discovered that

ssh @www.xxx.yyy.zzz < filename.txt

does the job. (where filename contains the script of VCM cli commands.

Dave.
The Brit
Honored Contributor

Re: Writing VCM Scripts.

See above