Novell Home

Identifying iFolder Connections

Novell Cool Solutions: Trench
By Bryan Keadle

Digg This - Slashdot This

Posted: 5 May 2005
 

We were wanting a way to identify our active iFolder connections. The iFolder Administration console shows us the number of connections, but not where those connections are coming from. We wanted a way to identify the DNS or IP address of the active connections.

We noted we could get this information from TCPCON at the server, but that's quite a page to scroll through to find the :8080 connection (which in our config are the iFolder clients). Additionally, there are multiple connections for each host. Ultimately, not a clean and easy view of our current iFolder connections.

Knowing that this information can be retrieved via an SNMP request, we installed a utility, SNMPWalk by Net-SNMP, that allows us to run a command-line SNMP query to retrieve information. From this output, we created a batch file to parse this information (see below). The result, we simply run iFolderConnections from a command prompt, and we get this output:

C:\>x:\ifolderconnections.cmd
 
 Current iFolder Connections:
 ============================
 
 Name:    ppp-08-154.starnetwx.net
 Address:  66.19.61.154
 
 
 Name:    c-67-173-78.client.comcast.net
 Address:  67.173.74.124
 
 
 Name:    bkeadle-is876.domain.com
 Address:  172.16.0.100
 
 
 Name:    BKEADLE-IS321.domain.com
 Address:  172.16.0.101
 
 
 Name:    ccdrives.domain.com
 Address:  172.16.0.119
 
 Name:    wx-vill-pal-01.starnetusa.net
 Address:  216.126.134.2

Now, ain't that cOOl?! Perhaps there is another, better way to see this information? We would like to be able to see the connections' iFolder username as well. Does anyone have any other cOOl ideas or suggestions? If so, please let me know: bkeadle@TAKETHISOUTkeadle.net

=== iFolderConnections.cmd ===
@echo off
set DNS=172.16.0.20
set iFolderServer=172.16.0.29
echo.
echo Current iFolder Connections:
echo ============================
snmpwalk -v 1 -c public %iFolderServer% iso.3.6.1.2.1.6.13.1.1 | find /I "%iFolderServer%.8080" >%temp%\~ifolder.tmp
if EXIST %temp%\ifc.* del %temp%\ifc.*
for /F "tokens=7-10 delims=. " %%a in (%temp%\~ifolder.tmp) do (
if NOT EXIST %temp%\ifc.%%a.%%b.%%c.%%d nslookup %%a.%%b.%%c.%%d|find /v "Server:"|find /v "%DNS%"
if errorlevel 1 echo Address: %%a.%%b.%%c.%%d
echo %%a.%%b.%%c.%%d>%Temp%\ifc.%%a.%%b.%%c.%%d
)
del %temp%\ifc.*
echo.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell