Tuesday, March 8, 2016

Working with BMC and vif on FAS2020

Working with BMC and vif on FAS2020

We had a situation with FAS2020 where we had to connect two interface e0a/e0b  has to be assigned two separate IP but when NetAPP engineer commissioned FAS2020 ,they created vif and assigned both the physical interface e0a and e0b to it.
This is how back panel of FAS2020 looks like

The circled one is basically for BMC which is similar to ILO
FAS2020 have two Ethernet interface  .
So I had a challenge to  delete vif for FAS2020. It’s like virtual interface binded to two physical NIC and filer view can be accessed using vif . So we cannot make changes to vif using filer view . This needs to be accomplish either using serial interface  or BMC(Similar to  ILO which provide console access)
Couple of facts about BMC which I learned (remember I am learning NetAPP)
1. BMC has IP address and you need to do SSH to the IP not telnet.
2. For user ID you need to use “naroot” and password will be that of root.
3. Once you login to BMC console then you can login to system console using root and then root password
This is how to execute the command
login as: naroot
naroot@xx.0.86's password:
=== OEMCLP v1.0.0 BMC v1.2 ===
bmc shell ->
bmc shell ->
bmc shell -> system console
Press ^G to enter BMC command shell
Data ONTAP (xxxfas001.xxx.net)
login: root
Password:
xxxfas001> Fri Oct 9 11:08:06 EST [console_login_mgr:info]: root logged in from console
xxxfas001> ifconfig /all
ifconfig: /all: no such interface
xxxfas001> ifconfig
usage: ifconfig [ -a | [ <interface>
[ [ alias | -alias ] [no_ddns] <address> ] [ up | down ]
[ netmask <mask> ] [ broadcast <address> ]
[ mtusize <size> ]
[ mediatype { tp | tp-fd | 100tx | 100tx-fd | 1000fx | 10g-sr | auto } ]
[ flowcontrol { none | receive | send | full } ]
[ trusted | untrusted ]
[ wins | -wins ]
[ [ partner { <address> | <interface> } ] | [ -partner ] ]
[ nfo | -nfo ] ]
xxxfas001> ifconfig -a
e0a: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
ether 02:a0:98:11:64:24 (auto-1000t-fd-up) flowcontrol full
trunked svif01
e0b: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
ether 02:a0:98:11:64:24 (auto-1000t-fd-up) flowcontrol full
trunked svif01
lo: flags=1948049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 9188
inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
svif01: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
inet xx.xxx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.255
ether 02:a0:98:11:64:24 (Enabled virtual interface)
xxxfas001> ifconfig svif01 down
xxxfas001> Fri Oct 9 11:10:23 EST [pvif.vifConfigDown:info]: svif01: Configured down
Fri Oct 9 11:10:23 EST [netif.linkInfo:info]: Ethernet e0b: Link configured down.
Fri Oct 9 11:10:23 EST [netif.linkInfo:info]: Ethernet e0a: Link configured down.
xxxfas001> Fri Oct 9 11:10:37 EST [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.
xxxfas001> vif destory svif01
vif: Did not recognize option "destory".
Usage:
vif create [single|multi|lacp] <vif_name> -b [rr|mac|ip] [<interface_list>]
vif add <vif_name> <interface_list>
vif delete <vif_name> <interface_name>
vif destroy <vif_name>
vif {favor|nofavor} <interface>
vif status [<vif_name>]
vif stat <vif_name> [interval]
xxxfas001> vif desto4~3~ry svif01
xxxfas001> vif destroy svif01
xxxfas001> if config -a
if not found. Type '?' for a list of commands
xxxfas001> ifconfig -a
e0a: flags=108042<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
ether 00:a0:98:11:64:24 (auto-1000t-fd-cfg_down) flowcontrol full
e0b: flags=108042<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
ether 00:a0:98:11:64:25 (auto-1000t-fd-cfg_down) flowcontrol full
lo: flags=1948049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 9188
inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
xxxfas001> ifconfig
usage: ifconfig [ -a | [ <interface>
[ [ alias | -alias ] [no_ddns] <address> ] [ up | down ]
[ netmask <mask> ] [ broadcast <address> ]
[ mtusize <size> ]
[ mediatype { tp | tp-fd | 100tx | 100tx-fd | 1000fx | 10g-sr | auto } ]
[ flowcontrol { none | receive | send | full } ]
[ trusted | untrusted ]
[ wins | -wins ]
[ [ partner { <address> | <interface> } ] | [ -partner ] ]
[ nfo | -nfo ] ]
xxxfas001> ifconfig e0a xx.xx.xx netmask 255.255.255.0
xxxfas001> Fri Oct 9 11:17:24 EST [netif.linkUp:info]: Ethernet e0a: Link up.
xxxfas001> ifconfig e0a xx.xx.xx.xx netmask 255.255.25Fri Oct 9 11:17:50 EST [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.
5.0
xxxfas001> ifconfig e0a xx.xx.xx.xx netmask 255.255.2
xxxfas001> ifconfig -a
e0a: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
inet xx.xx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.255
ether 00:a0:98:11:64:24 (auto-1000t-fd-up) flowcontrol full
e0b: flags=108042<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 1500
ether 00:a0:98:11:64:25 (auto-1000t-fd-cfg_down) flowcontrol full
lo: flags=1948049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 9188
inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
xxxfas001> Fri Oct 9 11:20:03 EST [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.
Fri Oct 9 11:21:16 EST [netif.linkInfo:info]: Ethernet e0b: Link configured down.
Fri Oct 9 11:21:29 EST [netif.linkUp:info]: Ethernet e0b: Link up.
Here you can find after changes how the ISCSI connection has been established.
Fri Oct 9 11:21:38 EST [iscsi.notice:notice]: ISCSI: New session from initiator iqn.2000-04.com.qlogic:qle4062c.lfc0908h84979.2 at IP addr 192.168.0.2
Fri Oct 9 11:21:38 EST [iscsi.notice:notice]: ISCSI: New session from initiator iqn.2000-04.com.qlogic:qle4062c.lfc0908h84979.2 at IP addr 192.168.0.2
Fri Oct 9 11:22:16 EST [nbt.nbns.registrationComplete:info]: NBT: All CIFS name registrations have completed for the local server.

No comments:

Post a Comment