HP StorageWorks MSA1000 HP StorageWorks 2/8q Fibre Channel Switch Management V - Page 113

Working with switch configurations, Modifying a configuration

Page 113 highlights

Command Line Interface Working with switch configurations Successful management of switches and fabrics with the command line interface depends on the effective use of switch configurations. Key switch management tasks include: ■ Modifying a configuration ■ Backing up a switch configuration ■ Restoring a switch configuration Modifying a configuration A switch supports up to 10 configurations including the default configuration. Each switch configuration contains switch, port, port threshold alarm, and zoning components. The Show Switch command displays the name of the active configuration. A configuration name can have up to 31 characters excluding the pound symbol (#), semicolon (;), and comma (,). By editing the latest configuration and saving the results under a new name, you can create a history of configuration changes. Use the Config List command to display the names of the configurations stored on the switch: 2/8q FC Switch #> config list Current list of configurations default config_10132003 To modify a switch configuration you must open an Admin session with the Admin Start command. An Admin session prevents other accounts from making changes at the same time either through Telnet or Switch Manager. You must also open a Config Edit session with the Config Edit command and indicate which configuration you want to modify. If you do not specify a configuration name, the active configuration is assumed. The Config Edit session provides access to the Set Config commands with which you make modifications to the port, switch, port threshold alarm, or zoning configuration components as shown: 2/8q FC Switch #> admin start 2/8q FC Switch (admin) #> config edit default The config named default is being edited. 2/8q FC Switch (admin-config)#> set config port . . . 2/8q FC Switch (admin-config)#> set config switch . . . 2/8q FC Switch (admin-config)#> set config threshold . . . 2/8q FC Switch (admin-config)#> set config zoning . . . The Config Save command saves the changes you made during the Config Edit session. In this case, changes to the configuration named Default are being saved to a new configuration named config_10132003. However, the new configuration does not take effect until you activate it with the Config Activate command as shown: 2/8q FC Switch (admin-config)#> config save config_10132003 2/8q FC Switch (admin)#> config activate config_10132003 2/8q FC Switch (admin)#> admin end 2/8q FC Switch #> The Admin End command releases the Admin session for other administrators when you are done making changes to the switch. HP StorageWorks 2/8q Fibre Channel Switch Management User Guide 113

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188

Command Line Interface
113
HP StorageWorks 2/8q Fibre Channel Switch Management User Guide
Working with switch configurations
Successful management of switches and fabrics with the command line interface depends on
the effective use of switch configurations. Key switch management tasks include:
Modifying a configuration
Backing up a switch configuration
Restoring a switch configuration
Modifying a configuration
A switch supports up to 10 configurations including the default configuration. Each switch
configuration contains switch, port, port threshold alarm, and zoning components.
The
Show Switch
command displays the name of the active configuration. A
configuration name can have up to 31 characters excluding the pound symbol (#), semicolon
(;), and comma (,). By editing the latest configuration and saving the results under a new
name, you can create a history of configuration changes. Use the
Config List
command to
display the names of the configurations stored on the switch:
2/8q FC Switch #> config list
Current list of configurations
------------------------------
default
config_10132003
To modify a switch configuration you must open an Admin session with the
Admin Start
command. An Admin session prevents other accounts from making changes at the same time
either through Telnet or Switch Manager. You must also open a Config Edit session with the
Config Edit
command and indicate which configuration you want to modify. If you do not
specify a configuration name, the active configuration is assumed. The Config Edit session
provides access to the Set Config commands with which you make modifications to the port,
switch, port threshold alarm, or zoning configuration components as shown:
2/8q FC Switch #> admin start
2/8q FC Switch (admin) #> config edit default
The config named default is being edited.
2/8q FC Switch (admin-config)#> set config port . . .
2/8q FC Switch (admin-config)#> set config switch . . .
2/8q FC Switch (admin-config)#> set config threshold . . .
2/8q FC Switch (admin-config)#> set config zoning . . .
The
Config Save
command saves the changes you made during the Config Edit session.
In this case, changes to the configuration named
Default
are being saved to a new
configuration named
config_10132003
. However, the new configuration does not take
effect until you activate it with the
Config Activate
command as shown:
2/8q FC Switch (admin-config)#> config save config_10132003
2/8q FC Switch (admin)#> config activate config_10132003
2/8q FC Switch (admin)#> admin end
2/8q FC Switch #>
The
Admin End
command releases the Admin session for other administrators when you are
done making changes to the switch.