You are here: SwitchKit SNMP User’s Guide > 2 Installation > Verifying the SNMP Installation on a Solaris SPARC
Verifying the SNMP Installation on a Solaris SPARC
This procedure describes the verification of your SNMP installation on a Solaris SPARC system.
Before you begin
EXS SwitchKit must be installed and the LLC and SwitchManager need to be running, with the CSP configured. Refer to the EXS SwitchKit Installation and Maintenance Guide for further information. In some instances, output from SNMP tools refers to notifications as traps.
Installation Verification on Solaris SPARC
To verify your installation, follow the steps below:
1 Verify that mib2agt and snmpdm are running. You can verify this with the following commands:
# ps -ef | grep snmp
# ps -ef | grep mib2
If mib2agt and snmpdm are not running, go to /etc/srconf/exe and use these commands:
# ./snmpdm&
# ./mib2agt&
2 Change directories and start the traprcv process with the following command:
# cd /etc/srconf/exe
# ./traprcv&
A new window appears with the following message:
# Waiting for traps
3 Verify that the environmental variables required for these processes to execute properly have been defined. Type the following command:
# env | grep SR
The command should produce the following output:
SR_MGR_CONF_DIR=/etc/srconf/mgr
SR_AGT_CONF_DIR=/etc/srconf/agt
4 If this command returns nothing, then the environmental variables are not defined. Add the following to the /etc/profile file at the end of the file:
SR_MGR_CONF_DIR=/etc/srconf/mgr
export SR_MGR_CONF_DIR
SR_AGT_CONF_DIR=/etc/srconf/agt
export SR_AGT_CONF_DIR
5 Then, log in as root again, and verify using:
env/grep/sr
6 From the same directory, /etc/srconf/exe, start the CSPAgent daemon with the following command:
# ./CSPAgent&
This command starts the process using SNMPv2c notifications as the communications protocol. If the process is successfully started, the following notifications appear in the traprcv window:
Received SNMPv2c Trap:
Community: public
From: 127.0.0.1
sysUpTime.0 = 599440
snmpTrapOID.0 = cspAgentMasterAgentConnect
Received SNMPv2c Trap:
Community: public
From: 127.0.0.1
sysUpTime.0 = 599444
snmpTrapOID.0 = cspAgentLLCConnect
7 From the same directory, /etc/srconf/exe, start the CSPEventManager daemon with the command:
# ./CSPEventManager&
This command starts the process using SNMPv2c notifications as the communications protocol. If the process is successfully started, the following notifications appear in the traprcv window:
Received SNMPv2c Trap:
Community: public
From: 127.0.0.1
sysUpTime.0 = 606971
snmpTrapOID.0 = cspEventManagerLLCConnect
Received SNMPv2c Trap:
Community: public
From: 127.0.0.1
sysUpTime.0 = 606975
snmpTrapOID.0 = cspEventManagerMasterAgentConnect
8 At the command line, type the following:
# cd /etc/srconf/exe
# ./getmany -v1 localhost public cspCardType
The response to this command should be similar to the following:
cspCardType.6.1 = dsp_one(21)
cspCardType.6.2 = t_one16_span(24)
cspCardType.6.4 = mfdsp(3)
cspCardType.6.5 = e_one16_span(25)
cspCardType.6.7 = j_one16_span(30)
cspCardType.6.9 = ss7Series3(113)
cspCardType.6.10 = ss7Series3(113)
cspCardType.6.16 = exnet_one(84)
cspCardType.6.17 = lowerFanTray(248)
cspCardType.6.19 = powerSupply(240)
cspCardType.6.20 = midplane(250)
cspCardType.6.21 = ex_cpuIO(243)
cspCardType.6.22 = ex_cpuIO(243)
cspCardType.6.33 = matrixControllerSeries3(115)
cspCardType.6.53 = e_one120ohmStandbyIO(229)
cspCardType.6.54 = e_one120ohmRedundantIO(226)
cspCardType.6.57 = ccsIOSeries3(216)
cspCardType.6.58 = ccsIOSeries3(216)
9 To stop the processes that were started up, type at the command line:
# ps-ef | grep CSP
This gives you the CSPAgent and CSPEventManager PIDs, then type:
# kill -9 <CSPAgent PID> <CSPEventManager PID>
This kills the CSPAgent and CSPEventManager processes.
You can now change the destination of the notifications, the Structure of Management Information (SMI) version of the notification sent or change the community string, see System Customization.