I can of course telnet to the NetApp and check the number of inodes directly, but I'd like to do it from the Solaris box which feeds the NetApp with news articles. Any good suggestions?
I ran into the situation running inn on our Solaris machine, because it tries to do a df -i on the spool directory. They changed df so that it won't allow -i at all on an NFS mounted filesystem! I never tried a statvfs call directly to see if that would work... I had assumed it wouldn't work for v3 either.
I just commented out the df -i check in inn and made sure I had enough inodes on the filer. I didn't pick a *huge* value, but about double what I needed. Inodes don't take up a whole lot of space when compared to the overall filesystem, although a really big inode file can become a performance consideration. You seem to be using some other program that calls statvfs directly (i.e. a C program)... unfortunately, that won't work for v2 at all.
One possibility would be using a script to rsh to the filer from the news server and parse the df -i output...
Bruce