1752586 Members
3701 Online
108788 Solutions
New Discussion юеВ

Re: 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 2
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