An SNMP Agent must be installed beforehand.
Point
The difference between an SNMP Agent being installed or not on the target server is as follows:
If an SNMP Agent is installed:
When nodes are detected, MIB information can be collected, in addition to the IP address and host name.
The vendor name and operating system type will be added to configuration information, allowing inventory information to be collected.
If an SNMP Agent is not installed:
Only the IP address and host name will be added to the CMDB.
Inventory information will not be collected.
This section describes how to install SNMP Agents.
For information on how to install and set up SNMP Agents for operating systems and network devices not listed in the descriptions (examples) below, refer to the manual for the operating system or network device in question.
Follow the steps below to install SNMP Agents.
Installing SNMP Agents
This section describes how to install SNMP Agents (examples).
[Windows(R) 2003]
[Windows(R) 2008]
[Windows Server 2012]
For Windows Server 2003:
To install an SNMP Agent on a computer where Windows(R) 2000 is already running, follow the steps below:
Double-click the Add or Remove Programs icon in the Control Panel.
In the Add or Remove Programs dialog box, click Add/Remove Windows Components to display the Windows Component Wizard.
Select the Management and Monitoring Tools component from the Components list in the Windows Component Wizard, and then click the Details button.
Select Simple Network Management Protocol in the Management and Monitoring Tools dialog box, and then click the OK button.
Click the Next button in the Add or Remove Programs dialog box and then install according to the window directive.
For Windows Server 2008:
Click Start >> Control Panel >> Programs and Features.
Select Turn Windows features on or off. From the Server Manager window, select Features >> Add Features to display Add Features Wizard.
From the Add Features Wizard list, select SNMP Services from the SNMP Services tree and click the Next button.
In Confirm Installation Selections, click the Install button, and then, insert the Windows operating system CD-ROM to start the installation.
For Windows Server 2012:
Select Programs and Features from the Control Panel.
Select Turn Windows features on or off. The Add Roles and Features Wizard window will be displayed. Click Next.
Select SNMP Service from the list of features on the Select Features window. Click the Add Features button followed by the Next button.
Click Install on the Confirm Installation Selections window to begin the installation.
Note
For systems where an update release has been applied, the update release must be reapplied after the SNMP service is installed.
To install an SNMP Agent, install the following rpm package.
net-snmp (or ucd-snmp)
Information
Relevant commands
When installing the rpm package, use the "-i" option with the rpm command.
To remove the rpm package, use the "-e" option with the rpm command.
To check whether the rpm package has been installed, use the "-q" option with the rpm command.
[Configuration file]
/etc/snmp/snmpd.conf |
The following is an example of how to edit the SNMP Agent configuration file.
Refer to the man command for details.
[Before]
# sec.name source community # groupName securityModel securityName # Make at least snmpwalk -v 1 localhost -c public system fast again. # name incl/excl subtree mask(optional) # group context sec.model sec.level prefix read write notif |
[After]
# sec.name source community # groupName securityModel securityName # Make at least snmpwalk -v 1 localhost -c public system fast again. # group context sec.model sec.level prefix read write notif |
Restart the SNMP Agent after editing the configuration file.
# /etc/init.d/snmpd stop # /etc/init.d/snmpd start |
Install the following packages when installing the SNMP agent:
Solaris10
SUNWsmmgr
SUNWsmagt
SUNWsmcmd
Point
Please note the following about the commands used:
The pkgadd command is used to install packages.
The pkgrm command is used to remove packages.
The pkginfo command is used to display information about installed packages.
It is possible for the SNMP service to run using the post-installation settings. If necessary, refer to the SNMP service settings and the operating system manual first, before reconfiguring the settings.
Solaris11
system/management/snmp/net-snmp
Point
Please note the following about the commands used:
The pkg install command is used to install packages.
The pkg uninstall command is used to remove packages.
The pkg search command is used to display information about installed packages.
It is possible for the SNMP service to run using the post-installation settings. If necessary, refer to the SNMP service settings and the operating system manual first, before reconfiguring the settings.
Setting up the SNMP service
In order to automatically collect server configuration information, specify the community names matching the values set in the SNMP service in the IT resource information collection definition file.
Specify "public" as the SNMP community name - if another value is specified, the information that can be collected as part of IT resource information collection will be reduced.
Start SNMP Service Property dialogue box from Service window where installed agent compiler, and set the term after Security tab.
Community name setting
Set a community name that the SNMP Agent accepts.
The following characters cannot be used for community names: spaces and the symbols below:
!*"+=#>
The following character pairs: "\^" and "\-"
Setting of host that allows access
To automatically collect inventory information for the server, specify the same community name specified for the SNMP service.
Community name setting
To set the community name, edit the following file:
[Configuration file]
/etc/snmp/snmpd.conf |
Refer to the man command for details.
[Settings item]
Com2sec systemwalker default public |
Setting of host that allows access
The explanation that follows assumes that the IP address of the host that allows SNMP packets to be received is "*.*.*.*".
Use this as the setting that allows SNMP packets from the Management Server or Linked Server/Relay Server.
In the default setting, SNMP packets are allowed.
[Configuration file]
/etc/snmp/snmpd.conf |
Refer to the man command for details.
[Before]
Com2sec systemwalker default public |
[After]
Com2sec systemwalker *.*.*.* public |
After editing the configuration file, restart the SNMP agent.
# /etc/init.d/snmpd stop # /etc/init.d/snmpd start |
Community name setting
To set the community name, edit the files shown below.
Normally, "public" is already set as the community name, therefore there is no need to edit the file.
Solaris10
[Configuration file]
/etc/sma/snmp/snmpd.conf |
Refer to the man command for details.
[Settings item]
rocommunity public |
Solaris11
[Configuration file]
/etc/net-snmp/snmp/snmpd.conf |
Refer to the man command for details.
[Settings item]
rocommunity public |
Setting of host that allows access
The explanation that follows assumes that the IP address of the host that allows SNMP packets to be received is "*.*.*.*".
Use this as the setting that allows SNMP packets from the Management Server or Linked Server/Relay Server.
In the default setting, SNMP packets are allowed.
Solaris10
[Configuration file]
/etc/sma/snmp/snmpd.conf |
Refer to the man command for details.
[Before]
rocommunity public |
[After]
rocommunity public *.*.*.* |
After editing the configuration file, restart the SNMP agent.
# svcadm restart svc:/application/management/sma:default |
Solaris11
[Configuration file]
/etc/net-snmp/snmp/snmpd.conf |
Refer to the man command for details.
[Before]
rocommunity public |
[After]
rocommunity public *.*.*.* |
After editing the configuration file, restart the SNMP agent.
# svcadm -v restart net-snmp |