Thursday, May 26, 2011

The Reload Persistency of the NX-OS 'snmp-server enable traps' Global Configuration Command

n5010# sh ver | in image|compile
  BIOS compile time:       09/08/09
  kickstart image file is: bootflash:/n5000-uk9-kickstart.4.2.1.N2.1.bin
  kickstart compile time:  7/28/2010 18:00:00 [07/29/2010 01:10:19]
  system image file is:    bootflash:/n5000-uk9.4.2.1.N2.1.bin
  system compile time:     7/28/2010 18:00:00 [07/29/2010 05:18:12]
n5010#
n5010# sh snmp ?
  <cr>
  >                 Redirect it to a file
  >>                Redirect it to a file in append mode
  community         Show snmp community strings
  context           Show snmp context mapping entries
  engineID          Show snmp engineID
  group             Show snmp group
  host              Show snmp hosts
  internal          Show snmp internal information
  sessions          Show snmp sessions
  source-interface  Show source-interface through which notifications are sent
  trap              Show snmp traps
  user              Show SNMPv3 users
  |                 Pipe command output to filter

n5010# sh snmp trap ?
  <cr>
  >      Redirect it to a file
  >>     Redirect it to a file in append mode
  |      Pipe command output to filter

n5010# sh 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                 : delayed-link-state-change                    Yes
callhome             : event-notify                                 No
callhome             : smtp-send-fail                               No
cfs                  : state-change-notif                           No
cfs                  : merge-failure                                No
rf                   : redundancy_framework                         Yes
aaa                  : server-state-change                          No
license              : notify-license-expiry                        Yes
license              : notify-no-license-for-feature                Yes
license              : notify-licensefile-missing                   Yes
license              : notify-license-expiry-warning                Yes
zone                 : unsupp-mem                                   No
upgrade              : UpgradeOpNotifyOnCompletion                  No
upgrade              : UpgradeJobStatusNotify                       No
feature-control      : FeatureOpStatusChange                        No
rmon                 : risingAlarm                                  No
rmon                 : fallingAlarm                                 No
rmon                 : hcRisingAlarm                                No
rmon                 : hcFallingAlarm                               No
config               : ccmCLIRunningConfigChanged                   No
snmp                 : authentication                               No
bridge               : topologychange                               No
bridge               : newroot                                      No
stp                  : inconsistency                                No
stpx                 : loop-inconsistency                           No
stpx                 : root-inconsistency                           No
n5010#
n5010# conf t
Enter configuration commands, one per line.  End with CNTL/Z.
n5010(config)# snmp-server ?
  aaa-user           Set duration for which aaa-cached snmp user exists
  community          Set community string and access privs
  contact            Modify sysContact
  context            SNMP context to be mapped
  counter            Set duration for which cached snmp counter cleared
  enable             Enable SNMP Traps
  globalEnforcePriv  Globally enforce privacy for all the users
  host               Specify hosts to receive SNMP notifications
  location           Modify sysLocation
  mib                Mib access parameters
  protocol           Snmp protocol operations
  source-interface   Source interface to be used for sending out SNMP
                     notifications
  tcp-session        Enable one time authentication for snmp over tcp session.
  user               Define a user who can access the SNMP engine

n5010(config)# snmp-server enable ?
  traps  Enable SNMP traps

n5010(config)# snmp-server enable traps ?
  <cr>
  aaa              Module notifications enable
  bridge           Enable SNMP STP Bridge MIB traps
  callhome         Module notifications enable
  cfs              Module notifications enable
  config           Module notifications enable
  entity           Module notifications enable
  feature-control  Module notifications enable
  license          Module notifications enable
  link             Module notifications enable
  rf               Module notifications enable
  rmon             Module notifications enable
  snmp             Module notifications enable
  stpx             Enable SNMP STPX MIB traps
  upgrade          Module notifications enable
  zone             Module notifications enable

n5010(config)# snmp-server enable traps rmon ?
  <cr>
  fallingAlarm    Rmon falling alarm
  hcFallingAlarm  High capacity Rmon falling alarm
  hcRisingAlarm   High capacity Rmon rising alarm
  risingAlarm     Rmon rising alarm

