Migrating IOS to NX-OS equivalent command snmp-server enable traps config
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
Hello,
I am trying to figure out what is the equivalent command to configure the IOS "snmp-server enable traps config" on a Nexus 5020 running NX-OS version 4.2.1.N2.1 ,can someone please help me with this problem.
Also I would like to know if there is a cisco howto document or tool to migrate from IOS to NX-OS ?
Any help is greatly appreciated
Thanks
Frank
Hello,
both Nexus 5k are not generating a trap after a config change, because on both Nexus running same NX-OS version show up the snmp-server enable traps config command. This is really strange behavior, because we are using the same software version for the Nexus 5k devices it doesn't make sense to me. In the meantime I checked the command line guide for this software version but the command wasnt showing up.
nx5k-mt-2# show snmp trap | grep config
nx5k-mt-2#
nx5k-mt-2# show snmp trap
Trap type Enabled
entity : entity_mib_change Yes
entity : entity_module_status_change Yes
entity : entity_power_status_change Yes
entity : entity_module_inserted Yes
entity : entity_module_removed Yes
entity : entity_unrecognised_module Yes
entity : entity_fan_status_change Yes
link : linkDown Yes
link : linkUp Yes
link : extended-linkDown Yes
link : extended-linkUp Yes
link : cieLinkDown Yes
link : cieLinkUp Yes
link : connUnitPortStatusChange Yes
link : fcTrunkIfUpNotify Yes
link : fcTrunkIfDownNotify Yes
link : delayed-link-state-change Yes
link : fcot-inserted Yes
link : fcot-removed Yes
callhome : event-notify Yes
callhome : smtp-send-fail Yes
cfs : state-change-notif Yes
cfs : merge-failure Yes
fcdomain : dmNewPrincipalSwitchNotify Yes
fcdomain : dmDomainIdNotAssignedNotify Yes
fcdomain : dmFabricChangeNotify Yes
rf : redundancy_framework Yes
aaa : server-state-change Yes
license : notify-license-expiry Yes
license : notify-no-license-for-feature Yes
license : notify-licensefile-missing Yes
license : notify-license-expiry-warning Yes
scsi : scsi-disc-complete Yes
fcns : reject-reg-req Yes
fcns : local-entry-change Yes
fcns : db-full Yes
fcns : remote-entry-change Yes
rscn : rscnElsRejectReqNotify Yes
rscn : rscnIlsRejectReqNotify Yes
rscn : rscnElsRxRejectReqNotify Yes
rscn : rscnIlsRxRejectReqNotify Yes
fcs : request-reject Yes
fcs : discovery-complete Yes
fctrace : route Yes
zone : request-reject1 Yes
zone : merge-success Yes
zone : merge-failure Yes
zone : default-zone-behavior-change Yes
zone : unsupp-mem Yes
vsan : vsanStatusChange Yes
vsan : vsanPortMembershipChange Yes
fspf : fspfNbrStateChangeNotify Yes
upgrade : UpgradeOpNotifyOnCompletion Yes
upgrade : UpgradeJobStatusNotify Yes
feature-control : FeatureOpStatusChange Yes
snmp : authentication Yes
nx5k-mt-2#
nx5k-mt-2#
Similar Messages
-
Syslog equivalent to "snmp-server enable traps fru-ctrl"?
Does "[no] snmp-server enable traps fru-ctrl" toggle cefcMIBNotificationEnables of CISCO-ENTITY-FRU-CONTROL-MIB such that traps/notifications concerning cefcModuleOperStatus get generated?
Are there syslog equivalents to the traps/notifications above? If so, can anyone post a sample entry, so I know what it looks like and what keywords to search for?It depends on the platform and IOS release. There is the %ENTITY_ALARM-6-INFO syslog which signifies an entity change. This would come closest to the cefcModuleStatusChange trap.
Generally speaking, card insert and removal operations, the OIR syslog messages are supported across platforms:
%OIR-6-INSCARD : Card is inserted
%OIR-6-REMCARD : Card is removed
Other platforms and card types may provide additional details if a module fails (e.g. %FECPM-1-INITFAIL for a NM module in a 2600/3600). -
What traps are generated from "snmp-server enable traps module"?
I'm at wit's end here ... I've been browsing doucmentation like a madman, but I just can't find it.
I've got a 6500 sup 720 running Cisco IOS Software, s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(33)SXI3, RELEASE SOFTWARE (fc2) with this in the config:
esdb8#sh run | inc module
snmp-server enable traps module
esdb8#
Can anyone tell me what traps would be generated on what conditions with this statement? Pointers to docs are more than welcome!
Thanks in advance,
OlofThis command will enable the following traps:
moduleUp NOTIFICATION-TYPE
OBJECTS { moduleIndex, moduleType }
STATUS current
DESCRIPTION "A moduleUp trap signifies that the agent entity
has detected that the moduleStatus object in this
MIB has transitioned to the ok(2) state for one of
its modules.
The generation of this trap can be controlled by
the sysEnableModuleTraps object in this MIB."
::= { ciscoStackNotificationsPrefix 3}
moduleDown NOTIFICATION-TYPE
OBJECTS { moduleIndex, moduleType }
STATUS current
DESCRIPTION "A moduleDown trap signifies that the agent entity
has detected that the moduleStatus object in this
MIB has transitioned out of the ok(2) state for
one of its modules.
The generation of this trap can be controlled by
the sysEnableModuleTraps object in this MIB."
::= { ciscoStackNotificationsPrefix 4}
This is from the CISCO-STACK-MIB, review the link for entire MIB. I could not find an IOS document,
however this 6500 CatOS command reference shows the same command in CatOS lingo (set snmp trap module). -
SNMP server on PIX IOS 7.2 over VPN
Hi Team,
I have a simple query for the issues I m facing currently.
I have @ remote site remote site PIX firewall which is configurd to get the Snmp poll on the server locate outside via site to site VPN.
There is another snmp server located also in inside which I’m not managing it .
========================================================================
below are the command for the snmp configured on PIX.
snmp-server host inside x.x.x.x community XXXXX ---This is not managed by us
snmp-server host inside x.x.x.x community XXXXX
snmp-server host outside y.y.y.y (private IP tunneled though VPN) poll community YYYYY ---Managed by us
snmp-server host outside y.y.y.y poll community YYYYY
snmp-server community XXXXX
snmp-server enable traps snmp authentication linkup linkdown coldstart
snmp-server enable traps syslog
access-list acl-VPN-tunnel line 2 extended permit ip host z.z.z.z (outside interface of PIX firewall) host Y.Y.Y.Y (server located outside)
==============================================================================
there are 2 snmp community & server defined in snmp-server host command for 2 different IP address belongs to snmp server and we can only define one global snmp-server community for any one of them .Question is how the snmp community take a precedence .
Currently I am able to ping from my snmp server from outside to the PIX firewall outside interface over L2L VPN but somehow the snmp server is not listening when i do port query on 161 por!.
Appreciate you inputs for the same and let me know if any more details are neededWhat was the resolution? I am having the same issue.
Thanks! -
We have all of our network equipment configured SNMP and syslog.
There is also Ciscoworks configured.
Is Cisco works considered the SNMP server?
If so, is this also where all of the traps age going?
There are a ton of traps configured and I don't see how they are all viable in Ciscoworks.
Ther are even more than this, but here is a sample:
y
snmp-server enable traps syslog
snmp-server enable traps flex-links status
snmp-server enable traps sonet
snmp-server enable traps dial
snmp-server enable traps fru-ctrl
snmp-server enable traps entity
snmp-server enable traps rsvp
snmp-server enable traps csg agent quota database
snmp-server enable traps srp
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps flash insertion removal
snmp-server enable traps c6kxbar intbus-crcexcd intbus-crcrcvrd swbus
snmp-server enable traps envmon fan shutdown supply temperature status
snmp-server enable traps port-security
snmp-server enable traps mpls traffic-eng
snmp-server enable traps mpls ldp
snmp-server enable traps isakmp policy add
snmp-server enable traps isakmp policy delete
snmp-server enable traps isakmp tunnel start
snmp-server enable traps isakmp tunnel stop
snmp-server enable traps ipsec cryptomap add
snmp-server enable traps ipsec cryptomap delete
snmp-server enable traps ipsec cryptomap attach
snmp-server enable traps ipsec cryptomap detach
snmp-server enable traps ipsec tunnel start
snmp-server enable traps ipsec tunnel stop
snmp-server enable traps ipsec too-many-sas
snmp-server enable traps alarms
snmp-server enable traps vlan-mac-limit
snmp-server enable traps voice poor-qov
snmp-server enable traps mpls vpnIf you're talking about the Ciscoworks server....
When you add the device to the network, two things can happen...
1. If Ciscoworks is configured to discover the network through the CM application, the new device will be automatically discovered.
or
2. The device will can be manually added into Ciscoworks via the RME application, and then syncronized to DFM.
You still should point the traps to the LMS server through the config on the device (as mentioned earlier).
Now if you're not talking about Ciscoworks, but some generic NMS, you will definitely have to have a trap receiver on the server, and still on the device have the "snmp-server host" command set to point the traps there.
Hope this helps,
-Joe -
Software for managing SNMP Pix failover traps
Hi, we need to monitor pix failover with snmp. Going through the pix readme shows as example how to do with Cisco Works for WIndows. Is this the only cisco product that can manage this? We are using LMS, is there a way with LMS to monitor failover events?
Kurtis DurrettThanks!
The command originally didn't work by itself, but after come changes to the other SNMP configurations the traps were then received.
SNMP configurations below:
Switch#show run | inc snmp
snmp-server community (removed) RW 5
snmp-server trap-source Vlan411
snmp-server chassis-id (Removed)
snmp-server enable traps fru-ctrl
snmp-server enable traps entity
snmp-server enable traps envmon fan temperature
snmp-server host *.*.*.* (Removed) fru-ctrl envmon
Logging:
Switch#show run | inc log
service timestamps log datetime localtime
logging buffered 16384
logging trap notifications -
Hello,
we're running Prime Infrastructure 2.0 (version VA-2.0.0.0.294).
I was scared as I figured out one hour ago that running an inventory sync (Device Work Center) removes the command snmp-server location and adds the command snmp-server host "PI-ip address" "snmp rw community" in the running-config.
Has someone the same behaviour or can reenact this scenario?!
Can someone imagine that this behaviour has something to do with a configuration setting in PI?
I'm perplexed and got gray hair now.
Thank you for your answers or tips.
BastianHello Rob,
I just successfully installed the patch. The snmp-server location is not touched anymore while running a inventory job.
But PI still enters this string in the running-configuration:
snmp-server host "PI-IP address" " our snmp RW community- string"
although there already exists the entry:
snmp-server host "PI-IP address" version 2c "community-string (not the snmp rw-community-string)"
Do you or anyone else has the same behaviour that PI adds automaically himself as snmp trap receiver with the SNMP-RW community?
Regards
Bastian -
NAC SNMP MAC notification traps not being sent
I have the switch set up for mac notification, and the switch has the below config. But no mac notification traps get sent to the CAM.
interface GigabitEthernet1/0/24 switchport access vlan 800 switchport mode access snmp trap mac-notification added spanning-tree portfast!snmp-server community **** ROsnmp-server community **** RWsnmp-server enable traps snmp linkdown linkupsnmp-server enable traps MAC-Notificationsnmp-server enable traps stpx root-inconsistency loop-inconsistencysnmp-server host 10.101.90.20 version 2c **** snmp-server host 10.101.90.20 **** MAC-Notification snmp
Below is a debug of snmp packets when a host it connected to the switch on port 1/0/24
1y29w: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to up1y29w: SNMP: Queuing packet to 10.101.90.201y29w: SNMP: V2 Trap, reqid 62, errstat 0, erridx 0 sysUpTime.0 = 648642685 snmpTrapOID.0 = snmpTraps.4 ifIndex.10124 = 10124 ifDescr.10124 = GigabitEthernet1/0/24 ifType.10124 = 6 lifEntry.20.10124 = up1y29w: SNMP: Queuing packet to 10.101.90.201y29w: SNMP: V1 Trap, ent products.516, addr 10.202.1.2, gentrap 3, spectrap 0 ifIndex.10124 = 10124 ifDescr.10124 = GigabitEthernet1/0/24 ifType.10124 = 6 lifEntry.20.10124 = up1y29w: SNMP: Packet sent via UDP to 10.101.90.201y29w: SNMP: Packet sent via UDP to 10.101.90.201y29w: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to up
Am I missing something in the config or something?Hello,
Please post your SNMP receiver config on the CAM. Also, can you do a capture on the CAM to see if you're seeing the packets getting there?
To do the capture, in a SSH session, use this command: tcpdump -ieth0 'host ' -s0 -wcapture.pcap
Once you've captured the success/failure, hit Ctrl-C to kill the capture. You can then use WINSCP or any other SCP program to get that file off of the CAM for further analysis.
HTH,
Faisal -
ASR1000 missing " snmp-server hc poll " command
Hi, customer wants to poll some interface-counter more or less in realtime for some reasons, IOS does not update the Mib-vRiables in real-time.
So the was a hidden command in "normal" IOS to change this behaviour , to force IOS to update the counters quicker.
It was
snmp-server hc poll value
unfortunately this command is not present in IOS XE.
I s there any equivalent command in IOS XE?
Thx
HubertI suppose this command is also supported in IOS-XE. When you apply this command does it gives you any error?
I am not sure if it is practical to poll devices via SNMP in real time or in very shorter duration.
This may be mostly interfaces details your customer is after, that's not how SNMP counters are designed to respond back. IfTable counters will get updated every 10 seconds on most platforms. So it doesn't even make any sense to poll them faster than once every 10 seconds. There are other SNMP objects (like gauges) which are real time and will give you updated information on each poll. There are reasons why this was designed that way, and not abiding by this can cause other much more critical problems like high CPU and each platform will have different impacts.
You can check some other performance enhancing commands (may be platform specific):
service counters max age 10
snmp-server ifmib internal cache max-duration
-Thanks
Vinod
** Encourage Contributors. RATE them ** -
Router "snmp-server contact" command for catalyst switches??
From the router you can configure the "snmp-server contact <text>" command
to set the system contact for SNMP. Is there any equivalent command for
Catalyst switches? I know that there's a "set system contact" command for
CatOS but i'm sure if it has something to do with SNMP.
Thanks in advance.Yes, set system contact on switch is the same that on the router for the above command. Once you use this this command to enter the contact info, it can be polled via the SNMP MIB Object sysContact (.1.3.6.1.2.1.1.4) from RFC1213-MIB. Example, if I use 'set system contact foo', I see the following using the 'show system' output:
System Name System Location System Contact CC
foo
Polling the above via the above MIB object on the switch:
% snmpwalk .1.3.6.1.2.1.1.4
system.sysContact.0 = foo
Similarly, if you set the 'System Name' on the switch using the command 'set system name ', can be polled via sysName (.1.3.6.1.2.1.1.5) from RFC1213-MIB
Lastly, 'set system location ', once set can be polled via sysLocation (.1.3.6.1.2.1.1.6) from RFC1213-MIB -
Equivalent command in Reports like Sapscripts's PROTECT and ENDPROTECT
Hi,
What is the equivalent command in Reports like Sapscripts's PROTECT and ENDPROTECT?
- SelvaHi,
I don't think you have any particular command for that in reports. but if you are talking about headers / footers then you may use the events TOP-OF-PAGE and END-OF-PAGE.
Regards,
Anand Mandalika. -
Equivalent command in OAF for when when validate record in forms
Hi,
what is the equivalent command in OAF to when when validate record in forms
kumarHi Kumar,
validateRow() of your XXVORowImpl is equivalent of When-Validate-Record of forms.
This method calls validateEntity() of your XXEOImpl
This method is generally invoked on form submits (POST Requests)
Regards,
Ravi -
RedirectMatch equivalent command in Sun Webserver
I am looking for a equivalent command for this in SUN Webserver. This command is specific to IBM HTTP server.
RedirectMatch permanent ^/$ /content/common/index.jsp
Purpose: One of our sites www.xyz.com is redicted to URL www.xyz.com/content/common/index.jsp immediately. We are not able to carry the referral inforamtion from www.xyz.com to second URL. So we are missing some vital statistics.
ThanksYou didn't mention what version you're using.
In Sun Java System Web Server 7, you could use the following:
<Client uri="/">
NameTrans fn="redirect" status="301" url="/content/common/index.jsp"
</Client>In Sun ONE Web Server 6.1, things are more complicated:
<Client uri="/">
NameTrans fn="redirect" from="/" url="/content/common/index.jsp"
Output fn="set-variable" code="302" error="301" noaction="true"
</Client>(In both versions, you should place the <Client> container inside the <Object name="default"> container in the obj.conf configuration file.) -
NI4882 equivalent command for the IVI formatted488IO ReadList command.
I need an NI4882 equivalent command for the IVI formatted488IO ReadList command.
This is what I have:
using Ivi.Visa.Interop;
using Ivi.Driver.Interop;
formatted488Class = new FormattedIO488();
formatted488Class.WriteString("LDATA");
object response = formatted488Class.ReadList();
What I need is an equivalent when instead of the IVI DLLs (Ivi.Visa.Interop and Ivi.Driver.Interop), I want to use NationalInstruments.Common, NationalInstruments.NI4882 and NationalInstruments.VisaNS.
I.e.:
NI4882.Device.Write("LDATA");
and then call:
NI4882.Device.ReadString() or NI4882.Device.ReadByteArray()
Problem is I don't know how many bytes or strings are to be read, and even if i knew it would not help because it would still not behave the same way as IVI's Readlist.
Can anyone point me in the right direction?
Thanks,
CrisYes, I was using ReadString. Unfortunately, it only returns 128 values of 1000, which is what I need. If you do not specify the number of values to read, i.e,. ReadString(int numberOfBytes), it assumes a default number of 128. However, I found a solution which is more of a workaround. I read the first 128 values, and it so happens that the instrument returns as a first value the number of values to be read (1000). So I read the rest of the values in a loop. Not elegant, but it seems to work for me.
-
Disable SNMP mac-notification only for one snmp-server host
Hi,
we use NAC in our network and because of that I need the MAC-notification trap.
My problem is, the NAC needs that trap, but my network monitoring system doesn't.
Is it possible to disable only that trap for my monitoring?
For the NAC I use the following command to filter all other traps:
snmp-server host 192.168.1.1 version 2c public mac-notification
That works!
Is there something like
snmp-server host 192.168.1.20 version 2c public no mac-notification
to disable that mac-notification?
Thanks!
SvenHi Sven,
try using the syslog discriminator - I think it should be possible with this feature but I have not had the chance to play with it:
http://www.cisco.com/en/US/partner/docs/ios/12_4t/12_4t11/htnmsylg.html
and some interesting threads:
https://supportforums.cisco.com/message/3446512#3446512
https://supportforums.cisco.com/message/3340796#3340796
and others (search for "syslog discriminator")
Martin
Maybe you are looking for
-
Report for slow moving material.
Hi friends I want to create report for slow & fast moving materials.. I have to add following fields in the report Material, Unit of Measure, Current Stock, Value, Last consumption date, Last movement date... Now I dont have all these fields toghethe
-
How to assign a default value when there is no prompted value
Dear all, I create a filter and it's value is relate to a prompt.If the prompt is not fill I found that all record is selected. How did I assign a default value so that when I didn't fill some value in to the prompt and still can get the result by th
-
How do I get the music from my macbook to my iphone 5s? It says it is on my phone in itunes but it is not.
-
Parent-Child Relationships in Essbase Studio
In Essbase Studio, I am defining a hierarchy in which a parent member (Wholesaler) is from one dimension table and child member (Rep) is from another. When I preview this hierarchy or build an outline to include it, a few of the Reps that should roll
-
Problems Creating Custom Skin w/ further functionality
Hello, To add that final piece to my project i have been attempting to modify the controls within the flash files located in the program files. I have been successful in editing the look without any problems, but that isn't the end of my plan. I have