Contidos dentro
Localizar Mais Documentação
Destaques de Recursos de Suporte
| Fazer download desta apostila em PDF
Removing Software
B
- This appendix provides the procedure for removing the product software from a local machine. If you have mounted the product via NFS, follow this same procedure, however, you will need access to the NFS server to remove some of the files.
-
Note - Procedures presented here involve rm commands that, if used incorrectly, can delete files you want to keep. For this reason, these procedures should be undertaken only by experienced technical personnel.
- You might remove the product software if you need to free up some disk space on a particular system, or if you want to reinstall SunNet Manager.
- To remove the product software:
-
-
Enter su and the password to become root.
-
Change directories to the parent directory of the directory where you installed SunNet Manager. For example, if you installed the product in the default location, /usr/snm, cd to /usr.
-
Caution - The rm command specified in the following step recursively deletes all files and directories from the directory specified down to the bottom of the directory hierarchy. It is a very powerful, and therefore potentially destructive, command. If you are not sure about the effect of the command, obtain the help of someone more experienced with SunOS than you are before invoking it.
-
-
Invoke pwd to ensure you know where you are in the directory hierarchy. Invoke the following command to remove the files:
-
-
-
Change directories to the parent directory of the directory where you installed log files. For example, if you installed the log files in the default location, /var/adm/snm, cd to /var/adm.
-
Exercising the same caution you used in Step 3, invoke the following command to remove the files:
-
-
-
If you installed the SNMP daemon, remove the daemon and the daemon's start/stop script as follows:
-
hostname# /etc/init.snmpd stop
hostname# rm /usr/etc/snmpd
hostname# rm /etc/init.snmpd
|
-
-
At this point you can selectively kill the processes associated with various agents and daemons. An easier way to do this is to reboot your system. If you prefer not to reboot, use a command like the following to search for SNM-related processes:
-
hostname# ps ax | egrep " *na\." | grep -v grep
|
- Note there are two spaces preceding the asterisk in the command line above. If you want to selectively kill processes, use grep on ps output to search for the snmpd process, in addition to the processes you uncover with the command line above.
-
-
If you have removed the product software from every system on your network, and you are running NIS/NIS+, edit the /etc/rpc and /etc/services files on the master NIS/NIS+ server and make the changes effective, as follows:
-
a. Edit the /etc/rpc file to remove the section "SunNet Manager agents."
-
b. Edit the /etc/services file to remove the following lines:
-
snmp 161/udp # Simple Network Mgmt Protocol
snmp-trap 162/udp snmptrap # SNMP trap (event) messages
|
-
c. If you are running NIS, update the maps using the ypmake command, then push the maps out to the slave NIS servers using the yppush command.
-
d. If you are running NIS+, use the nisaddent command.
-
Note - Refer to your system administration documentation if you need additional information on these commands.
- You have removed the the product software from your system.
|
|