Top
Systemwalker Runbook Automation Installation Guide
Systemwalker

3.4.1 Installing SNMP Agents

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

Setting up the SNMP service

Installing SNMP Agents

This section describes how to install SNMP Agents (examples).

[Windows]

[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:

  1. Double-click the Add or Remove Programs icon in the Control Panel.

  2. In the Add or Remove Programs dialog box, click Add/Remove Windows Components to display the Windows Component Wizard.

  3. Select the Management and Monitoring Tools component from the Components list in the Windows Component Wizard, and then click the Details button.

  4. Select Simple Network Management Protocol in the Management and Monitoring Tools dialog box, and then click the OK button.

  5. Click the Next button in the Add or Remove Programs dialog box and then install according to the window directive.

For Windows Server 2008:

  1. Click Start >> Control Panel >> Programs and Features.

  2. Select Turn Windows features on or off. From the Server Manager window, select Features >> Add Features to display Add Features Wizard.

  3. From the Add Features Wizard list, select SNMP Services from the SNMP Services tree and click the Next button.

  4. 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:

  1. Select Programs and Features from the Control Panel.

  2. Select Turn Windows features on or off. The Add Roles and Features Wizard window will be displayed. Click Next.

  3. Select SNMP Service from the list of features on the Select Features window. Click the Add Features button followed by the Next button.

  4. Click Install on the Confirm Installation Selections window to begin the installation.

[Linux]

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
com2sec notConfigUser default public

# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

# Make at least snmpwalk -v 1 localhost -c public system fast again.

# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1

# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact systemview none none

[After]

# sec.name source community
#com2sec notConfigUser default public
com2sec systemwalker default public

# groupName securityModel securityName
#group notConfigGroup v1 notConfigUser
#group notConfigGroup v2c notConfigUser
group RWGroup v1 systemwalker
group RWGroup v2c systemwalker
group RWGroup usm systemwalker

# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
#view systemview included .1.3.6.1.2.1.1
#view systemview included .1.3.6.1.2.1.25.1.1
view all included .1 80

# group context sec.model sec.level prefix read write notif
#access notConfigGroup "" any noauth exact systemview none none
access RWGroup "" any noauth exact all none none

Restart the SNMP Agent after editing the configuration file.

# /etc/init.d/snmpd stop

# /etc/init.d/snmpd start

[Solaris]

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.

[Windows]

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.

[Linux]

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

[Solaris]

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