konfigur dan instal snmp
August 24, 2008 at 1:04 am Leave a comment
Install / configure SNMP solaris 10
Check package SNMP
Pkginfo –l SUNWsmagt
Bila tidak ada, lakukan install!!!
pkgadd –d {dependencies}
pkgadd –d {package SNMP Solaris}
Install create snmp file
./snmpconf –i pada directory /usr/sfw/bin
Lakukan Konfigurasi
Select the file type you wish to create:
(you can create more than one as
you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
Other options: quit
Select File: 1
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Monitor Various Aspects of the Running Host
4: Agent Operating Mode
5: System Information Setup
6: Trap Destinations
Other options: finished
Select section: 1
Section: Access Control Setup
Description:
This section defines who is allowed to talk to your running
snmp agent.
Select from:
1: a SNMPv3 read-write user
2: a SNMPv3 read-only user
3: a SNMPv1/SNMPv2c read-only access community name
4: a SNMPv1/SNMPv2c read-write access community name
Other options: finished, list
Select section: 3
Configuring: rocommunity
Description:
a SNMPv1/SNMPv2c read-only access community name
arguments: community [default|hostname|network/bits] [oid]
The community name to add read-only access for: visxl
The hostname or network address to accept this community name from [RETURN for all]:
The OID that this community should be restricted to [RETURN for no-restriction]:
Finished Output: rocommunity visxl
Section: Access Control Setup
Description:
This section defines who is allowed to talk to your running
snmp agent.
Select from:
1: a SNMPv3 read-write user
2: a SNMPv3 read-only user
3: a SNMPv1/SNMPv2c read-only access community name
4: a SNMPv1/SNMPv2c read-write access community name
Other options: finished, list
Select section: finished
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Monitor Various Aspects of the Running Host
4: Agent Operating Mode
5: System Information Setup
6: Trap Destinations
Other options: finished
Select section: 3
Section: Monitor Various Aspects of the Running Host
Description:
The following check up on various aspects of a host.
Select from:
1: Check for processes that should be running.
2: Check for disk space usage of a partition.
3: Check for unreasonable load average values.
4: Check on the size of a file.
Other options: finished, list
Select section: 3
Configuring: load
Description:
Check for unreasonable load average values.
Watch the load average levels on the machine.
load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
1MAX: If the 1 minute load average is above this limit at query
time, the errorFlag will be set.
5MAX: Similar, but for 5 min average.
15MAX: Similar, but for 15 min average.
The results are reported in the laTable section of the UCD-SNMP-MIB tree
Enter the maximum allowable value for the 1 minute load average: 12
Enter the maximum allowable value for the 5 minute load average: 12
Enter the maximum allowable value for the 15 minute load average: 12
Finished Output: load 12 12 12
Section: Monitor Various Aspects of the Running Host
Description:
The following check up on various aspects of a host.
Select from:
1: Check for processes that should be running.
2: Check for disk space usage of a partition.
3: Check for unreasonable load average values.
4: Check on the size of a file.
Other options: finished, list
Select section: finished
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Monitor Various Aspects of the Running Host
4: Agent Operating Mode
5: System Information Setup
6: Trap Destinations
Other options: finished
Select section: 4
Section: Agent Operating Mode
Description:
This section defines how the agent will operate when it
is running.
Select from:
1: Should the agent operate as a master agent or not.
2: The system user that the agent runs as.
3: The system group that the agent runs as.
4: The IP address and port number that the agent will listen on.
Other options: finished, list
Select section: 4
Configuring: agentaddress
Description:
The IP address and port number that the agent will listen on.
By default the agent listens to any and all traffic from any
interface on the default SNMP port (161). This allows you to
specify which address, interface, transport type and port(s) that you
want the agent to listen on. Multiple definitions of this token
are concatenated together (using ‘:’s).
arguments: [transport:]port[@interface/address],…
Enter the port numbers, etc that you want the agent to listen to: 33161
Finished Output: agentaddress 33161
Section: Agent Operating Mode
Description:
This section defines how the agent will operate when it
is running.
Select from:
1: Should the agent operate as a master agent or not.
2: The system user that the agent runs as.
3: The system group that the agent runs as.
4: The IP address and port number that the agent will listen on.
Other options: finished, list
Select section: finished
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Monitor Various Aspects of the Running Host
4: Agent Operating Mode
5: System Information Setup
6: Trap Destinations
Other options: finished
Select section: 5
Section: System Information Setup
Description:
This section defines some of the information reported in
the “system” mib group in the mibII tree.
Select from:
1: The [typically physical] location of the system.
2: The contact information for the administrator
3: The proper value for the sysServices object.
Other options: finished, list
Select section: 1
Configuring: syslocation
Description:
The [typically physical] location of the system.
Note that setting this value here means that when trying to
perform an snmp SET operation to the sysLocation.0 variable will make
the agent return the “notWritable” error code. IE, including
this token in the snmpd.conf file will disable write access to
the variable.
arguments: location_string
The location of the system: jakarta
Finished Output: syslocation jakarta
Section: System Information Setup
Description:
This section defines some of the information reported in
the “system” mib group in the mibII tree.
Select from:
1: The [typically physical] location of the system.
2: The contact information for the administrator
3: The proper value for the sysServices object.
Other options: finished, list
Select section: finished
The configuration information which can be put into snmpd.conf is divided
into sections. Select a configuration section for snmpd.conf
that you wish to create:
1: Access Control Setup
2: Extending the Agent
3: Monitor Various Aspects of the Running Host
4: Agent Operating Mode
5: System Information Setup
6: Trap Destinations
Other options: finished
Select section: finished
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
Other options: quit
Select File: 3
The configuration information which can be put into snmp.conf is divided
into sections. Select a configuration section for snmp.conf
that you wish to create:
1: Default Authentication Options
2: Debugging output options
3: Textual mib parsing
4: Output style options
Other options: finished
Select section: 1
Section: Default Authentication Options
Description:
This section defines the default authentication
information. Setting these up properly in your
~/.snmp/snmp.conf file will greatly reduce the amount of
command line arguments you need to type (especially for snmpv3).
Select from:
1: The default port number to use
2: The default snmp version number to use.
3: The default snmpv1 and snmpv2c community name to use when needed.
4: The default snmpv3 security name to use when using snmpv3
5: The default snmpv3 context name to use
6: The default snmpv3 security level to use
7: The default snmpv3 authentication type name to use
8: The default snmpv3 authentication pass phrase to use
9: The default snmpv3 privacy (encryption) type name to use
10: The default snmpv3 privacy pass phrase to use
Other options: finished, list
Select section: 1
Configuring: defaultport
Description:
The default port number to use
This token specifies the default port number you want packets to
be sent to and received from.
override: with -p on the command line.
arguments: portnum
Enter the default port number to use: 33161
Finished Output: defaultport 33161
Section: Default Authentication Options
Description:
This section defines the default authentication
information. Setting these up properly in your
~/.snmp/snmp.conf file will greatly reduce the amount of
command line arguments you need to type (especially for snmpv3).
Select from:
1: The default port number to use
2: The default snmp version number to use.
3: The default snmpv1 and snmpv2c community name to use when needed.
4: The default snmpv3 security name to use when using snmpv3
5: The default snmpv3 context name to use
6: The default snmpv3 security level to use
7: The default snmpv3 authentication type name to use
8: The default snmpv3 authentication pass phrase to use
9: The default snmpv3 privacy (encryption) type name to use
10: The default snmpv3 privacy pass phrase to use
Other options: finished, list
Select section: 2
Configuring: defversion
Description:
The default snmp version number to use.
override: with -v on the command line.
arguments: 1|2c|3
Enter the default snmp version number to use (1|2c|3): 1
Finished Output: defversion 1
Section: Default Authentication Options
Description:
This section defines the default authentication
information. Setting these up properly in your
~/.snmp/snmp.conf file will greatly reduce the amount of
command line arguments you need to type (especially for snmpv3).
Select from:
1: The default port number to use
2: The default snmp version number to use.
3: The default snmpv1 and snmpv2c community name to use when needed.
4: The default snmpv3 security name to use when using snmpv3
5: The default snmpv3 context name to use
6: The default snmpv3 security level to use
7: The default snmpv3 authentication type name to use
8: The default snmpv3 authentication pass phrase to use
9: The default snmpv3 privacy (encryption) type name to use
10: The default snmpv3 privacy pass phrase to use
Other options: finished, list
Select section: 3
Configuring: defcommunity
Description:
The default snmpv1 and snmpv2c community name to use when needed.
If this is specified, you don’t need to include the community
name as an argument to the snmp applications.
override: with -c on the command line.
arguments: communityname
Enter the default community name to use: vis
Finished Output: defcommunity vis
Section: Default Authentication Options
Description:
This section defines the default authentication
information. Setting these up properly in your
~/.snmp/snmp.conf file will greatly reduce the amount of
command line arguments you need to type (especially for snmpv3).
Select from:
1: The default port number to use
2: The default snmp version number to use.
3: The default snmpv1 and snmpv2c community name to use when needed.
4: The default snmpv3 security name to use when using snmpv3
5: The default snmpv3 context name to use
6: The default snmpv3 security level to use
7: The default snmpv3 authentication type name to use
8: The default snmpv3 authentication pass phrase to use
9: The default snmpv3 privacy (encryption) type name to use
10: The default snmpv3 privacy pass phrase to use
Other options: finished, list
Select section: finished
The configuration information which can be put into snmp.conf is divided
into sections. Select a configuration section for snmp.conf
that you wish to create:
1: Default Authentication Options
2: Debugging output options
3: Textual mib parsing
4: Output style options
Other options: finished
Select section: 3
Section: Textual mib parsing
Description:
This section controls the textual mib parser. Textual
mibs are parsed in order to convert OIDs, enumerated
lists, and … to and from textual representations
and numerical representations.
Select from:
1: Specifies directories to be searched for mibs.
2: Specifies a list of mibs to be searched for and loaded.
3: Loads a particular mib file from a particualar path
4: Should errors in mibs be displayed when the mibs are loaded
5: Should warnings about mibs be displayed when the mibs are loaded
6: Be strict about about mib comment termination.
7: Should underlines be allowed in mib symbols (illegal)
8: Force replacement of older mibs with known updated ones
Other options: finished, list
Configuring: mibdirs
Description:
Specifies directories to be searched for mibs.
Adding a ‘+’ sign to the front of the argument appends the new
directory to the list of directories already being searched.
arguments: [+]directory[:directory...]
Enter the list of directories to search through for mibs: /usr/local/share/snmp/mibs (package from freeware) atau /etc/sma/snmp/mibs (package from sun)
Finished Output: mibdirs /usr/local/share/snmp/mibs
Section: Textual mib parsing
Description:
This section controls the textual mib parser. Textual
mibs are parsed in order to convert OIDs, enumerated
lists, and … to and from textual representations
and numerical representations.
Select from:
1: Specifies directories to be searched for mibs.
2: Specifies a list of mibs to be searched for and loaded.
3: Loads a particular mib file from a particualar path
4: Should errors in mibs be displayed when the mibs are loaded
5: Should warnings about mibs be displayed when the mibs are loaded
6: Be strict about about mib comment termination.
7: Should underlines be allowed in mib symbols (illegal)
8: Force replacement of older mibs with known updated ones
Other options: finished, list
Select section: finished
The configuration information which can be put into snmp.conf is divided
into sections. Select a configuration section for snmp.conf
that you wish to create:
1: Default Authentication Options
2: Debugging output options
3: Textual mib parsing
4: Output style options
Other options: finished
Select section: finished
I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)
1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf
Other options: quit
Select File: quit
Jalankan file installer
./snmpd agar konfigurasi full path pada directory /usr/sfw/sbin/ atau /usr/local/sbin (pada package freeware)
Check port SNMP
Netstat –a |grep 33161
Check configuration bila terjadi kesalahan dalam konfigurasi
/etc/sma/snmp/snmpd.conf atau /usr/local/share/snmp/snmpd.conf
/etc/sma/snmp/snmp.conf atau /usr/local/share/snmp/snmp.conf
Entry filed under: solaris. Tags: .
Trackback this post | Subscribe to the comments via RSS Feed