[snmp] Port number change

Yun Freund yun at trapezenetworks.com
Fri May 4 16:23:40 BST 2007


The only way we get the port to be changed is to restart the JVM. But
this is not desirable. Please help if you have any suggestions or if our
implementation is not correct.
Yun

-----Original Message-----
From: snmp-bounces at snmp.westhawk.co.uk
[mailto:snmp-bounces at snmp.westhawk.co.uk] On Behalf Of Yun Freund
Sent: Friday, May 04, 2007 11:20 AM
To: snmp at snmp.westhawk.co.uk
Subject: [snmp] Port number change

Hi, all, I would like to ask the following question:

 

We are trying to implement the SNMP port number change once our server
JVM is started.

                    SnmpContextPool contextPool = new
SnmpContextPool(_host, 162);

.......

 

At some point at run time the user would like to change the SNMP Port
number. We called

 

contextPool.destroy();

 

and then reinitialize the SNMPContextPool with a new port 

 

                    contextPool = new SnmpContextPool(_host, 163);

 

Is this the right way to change the port number? But it looks like when
using netstat -a -n the server seems to be still running on the old
port. 

 

Any suggestion or help would be greatly appreciated. We are using
WestHawk version 4.13.

 

Yun

_______________________________________________
snmp mailing list
snmp at snmp.westhawk.co.uk
http://snmp.westhawk.co.uk/mailman/listinfo/snmp





More information about the snmp mailing list