Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1446304.1
Update Date:2012-04-11
Keywords:

Solution Type  Technical Instruction Sure

Solution  1446304.1 :   How to set community String for LSI SNMP Agent Traps  


Related Items
  • Sun Storage 6Gb SAS PCIe RAID HBA
  •  
  • Solaris x64/x86 Operating System
  •  
  • Sun Fire X4270 M2 Server
  •  
  • Sun Netra X4270 Server
  •  
  • Sun Fire X4170 M2 Server
  •  
Related Categories
  • PLA-Support>Sun Systems>x64>Server>SN-x64: MISC-SERVER
  •  
  • .Old GCS Categories>Sun Microsystems>Servers>x64 Servers
  •  
  • .Old GCS Categories>Sun Microsystems>Servers>NEBS-Certified Servers
  •  




In this Document
  Goal
  Solution


Created from <SR 3-5457141897>

Applies to:

Sun Fire X4170 M2 Server - Version: Not Applicable and later   [Release: N/A and later ]
Sun Netra X4270 Server - Version: Not Applicable to Not Applicable   [Release: N/A to N/A]
Sun Storage 6Gb SAS PCIe RAID HBA - Version: Not Applicable to Not Applicable   [Release: N/A to N/A]
Solaris x64/x86 Operating System - Version: 10 10/08 U6 to 10 10/08 U6   [Release: 10.0 to 10.0]
Sun Fire X4270 M2 Server - Version: Not Applicable to Not Applicable   [Release: N/A to N/A]
Information in this document applies to any platform.

Goal


How To Set Community String To Any Desired (custom) String.

[  LSI SNMP Agent is installed as a sub-agent of the SMA agent. On Solaris, you need to edit
'/etc/sma/snmp/snmpd.conf' file and add the lines mentioned in the FIX section  ]




Solution


@Community String "Public"   Will be persistent by default unless it is changed in snmpd.conf file To achieve this goal Follow the below steps.

Solution or Workaround


1. Stop the lsi agent and SMA

a. [ /etc/init.d/lsi_mrdsnmpd stop ]
b. [ svcadm disable sma ]

2. Edit the Snmp Configuration File

a.
 # vi /etc/sma/snmp/snmpd.conf ## Make sure to have a clean copy of snmpd.conf file backedup

b.
 Press Shift+g ## To go to the bottom of the file

c.
Add below three lines if needed or just add trap community [ #man snmpd.conf ]
trapcommunity testing
trapsink 127.0.0.1
informsink xx.xxxx.xxx.xxx ## Ip Address of a host to receive traps 10.178.240.149

d. save exit


3. Edit sas_TrapDestination.conf and sas_ir_TrapDestination.conf

a. #vi /etc/lsi_mrdsnmp/sas/sas_TrapDestination.conf
#################################################
# Agent Service needs the IP addresses to sent trap
# The trap destination may be specified in this file or
# using snmpd.conf file. Following indicators can be set
# on "TrapDestInd" to instruct the agent to pick the IPs
# as the destination.
# 1 - IPs only from snmpd.conf
# 2 - IPs from this file only
# 3 - IPs from both the files
#################################################
TrapDestInd 1 [ Select Option 1 Only ]

Repeat the same steps for sasir_TrapDestination.conf [ path: /etc/lsi_mrdsnmp/sasir/sas_ir_TrapDestination.conf ]

Save & Exit


4. Open another terminal to monitor the trap, Command to monitor is :
     bash-3.00# /usr/sfw/sbin/snmptrapd -P -f udp:162

5. Start the LSI agent
To start the lsi agent, issue the below command. SMA service would be started automatically
bash-3.00# /etc/init.d/lsi_mrdsnmpd start

Note: Option 2 and 3 in the TrapDestination.Conf file are dummies and has no effect
an active bug is in progress and is been worked by Team LSI
Refer to Bugs 7155983

(END)








Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback