- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- BladeSystem - General
- >
- Virtual Connect Command Line Scripting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2012 12:59 PM
06-20-2012 12:59 PM
Virtual Connect Command Line Scripting
Reginald was looking for some VC scripting help:
*****************
Working with a customer in putting together some VC scripting to build out their enclosures unattended. I notice that the following command aborts even though it is set to expanded.
- VC scripting command “set enet-vlan VlanCapacity=Expanded”
Even though we’re supplying a response to the variable, it still prompts for a response from the user. If I remove the command from the file it will execute all of the commands without an error. In doing so, I can set this value either through the GUI or CLI. Can someone explain as to why it is looking from a response from the user when I’m supplying a response?
*****************
Reply from Dave:
I use VC scripting with a lot of site now. The key is to add ‘yes’ to the next line:
VC scripting command “set enet-vlan VlanCapacity=Expanded”
Yes
### Next line
This has worked for me.
If you do not add the yes, it will pick up the first command of the next line and then the next line and so on.
And input from Steve:
Actually, use the –quiet switch…
set enet-vlan -quiet vlancapacity=expanded
Page 25 of the FF CB - http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02616817/c02616817.pdf
Response from Reginald:
Thanks to all that responded! Both suggestions worked.
*******************
Any other comments?