zone的命令行配置

第一種,通過加入wwn來完成zone的創建,這種方法可以保證即使換了端口還是可以保證zone關係的存在;

Root> config

Config>

..                - Move back one level

NPIV              - Configure NPIV settings

NSTools           - Configure the Name Server snapshotdatabase

alias             - Configure Alias for WWNs

commadelim        - Toggle comma-delimited display mode

enterpriseFabMode - Configure EnterpriseFabric Mode settings

features          - Configure product feature settings

fencing           - Configure port fencing policies

ficonCUPZoning    - Configure FICON CUP Zoning

ficonMS           - Configure FICON management serversettings

ip                - Configure product ip settings

login             - Login to CLI under differentaccess rights

logout            - Logout of CLI

openSysMS         - Configure open systems managementserver settings

port              - Configure product port data

root              - Move back to root level

security          - Configure product security settings

snmp              - Configure product SNMP settings

switch            - Configure product switch data

syslog            - Configure Syslog settings

system            - Configure product system data

zoning            - Configure product zoning settings

Config>zoning

Config.Zoning>

..                - Move back one level

activateZoneSet   - Activate the zone set in the zone setworking area

addPortMem        - Add a domain/port member to the zoneset working area

addWwnMem         - Add a WWN member to the zone setworking area

addZone           - Add a new (empty) zone to the zoneset working area

clearZone         - Clear all zone members from a zonein the working area

clearZoneSet      - Clear the zone set working area,removing all zones

commadelim        - Toggle comma-delimited display mode

deactivateZoneSet - Place all devices inthe Default Zone immediately

deletePortMem     - Delete a domain/port member from thespecified zone

deleteWwnMem      - Delete a WWN zone member from thespecified zone

deleteZone        - Delete a zone from the zone setworking area

login             - Login to CLI under differentaccess rights

logout            - Logout of CLI

renameZone        - Rename a zone in the zone set workingarea

renameZoneSet     - Rename the zone set working area

replaceZoneSet    - Replace the working area with the activezone set

root              - Move back to root level

setDefZoneState   - Enable or disable the default zone state

showActive        - Show the zoning configuration that issaved on the fabric

showPending       -Show the current zone set working area

Config.Zoning> addZone prg(創建zone prg)

Config.Zoning> addWwnMem prg  2005080088E38C64  (將需要加入zonewwn加入到所創建的zone

Config.Zoning> activateZoneSet(完成激活,zone關係即可使用)

 

第二種,通過加入交換機的端口來完成zone的創建,這種方法是依據端口創建的,所以不用理會hba卡的wwn號是多少;

Root> config

Config>

..                - Move back one level

NPIV              - Configure NPIV settings

NSTools           - Configure the Name Server snapshotdatabase

alias             - Configure Alias for WWNs

commadelim        - Toggle comma-delimited display mode

enterpriseFabMode - Configure EnterpriseFabric Mode settings

features          - Configure product feature settings

fencing           - Configure port fencing policies

ficonCUPZoning    - Configure FICON CUP Zoning

ficonMS           - Configure FICON management serversettings

ip                - Configure product ip settings

login             - Login to CLI under differentaccess rights

logout            - Logout of CLI

openSysMS         - Configure open systems managementserver settings

port              - Configure product port data

root              - Move back to root level

security          - Configure product security settings

snmp              - Configure product SNMP settings

switch            - Configure product switch data

syslog            - Configure Syslog settings

system            - Configure product system data

zoning            - Configure product zoning settings

Config>zoning

Config.Zoning>

..                - Move back one level

activateZoneSet   - Activate the zone set in the zone setworking area

addPortMem        - Add a domain/port member to the zoneset working area

addWwnMem         - Add a WWN member to the zone setworking area

addZone           - Add a new (empty) zone to the zoneset working area

clearZone         - Clear all zone members from a zonein the working area

clearZoneSet      - Clear the zone set working area,removing all zones

commadelim        - Toggle comma-delimited display mode

deactivateZoneSet - Place all devices inthe Default Zone immediately

deletePortMem     - Delete a domain/port member from thespecified zone

deleteWwnMem      - Delete a WWN zone member from thespecified zone

deleteZone        - Delete a zone from the zone setworking area

login             - Login to CLI under differentaccess rights

logout            - Logout of CLI

renameZone        - Rename a zone in the zone set workingarea

renameZoneSet     - Rename the zone set working area

replaceZoneSet    - Replace the working area with the activezone set

root              - Move back to root level

setDefZoneState   - Enable or disable the default zone state

showActive        - Show the zoning configuration that issaved on the fabric

showPending       -Show the current zone set working area

Config.Zoning> addZone prg(創建zone prg)

Config.Zoning> addPortMem<zoneName> <domainId> <portNumber> (domainid可以根據規劃填寫相應數值,portNumber爲相應端口號)

Config.Zoning> activateZoneSet(完成激活,zone關係即可使用)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章