Query Regarding NAS Network Ports Profile
Radek Novacek
rnovacek at redhat.com
Mon Oct 7 08:01:03 UTC 2013
On Mon 07 of Oct 2013 11:28:26 sunil kumar wrote:
> Hi,
>
> We are implementing "NAS Networt Ports profile", Starting with
> ProtocolEndpoint class. i have some query according to DMTF standards NFS
> port is 4200,
Where did you find that NFS is on port 4200? Do you mean value 4200 (= NFS) of
property ProtocolIFType from CIM_ProtocolEndpoint class? That's not a port
number, it's just internal value that specify that given CIM_ProtocolEndpoint
is a NFS.
> But when i check "netstat -ntlp" command i got rpcbind is
> running on port 111, rpc.mountd runnig on port 20048 etc.
>
> tcp 0 0 0.0.0.0:875 0.0.0.0:* LISTEN 3318/rpc.rquotad
> tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 818/rpcbind
> tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 3320/rpc.mountd
>
> my question is even if i write code (LMI_ProtocolEndpoint) how it will
> detect?
>
> Do we have to set protocolIFtype 4200 to a network adapter(p7p1, eth0...) ?
>
> Do we have to implement "ProtocolIFType" property in association
> (LMI_DeviceSAPImplementation) between LMI_ProtocolEndpoint and
> LMI_NetworkPort. Or we have to simply define ProtocolIFType = 4200 in
> LMI_ProtocolEndpoint?
I think you should subclass CIM_ProtocolEndpoint and make one instance for
each NFS share on the given system. Then subclass CIM_DeviceSAPImplementation
to associate these ProtocolEndpoints to existing LMI_NetworkPorts.
The ProtocolIFType has to be always be 4200 for NFS (and 4201 for CIFS).
Radek Novacek
More information about the openlmi-devel
mailing list