Top
PRIMECLUSTER  Installation and Administration Guide4.3

8.13 Changing Port Numbers for SNMP

This section describes the procedures to change port numbers for SNMP.

Procedure for Solaris 11

  1. Execute the following command on one of the cluster nodes to stop RMS operation:

    # /opt/SMAW/bin/hvshut -a
  2. Execute the following command on each cluster node to stop the shutdown facility:

    # /opt/SMAW/bin/sdtool -e
  3. On each cluster node, change the port number of the OS's SNMP trap receiving daemon (snmptrapd).

    1. When changing the port number

      Create /etc/net-snmp/snmp/snmptrapd.conf on each cluster node to set the changed port number as follows:

      snmpTrapdAddr udp:<Changed port number>
    2. When setting back the changed port number to the default 162

      Delete the following setting in /etc/net-snmp/snmp/snmptrapd.conf on each cluster node:

      snmpTrapdAddr udp:<Changed port number>
  4. Change the port number of the SNMP agent in XSCF on each cluster node.

    Skip this step if the Systemwalker trap forwarding program is used.

    1. When changing the port number

      Execute the following commands in XSCF on each node to set the changed port number:

      XSCF> setsnmp remtraphost -t v2 [IP address of the administrative LAN]
      XSCF> setsnmp remtraphost -t v2 [IP address of the asynchronous monitoring sub-LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev -p <Changed port number> [IP address of the administrative LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev -p <Changed port number> [IP address of the asynchronous monitoring sub-LAN]
    2. When setting back the changed port number to the default 162

      XSCF> setsnmp remtraphost -t v2 [IP address of the administrative LAN]
      XSCF> setsnmp remtraphost -t v2 [IP address of the asynchronous monitoring sub-LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev [[IP address of the administrative LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev [IP address of the asynchronous monitoring sub-LAN]
  5. Execute the following command on each node to restart the system:

    # /usr/sbin/shutdown -y -i6 -g0

Procedure for Solaris 10

  1. Execute the following command on one of the cluster nodes to stop RMS operation:

    # /opt/SMAW/bin/hvshut -a
  2. Execute the following command on each cluster node to stop the shutdown facility:

    # /opt/SMAW/bin/sdtool -e
  3. On each cluster node, change the port number of the OS's SNMP trap receiving daemon (snmptrapd).

    1. When changing the port number

      Under /etc/rc2.d on each cluster node, create the script to start the SNMP trap receiving daemon (snmptrapd) on OS. Set as follows so that the daemon can be started with the changed port number:

      /usr/sfw/sbin/snmptrapd udp:<Changed port number>

      Example: When creating /etc/rc2.d/S99snmptrapd to start the OS's SNMP trap receiving daemon (snmptrapd) which the port number was changed to 12345:

      #!/sbin/sh
      /usr/sfw/sbin/snmptrapd udp:12345
    2. When setting back the changed port number to the default 162

      Delete the start script that is registered under /etc/rc2.d on each cluster node.

  4. Change the port number of the SNMP agent in XSCF on each cluster node.

    Skip this step if the Systemwalker trap forwarding program is used.

    1. When changing the port number

      Execute the following commands in XSCF on each node to set the changed port number:

      XSCF> setsnmp remtraphost -t v2 [IP address of the administrative LAN]
      XSCF> setsnmp remtraphost -t v2 [IP address of the asynchronous monitoring sub-LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev -p <Changed port number> [IP address of the administrative LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev -p <Changed port number> [IP address of the asynchronous monitoring sub-LAN]
    2. When setting back the changed port number to the default 162

      XSCF> setsnmp remtraphost -t v2 [IP address of the administrative LAN]
      XSCF> setsnmp remtraphost -t v2 [IP address of the asynchronous monitoring sub-LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev [[IP address of the administrative LAN]
      XSCF> setsnmp addtraphost -t v2 -s FJSVcldev [IP address of the asynchronous monitoring sub-LAN]
  5. Execute the following command on each cluster node to restart the system:

    # /usr/sbin/shutdown -y -i6 -g0