參考這篇:
viewtopic.php?t=2927&highlight=mrtg
http://www.scjh.tpc.edu.tw/cc/HUBS/mrtgCfg.htm
-----------------------------------------------------
[root@proxyT snmp]# snmpconf
The following installed configuration files were found:
1: ./snmpd.conf
2: /etc/snmp/snmpd.conf
Would you like me to read them in? Their content will be merged with the output files created by this session.
Valid answer examples: "all", "none","3","1,2,5"
Read in which (default = all): -------------------------à (DEFAULT)
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: ----------------à ( 1,snmpd.conf )
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: Trap Destinations
6: System Information Setup
Other options: finished Select section: ---------------à (1 , Access Control Setup )
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: 只要作 SNMP Read-Only )
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: public
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 public
-------------------------------------------------------
紅色字那段按下enter後
會再回到以下這段要我重新選擇?
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
然後我按下CTRL+C跳出後,nmap目錄下並沒有產生新的snmpd.conf 我是哪裡做錯了嗎?