HP 449298-001 manual Remote access to the Virtual Connect Manager

Page 8

->

Non-Interactive Mode

In some cases, users might want to write automated scripts that execute a single command at a time. These scripts can be used to batch several commands in a single script file from the SSH client. An example of how to use the non-interactive mode for CLI command execution is provided below. In the example, the primary VCM is located at IP address 192.168.0.120.

IMPORTANT: To suppress prompting for a password during login, you must first setup the SSH encryption keys using the VCM Web GUI, and configure your SSH client properly with the keys. For additional information on configuring the SSH keys, see the HP Virtual Connect for c- Class BladeSystem User Guide.

->ssh Administrator@192.160.0.120 show enclosure

<command output displayed to console>

Remote access to the Virtual Connect Manager

The Virtual Connect Manager CLI can be accessed remotely through any SSH session:

1.Start an SSH session to the Virtual Connect Manager using any SSH client application.

2.When prompted, type the assigned IP address or DNS name of the Virtual Connect Manager, and then press Enter.

3.Type a valid user name, and then press Enter.

4.Type a valid password, and then press Enter. The CLI command prompt displays.

5.Enter commands for the Virtual Connect Manager.

6.To terminate the remote access SSH session, close the communication software or enter exit at the CLI command prompt.

Introduction 8

Image 8
Contents HP Virtual Connect Manager Command Line Interface User Guide Audience assumptions Contents Technical support Virtual Connect overview Command line overviewIntroduction Command line syntax Subcommand managed element parameters options propertiesParameters OptionsCLI command execution modes PropertiesRemote access to the Virtual Connect Manager Managed elements Command lineSubcommands Devicebay DomainSupported actions delete, help, set, show Enclosure Enet-connection Supported actions add, help, remove, setNetwork=SomeNetwork2 PXE=enabled AddressType=Factory-DefaultAddressType EthernetMACExternal-manager Fabric Fc-connection Support actions help, show, update FirmwareIgmp InterconnectLdap Ldap-group Supported actions add, help, remove, set, showMac-cache Network Profile Add profile MyNewProfile2 -NoDefaultEnetConn Add profile MyNewProfile2 -NoDefaultFcConnAdd profile MyNewProfile Assign profileSupported actions help, poweroff, poweron, reboot, show ServerPoweroff server enc02 Poweroff server enc02 -ForcePoweroff server enc0 Poweroff server enc02 -ForceOnTimeoutStackinglink Uplinkport StatusSystemlog Set uplinkport Set uplinkport PortID Network=NetworkNameSpeed=Auto10Mb100Mb1GbDisabled Set uplinkport enc012 Network=MyNetwork Speed=1GbUplinkset User Set user steve Password=fgY87hHl Set user steve PasswordSet user bill Password=HGtwf7272562 Remove user steveVersion Help subsystemVcm Command line Output format Interactive user output formatBrad Domain Brad Mills Brad.mills@hp.com True Server Scriptable output format Command line Configuring the Virtual Connect domain using the CLI Basic configurationSsh 192.168.0.120 login as Administrator password Ssh 192.168.0.120 login as AdministratorDomain setup Setting the domain nameConfiguring local users Importing an enclosureAdd user bob password=fhkjdhfk privileges=domain,network Set user bob fullname=Bob J Smith enabled=falseRemove user bob Remove userConfiguring MAC Address ranges Network setupConfiguring Ldap authentication support for users Assigned MAC addresses Creating a shared uplink port set Creating an enet-networkAdding uplink ports to an enet-network Fibre Channel setup Configuring WWN address rangesAdding uplink ports to a shared uplink port set Creating a network that uses a shared uplink port setServer Profile setup Modifying FC fabric propertiesDisplaying FC fabrics Set fabric name=MyNewName portspeed=4GbConfiguring the Virtual Connect domain using the CLI Configuring Igmp settings Creating server profilesAdding enet-network connections to a profile Adding FC fabric connections to a server profileConfiguring MAC cache failover settings Set mac-cache enabled=true refresh=10Common management operations Logging out of the CLIResetting the Virtual Connect Manager Reset vcm Reset vcm -failoverVirtual Connect Manager not found at this IP address HP contact information Technical supportBefore you contact HP Acronyms and abbreviations IgmpPXE Index Index