Unsolved
This post is more than 5 years old
44 Posts
0
6065
November 15th, 2012 11:00
SNMP config file/MIB modification on VNX
I have been doing signifciant research on my own as well in order to correctly configure the snmp trap configuration on the control station. I have a couple questions regarding the configuration file and MIB.
Is there a command that will allow me to copy the configuration file to other VNX arrays without having to disconnect from VNX i am copying from? Also, I have been reading information about modifying the MIB file to have more descriptive messages.
My current configuration has entries like this:
# CS_PLATFORM:STORAGE
#
facilitypolicy 6:58, 7
disposition range=44-44 severity=0-3, trap "/nas/site/trap.cfg 2"
#
# DART:CAM
#
#facilitypolicy 1:26, 4
# disposition range=7-7 severity=0-3, trap "/nas/site/trap.cfg 2"
#
# CS_PLATFORM:STORAGE
#
facilitypolicy 6:131, 7
disposition severity=0-4, trap "/nas/site/trap.cfg 2"
Does the number after the .cfg file correlate to the IDs in the MIB file? If i don't explicity define the disposition range for the devices, will i need to have separate entries in the MIB for each event?
Thanks in advance.


umichklewis
4 Apprentice
•
1.2K Posts
0
November 21st, 2012 06:00
You can copy your config file from host to host using Linux commands such as scp. Something to the effect of "scp my.mib nasadmin@remotecelerra:/home/nasadmin/my.mib"
As far as configuring the MIB, you should take a look at the VNX documentation, Configuring Events and Notifications on VNX. In the section on MIBs, it refers to the trap number that's associated within the MIB file itself.
mgrammer
44 Posts
0
November 21st, 2012 07:00
I have been reading the documentation and that is why i posted here.
The confusion is whether the identifier should be the same for all events. Since I have so many events that should send traps, if they all come in with the same identifier from the MIB, that would cause confusion. It is not clear if each event should have its own identifier, especially when, for some of the facilities, i only have a severity range and not specific ranges.
I'm really looking for some guidance as I have been reading the documentation and still have some questions.
mgrammer
44 Posts
0
November 21st, 2012 07:00
That is a little more helpful yes. So, it's possible i may need to add additional lines to the MIB file, correct? i know the MIB has 10-12 IDs already.
mgrammer
44 Posts
0
November 21st, 2012 07:00
You've been very helpful, so thank you. I can still use the identifiers in the MIB right? I'll have to take a deeper look into what i have configured and what identifiers i want to use. This could be a long process, but i appreciate your help.
umichklewis
4 Apprentice
•
1.2K Posts
0
November 21st, 2012 07:00
Take a look at page 45 and page 88. On page 88, the control station will send the trap you specified with trap number specified in the .cfg file. So, in your example above, each of your configured events above will send the same trap, because they have the same trap number. So, as it says on page 45, you need to create a unique trap number for the traps you create. And yes, you may have lots of trap numbers, but it's a 32-bit counter, so you have quite a ways to go. Does this help?
umichklewis
4 Apprentice
•
1.2K Posts
0
November 21st, 2012 07:00
Yes, that's correct again. You'll need to create a entry for each additional item you want to trap on. From Page 45:
Modify the MIB file for SNMP traps
If the default SNMP traps do not properly describe the condition that you want to trap, you
can define additional SNMP traps by modifying the system MIB file:
1. Modify the MIB, /nas/sys/emccelerra.mib, to include the following lines:
celCFS TRAP-TYPE
ENTERPRISE emcCelerra
VARIABLES {celEvent}
DESCRIPTION
" "
::=
where:
= description of the trap.
= arbitrary, yet unique, trap number for the event that you specified in the notification configuration file. Some trap numbers are reserved. Ensure to check the trap definition section of the MIB, /nas/sys/emccelerra.mib, before assigning a trap number.
So, you just need to keep adding trap entries with unique numbers. I had 30 or so traps back in the day, so it's not unheard of to have as many as you require. Let me know if you have more questions.
umichklewis
4 Apprentice
•
1.2K Posts
0
November 21st, 2012 08:00
You should be able to use the existing identifiers - the only requirement is that trap IDs must be unique. After, pretty much anything goes.
When you're happy with the state of the MIB and any changes made to the notification config file, just use SCP to copy them from one control station to the next. All the file locations will be the same between each box. Let us know how it goes!
mgrammer
44 Posts
0
November 21st, 2012 08:00
Do i assign the trap IDs or how can i be sure that the trap IDs are unique?
umichklewis
4 Apprentice
•
1.2K Posts
0
November 21st, 2012 09:00
Yes - when you modify the MIB, you assign the unique ID number as in step 1 above. For consistency, I started my numbers at 100 and incremented from there.
mgrammer
44 Posts
0
November 28th, 2012 10:00
I modified the MIB and the eventlog.cfg so they would have matching trap IDs. However, when i tried to send a test trap, it didn't work. i used trap IDs 50-61. i'm not sure why the traps didn't go through. Any suggestions are welcome.