n5010(config)# snmp-server enable traps rmon
n5010(config)#
n5010(config)# sh 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                 : delayed-link-state-change                    Yes
callhome             : event-notify                                 No
callhome             : smtp-send-fail                               No
cfs                  : state-change-notif                           No
cfs                  : merge-failure                                No
rf                   : redundancy_framework                         Yes
aaa                  : server-state-change                          No
license              : notify-license-expiry                        Yes
license              : notify-no-license-for-feature                Yes
license              : notify-licensefile-missing                   Yes
license              : notify-license-expiry-warning                Yes
zone                 : unsupp-mem                                   No
upgrade              : UpgradeOpNotifyOnCompletion                  No
upgrade              : UpgradeJobStatusNotify                       No
feature-control      : FeatureOpStatusChange                        No
rmon                 : risingAlarm                                  Yes
rmon                 : fallingAlarm                                 Yes
rmon                 : hcRisingAlarm                                Yes
rmon                 : hcFallingAlarm                               Yes
config               : ccmCLIRunningConfigChanged                   No
snmp                 : authentication                               No
bridge               : topologychange                               No
bridge               : newroot                                      No
stp                  : inconsistency                                No
stpx                 : loop-inconsistency                           No
stpx                 : root-inconsistency                           No
n5010(config)#
n5010(config)# sh run | in traps
n5010(config)#
n5010(config)# sh run ?
  <cr>
  >              Redirect it to a file
  >>             Redirect it to a file in append mode
  aaa            Display aaa configuration
  aclmgr         Show running config for aclmgr
  all            Current operating configuration with defaults
  am             Display am information
  arp            Display arp information
  callhome       Display callhome configuration
  cdp            Display cdp configuration
  cfs            Display cfs configurations
  diagnostic     Display diagnostic information
  diff           Show the difference between running and startup configuration
  exclude        Exclude running configuration of specified features
  icmpv6         Display icmpv6 information
  igmp           Display igmp information
  interface      Interface configuration
  ip             Display ip information
  ipqos          Show running config for ipqosmgr
  ipv6           Display ipv6 information
  l3vm           Display l3vm information
  license        Display licensing configuration
  lldp           Display lldp configuration
  monitor        Configure Ethernet SPAN sessions
  ntp            Show NTP information
  radius         Display radius configuration
  rpm            Display Route Policy Manager (RPM) information
  security       Display security configuration
  snmp           Display snmp configuration
  spanning-tree  Show spanning tree information
  track          Show the track running configuration
  vdc-all        Display config from all VDC
  vlan           Vlan commands
  vshd           Show running config for vshd
  |              Pipe command output to filter

n5010(config)# sh run snmp ?
  <cr>
  >      Redirect it to a file
  >>     Redirect it to a file in append mode
  all    Show running config with defaults
  |      Pipe command output to filter

n5010(config)# sh run snmp all ?
  <cr>
  >      Redirect it to a file
  >>     Redirect it to a file in append mode
  |      Pipe command output to filter

n5010(config)# sh run snmp all

!Command: show running-config snmp all
!Time: Thu May 26 09:45:37 2011

version 4.2(1)N2(1)
snmp-server aaa-user cache-timeout 3600
snmp-server protocol enable
no snmp-server globalEnforcePriv
snmp-server tcp-session auth
snmp-server user admin network-admin auth md5 0xaf2270df999b7075e1aeafcc425b23b0
 priv 0xaf2270df999b7075e1aeafcc425b23b0 localizedkey


n5010(config)#
n5010(config)#end
n5010#
n5010# copy run start
[########################################] 100%
n5010# sh snmp trap | in rmon
rmon                 : risingAlarm                                  Yes
rmon                 : fallingAlarm                                 Yes
rmon                 : hcRisingAlarm                                Yes
rmon                 : hcFallingAlarm                               Yes
n5010#
n5010# reload
WARNING: This command will reboot the system
Do you want to continue? (y/n) [n] y
Shutdown Ports..
--- output omitted ---



Nexus 5000 Switch
n5010 login: admin
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
n5010#
n5010# sh run | in traps
n5010#
n5010# sh snmp trap | in rmon
rmon                 : risingAlarm                                  Yes
rmon                 : fallingAlarm                                 Yes
rmon                 : hcRisingAlarm                                Yes
rmon                 : hcFallingAlarm                               Yes
n5010#

No comments:

Post a Comment