Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
for C-mode,
NetInterfaceInfo q = new ...
q.setVserver(vserver.getVserverName());
LifListInvoker.getRequest().setQuery(query).invoke().getAttributesList();
For 7-mode,
how can I get the ifconfig result filtered by Vfiler?
Thanks,
$ apitestNetIfconfigGet
OUTPUT:
<results status='passed'>
<interface-config-info>
<interface-config-info>
<interface-name>e0a</interface-name>
<ipspace-name>default-ipspace</ipspace-name>
<v4-primary-address>
<ip-address-info>
<addr-family>af-inet</addr-family>
<address>192.168.200.250</address>
<netmask-or-prefix>255.255.255.0</netmask-or-prefix>
<broadcast>192.168.200.255</broadcast>
<creator>vfiler:vfiler0</creator>
</ip-address-info>
</v4-primary-address>
<mac-address>00:0c:29:73:c3:42</mac-address>
<mediatype>auto-1000t-fd-up</mediatype>
<flowcontrol>full</flowcontrol>
</interface-config-info>
<interface-config-info>
<interface-name>e0b</interface-name>
<ipspace-name>default-ipspace</ipspace-name>
<v4-primary-address>
<ip-address-info>
<addr-family>af-inet</addr-family>
<address>192.168.0.192</address>
<netmask-or-prefix>255.255.255.0</netmask-or-prefix>
<broadcast>192.168.0.255</broadcast>
<creator>vfiler:vfiler0</creator>
</ip-address-info>
</v4-primary-address>
<mac-address>00:0c:29:73:c3:4c</mac-address>
<mediatype>auto-1000t-fd-up</mediatype>
<flowcontrol>full</flowcontrol>
</interface-config-info>
<interface-config-info>
<interface-name>e0c</interface-name>
<ipspace-name>default-ipspace</ipspace-name>
<v4-primary-address>
<ip-address-info>
<addr-family>af-inet</addr-family>
<address>192.168.0.193</address>
<netmask-or-prefix>255.255.255.0</netmask-or-prefix>
<broadcast>192.168.0.255</broadcast>
<creator>vfiler:vfiler0</creator>
</ip-address-info>
</v4-primary-address>
<mac-address>00:0c:29:73:c3:56</mac-address>
<mediatype>auto-1000t-fd-up</mediatype>
<flowcontrol>full</flowcontrol>
</interface-config-info>
<interface-config-info>
<interface-name>e0d</interface-name>
<ipspace-name>default-ipspace</ipspace-name>
<v4-primary-address>
<ip-address-info>
<addr-family>af-inet</addr-family>
<address>192.168.0.194</address>
<netmask-or-prefix>255.255.255.0</netmask-or-prefix>
<broadcast>192.168.0.255</broadcast>
<creator>vfiler:vfiler0</creator>
</ip-address-info>
</v4-primary-address>
<mac-address>00:0c:29:73:c3:60</mac-address>
<mediatype>auto-1000t-fd-up</mediatype>
<flowcontrol>full</flowcontrol>
</interface-config-info>
</interface-config-info>
</results>
Liqun -
Have you looked at the vfiler-list-info api call ?
I hope this response has been helpful to you.
At your service,
Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
(P.S. I appreciate 'kudos' on any helpful posts.)
That could be a way. Thanks.
$ apitestVfilerListInfo
OUTPUT:
<results status='passed'>
<vfilers>
<vfiler-info>
<name>vfiler0</name>
<ipspace>default-ipspace</ipspace>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<vfnets>
<vfnet-info>
<ipaddress>192.168.0.192</ipaddress>
<netmask>255.255.255.0</netmask>
<interface>e0b</interface>
</vfnet-info>
<vfnet-info>
<ipaddress>192.168.0.193</ipaddress>
<netmask>255.255.255.0</netmask>
<interface>e0c</interface>
</vfnet-info>
<vfnet-info>
<ipaddress>192.168.0.194</ipaddress>
<netmask>255.255.255.0</netmask>
<interface>e0d</interface>
</vfnet-info>
<vfnet-info>
<ipaddress>192.168.200.250</ipaddress>
<netmask>255.255.255.0</netmask>
<interface>e0a</interface>
</vfnet-info>
</vfnets>
<admin-host/>
<vfstores>
<vfstore-info>
<path>/</path>
<status>online</status>
<is-etc>true</is-etc>
</vfstore-info>
</vfstores>
</vfiler-info>
</vfilers>
</results>