您的位置:首页 > 编程语言 > ASP

ASP.NET(C#)常用代码30例

2010-06-25 12:04 405 查看
由于测试的需要,需要把存储的GROUP ip与端口ip更改为生产网络的ip地址,在web界面找了半天,有个修改的地方但是更改不成功。所以只能用控制线登陆到CLI下进行配置了。存储上没有直接修改network的地方,需要在member下更改。(这里给大家一个配置思路和过程,高手自动忽略)

1.先查看下member

PS5000> member show
Name Status Version Disks Capacity FreeSpace Connections
---------- ------- ---------- ----- ---------- ---------- -----------
ps5000 online V6.0.2 (R2 13 3.48TB 293.15GB 0
87892)
2.查看下这下面有哪些可用的网络相关的命令(删除了一些不需要的显示)
PS5000> member select ps5000
cancel-operation - Cancels an in-progress operation.
controller-safe - Enables or disables controller-safe mode for the selecte
d member. If enabled, operates in write-through mode to
ensure data integrity.
def-gateway - Sets a default gateway for the member.
delay-data-move - Enables or disables (default) a delay before using membe
r storage until initial RAID verification completes and
batteries are fully charged.
description - Sets a description for the member.
disk - Displays information about one or more disks or adds dis
ks.
eth - Selects a network interface to configure, modify, or dis
play.
3. 发现eth为配置网络的选项,所以查看下这个参数下可以跟啥命令
PS5000> member select ps5000 eth
select - Selects a network interface to configure.
show - Displays information about Ethernet connections.
4.很明显,要我们选择一个网络端口,先看下有哪些端口可以选择
PS5000> member select ps5000 eth show
Name ifType ifSpeed Mtu Ipaddress Status Errors DCB
---- --------------- ---------- ---- ----------------------------- ------ ------
------
eth0 ethernet-csmacd 1 Gbps 9000 10.68.118.224 up 0
off
eth1 ethernet-csmacd 10 Mbps 1500 10.68.118.225 down 0
off
eth2 ethernet-csmacd 10 Mbps 1500 down 0
off
5.我们选择eth1这个口来配置
PS5000> member select ps5000 eth select 1
6.进入eth1的配置模式下
PS5000(member_ps5000 eth_1)>
dcb - Configure and display data center bridging features for
this interface.
description - Specifies a description for the selected network interfa
ce.
down - Disables the selected network interface.
ipaddress - Sets the IP address for the selected network interface.
ipv6address - Sets the IP address for the selected network interface.
lldp - Configure and display link layer discovery protocol para
mters on this DCB-enabled interface
mgmt-only - Enables or disables mgmt-only attribute for the selected
network interface.
netmask - Specifies a subnet mask for the selected network interfa
ce.
show - Displays information about the selected network interfac
e.
up - Enables the selected network interface.
7.从上面的参数中我们可以看到有ipaddress的选项
PS5000(member_ps5000 eth_1)> ipaddress 192.168.20.99 netmask 255.255.255.0
Changing the IP address closes all management and iSCSI connections associated w
ith this IP address. Do you really want to change? (y/n)
y
8.查看更改后的信息
PS5000(member_ps5000 eth_1)> show
_______________________________ Eth Information _______________________________
Name: eth1 Status: down
Changed: Mon Feb 17 15:06:13 2014 Type: ethernet-csmacd
DesiredStatus: down Mtu: 1500
Speed: 10 Mbps HardwareAddress: 00:09:8A:03:24:E5
IPAddress: 192.168.20.99 NetMask: 255.255.255.0
IPv6Address: Description:
SupportsManagement: no ManagementStatus: disabled
DCB: off
9.上面的信息只是更改了端口的ip地址,存储设备还有一个GROUP ip,也来更改下。我们使用grpparams这个命令,查看下原来的gropu-ip。
PS5000> grpparams
PS5000(grpparams)> show
______________________________ Group Information ______________________________
Name: PS5000 Group-Ipaddress: 192.168.20.100
Def-Snap-Reserve: 100% Def-Snap-Warn: 10%
Def-Snap-Depletion: delete-oldest Def-Thin-Growth-Warn: 60%
Def-Thin-Growth-Max: 100% DateAndTime: Mon Feb 17 15:29:41 2014
TimeZone: Asia/Chongqing Description:
10. 输入命令
PS5000(grpparams)> group-ipaddress 10.68.118.225
Changing the group-ipaddress closes all management and iSCSI connections associa
ted with this IP address. Do you really want to change? (y/n)
y
11.查看更改后的
PS5000(grpparams)> show
______________________________ Group Information ______________________________
Name: PS5000 Group-Ipaddress: 10.68.118.225
Def-Snap-Reserve: 100% Def-Snap-Warn: 10%
Def-Snap-Depletion: delete-oldest Def-Thin-Growth-Warn: 60%
Def-Thin-Growth-Max: 100% DateAndTime: Mon Feb 17 15:30:32 2014

本文出自 “淡水螃蟹” 博客,请务必保留此出处http://adamcrab.blog.51cto.com/842470/1359837
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: