E.1 Installing SNMP Agent on IBM RISC System/6000 SP2 (RS/6000 SP2)
This subsection explains how to install SNMP Agent onto an IBM RISC System/6000 SP2 (RS/6000 SP2) system.
The following shows the tasks necessary to install SNMP Agent.
- Installing on a control workstation
-
Use Hitachi Program Product Installer to install SNMP Agent on the control workstation.
- Distributing a copy to each node
-
For details about how to distribute a copy to each node, see E.1(1) Distributing a copy to each node.
- Installing on each node
-
For details about how to install SNMP Agent on each node, see E.1(2) Installing on each node.
- Organization of this subsection
(1) Distributing a copy to each node
The following procedure shows how to distribute the files installed on the control workstation to each node.
Procedure
-
Archive the files.
Archive the following files that are installed on the control workstation (archive-file 1.ar). Use the tar command to archive the files.
-
All files under /usr/OV/newconfig/EAGENT-RUN
-
All files under /usr/OV/prg_samples/eagent
-
All files under /usr/OV/snmp_mibs/eagent
-
All files under /usr/CM2/ESA
Example:
Create an archive file named /tmp/esa1.
# tar cvf /tmp/esa1.ar /usr/OV/newconfig/EAGENT-RUN /usr/OV/prg_samples/eagent /usr/OV/snmp_mibs/eagent /usr/CM2/ESA
Similarly, use the tar command to archive the following files (archive-file2.ar).
-
/etc/.hitachi/before/before_112B
-
/etc/.hitachi/after/after_112B
-
/etc/.hitachi/remove/remove_112B
Example:
Create an archive file named /tmp/esa2.
# tar cvf /tmp/esa2.ar /etc/.hitachi/before/before_112B /etc/.hitachi/after/after_112B /etc/.hitachi/remove/remove_112B
-
-
Distribute a copy of the archive files to each node.
Distribute copies of the archive files you created in step 1 to each node. Use the rcp command to distribute the copies.
Example:
Distribute the archive files to the node named host1.
# rcp /tmp/esa1.ar host1:/tmp/esa1.ar # rcp /tmp/esa2.ar host1:/tmp/esa2.ar
-
Delete the archive files.
Delete the control workstation archive files you created in step 1. Use the rm command to delete the archive files.
Example:
# rm /tmp/esa1.ar # rm /tmp/esa2.ar
(2) Installing on each node
The following procedure shows how to install SNMP Agent on each node.
Procedure
-
Log in.
Log in to the nodes as a superuser. If you are logged in to a node without superuser permissions, use the su command to switch the login user to one that has superuser permissions.
-
Restore archive-file2.ar.
Restore the copy of archive-file2.ar that was distributed to each node.
Example:
# tar xvf /tmp/esa2.ar
-
Execute the installation shell.
At each node, execute /etc/.hitachi/before/before_112B as a superuser.
Example:
# /etc/.hitachi/before/before_112B
The installation results are output to /tmp/esa.log.
-
Restore archive-file1.ar.
Restore the copy of archive-file1.ar that was distributed to each node.
Example:
# tar xvf /tmp/esa1.ar
-
Create directories.
Create the following directories at each node:
-
/usr/OV/bin
-
/usr/OV/conf
-
/etc/srconf/agt
-
/etc/SnmpAgent.d
-
-
Execute the installation shell.
At each node, execute /etc/.hitachi/after/after_112B as a superuser.
Example:
# /etc/.hitachi/after/after_112B
The installation results are output to /tmp/esa.log.
-
Check the operation.
Make sure that SNMP Agent is operating at each node.
Example:
# /usr/CM2/ESA/bin/snmpcheck
Make sure that the execution results of the /usr/CM2/ESA/bin/snmpcheck command display running for snmpdm, hp_unixagt, trapdestagt, and htc_unixagt1.
-
Delete the archive files.
Delete the archive files that were distributed to each node.
Example:
# rm /tmp/esa1.ar # rm /tmp/esa2.ar