United States-English |
|
|
HP-UX Reference > Ssnmpd.conf(4)HP-UX 11i Version 3: February 2007 |
|
NAMEsnmpd.conf — configuration file for the SNMP agent DESCRIPTIONWhen invoked, the SNMP agent reads its configuration information from the /etc/SnmpAgent.d/snmpd.conf configuration file. The SNMP agent is either the snmpd(1M) (included with HP-UX) or the snmpd.ea (purchased with the HP OpenView product). The SNMP agent will not be able to reply if no values are configured in /etc/SnmpAgent.d/snmpd.conf, i.e., /etc/SnmpAgent.d/snmpd.conf is empty. ParameterThe /etc/SnmpAgent.d/snmpd.conf file contains the following configurable values:
SNMPv3 FeaturesThe syntax for using v3 features of SNMP is as follows. The format is:
Where TAG is one of the following:
VALUE is a valid value for any give TAG. When the TAG is usmUserEntry, the format of the VALUE clause is as follows: usmUserEngineID usmUserName usmUserAuthProtocol usmUserPrivProtocol \ usmUserStorageType usmTargetTag where:
When the TAG is vacmSecurityToGroupEntry, the format of the VALUE clause is as follows: vacmSecurityModel vacmSecurityName vacmGroupName vacmSecurityToGroupStorageType where:
When the TAG is vacmAccessEntry the format of the VALUE clause is as follows: vacmGroupName vacmAccessContextPrefix vacmAccessSecurityModel vacmAccessSecurityLevel vacmAccessContextMatch vacmAccessReadViewName vacmAccessWriteViewName vacmAccessNotifyViewName vacmAccessStorageType where:
When the TAG is vacmViewTreeFamilyEntry, the format of the VALUE clause is as follows: vacmViewTreeFamilyViewName vacmViewTreeFamilySubtree vacmViewTreeFamilyMask vacmViewTreeFamilyType vacmViewTreeFamilyStorageType where:
When the TAG is snmpTargetAddrEntry, the format of the VALUE clause is as follows: snmpTargetAddrName snmpTargetAddrTDomain snmpTargetAddrTAddress snmpTargetAddrTimeout snmpTargetAddrRetryCount snmpTargetAddrTagList snmpTargetAddrParams snmpTargetAddrStorageType snmpTargetAddrTMask snmpTargetAddrMMS where:
When the TAG is snmpNotifyEntry, the format of the VALUE clause is as follows: snmpNotifyName snmpNotifyTag snmpNotifyType snmpNotifyStorageType where:
When the TAG is snmpTargetParamsEntry, the format of the VALUE clause is as follows: snmpTargetParamsName snmpTargetParamsMPModel snmpTargetParamsSecurityModel snmpTargetParamsSecurityName snmpTargetParamsSecurityLevel snmpTargetParamsStorageType where:
EXAMPLESSeparate the fields by blanks or tabs. A # character indicates the beginning of a comment; characters from the # character to the end of the line are ignored. Each line in the following example snmpd.conf file is preceded by a comment (beginning with #) that explains the entry. # Restrict the agent to responding only to # SNMP GetRequests that have the # community name "secret" get-community-name: secret # Allow the agent to respond to SNMP Get and SetRequests with # either the community name "private" or "secret" set-community-name: private set-community-name: secret # Allow the agent to respond to SNMP Get and SetRequests # that have the community name "private" set-community-name: private # Send traps to system 15.2.113.233 trap-dest: 15.2.113.233 # Specify the agent is located on the first floor # near the mens room location: 1st Floor near Mens Room # Specify Bob Jones is responsible for this agent # and his phone number is 555-2000 contact: Bob Jones (Phone 555-2000) # Create a SNMPv3 user 'v3usr' with No Authentication Protocol. usmUserEntry localSnmpID v3usr usmNoAuthProtocol 1.3.6.1.6.3.10.1.2.1 \ nonVolatile whereValidRequestsOriginate - # Create a SNMPv3 user 'v3usr' with Authentication enabled and # password as "passwd". usmUserEntry localSnmpID v3usr usmHMACMD5AuthProtocol 1.3.6.1.6.3.10.1.2.1 \ nonVolatile whereValidRequestsOriginate "passwd" # Create a group 'admin' and make the user 'v3usr' a part of the # same group. vacmSecurityToGroupEntry usm v3usr admin nonVolatile # Assign access control the group 'admin'. This group will have # security protocol as no authentication and no privacy vacmAccessEntry admin - usm noAuthNoPriv prefix All All - nonVolatile # 'All' is the name of the view that will define the access for the # group 'admin'. Give access to the view named 'All'. The access is # for the subtree `internet' i.e. .1.3.6.1 vacmViewTreeFamilyEntry All 1.3.6.1 - included nonVolatile # Create a target address entry for 192.168.40.40 with UDP port as 0. # If SNMP_TRAP_TEST_ENTRY or SNMP_TEST_PORT_ENTRY are not used, # default value of UDP port 162 will be used. snmpTargetAddrEntry stae2 1.3.6.1.6.1.1 192.168.40.40:0 0 0 \ whereValidRequestsOriginate - nonVolatile 255.255.255.255:0 2048 |
Printable version | ||
|