Monday, August 21, 2017

.::: How To Enable SNMP & SNMPTrap on Alcatel Lucent/Nokia Router(7750, 7710, 7705,7750) :::.

A. Enable SNMP Router Alcatel Lucent
1. Check snmpwalk router
# snmpwalk -v2c -c teguht 10.10.10.10 sysDescr
# snmpwalk -v2c -c teguht 10.10.10.10 1.3.6.1.2.1.1

[root@TeguhLab ~]# snmpwalk -v2c -c teguht 10.10.10.10 sysDescr
Timeout: No Response from 10.10.10.10
[root@TeguhLab ~]# snmpwalk -v2c -c teguht 10.10.10.10 1.3.6.1.2.1.1
Timeout: No Response from 10.10.10.10
[root@TeguhLab ~]#

2. Check configurasi SNMP router
# show system information
# show system information | match SNMP
# show system security snmp community

*A:TeguhRouter# show system information | match SNMP
SNMP Port              : 161
SNMP Engine ID         : 0000197f000000233e909999
SNMP Engine Boots      : 414
SNMP Max Message Size  : 9216
SNMP Admin State       : Disabled
SNMP Oper State        : Disabled
SNMP Index Boot Status : Persistent
SNMP Sync State        : N/A
*A:TeguhRouter#

*A:TeguhRouter# show system security snmp community

==============================================================================
Communities
==============================================================================
community           access  view                version   group name
------------------------------------------------------------------------------
cli-li-readwrite    n/a     li-view             v2c       cli-li-readwrite
cli-readonly        r       iso                 v2c       cli-readonly
cli-readwrite       rw      iso                 v2c       cli-readwrite
public              r       no-security         v1 v2c    snmp-ro
publictrap98        n/a     n/a                 v2c       snmp-trap
------------------------------------------------------------------------------
No. of Communities: 7
==============================================================================
*A:TeguhRouter#

3. configuration snmp community
*A:TeguhRouter# configure system security snmp
*A:TeguhRouter>config>system>security>snmp# community teguht rwa version v2c
*A:TeguhRouter>config>system>security>snmp# info
----------------------------------------------
                community "Lla.RtAyRW2" hash2 r version both
                community "ZqKPmovL8ik" hash2 rwa version v2c
----------------------------------------------
*A:TeguhRouter>config>system>security>snmp#
*A:TeguhRouter>config>system>security>snmp# exit all
*A:TeguhRouter#

4. Enable snmp community
*A:TeguhRouter# configure system snmp no shutdown
*A:TeguhRouter# show system information | match SNMP
SNMP Port              : 161
SNMP Engine ID         : 0000197f000000233e909999
SNMP Engine Boots      : 414
SNMP Max Message Size  : 9216
SNMP Admin State       : Enabled
SNMP Oper State        : Enabled
SNMP Index Boot Status : Persistent
SNMP Sync State        : N/A
*A:TeguhRouter#

5. check snmp community
# show system information
# show system information | match SNMP
# show system security snmp community
*A:TeguhRouter# show system security snmp community

==============================================================================
Communities
==============================================================================
community           access  view                version   group name
------------------------------------------------------------------------------
cli-li-readwrite    n/a     li-view             v2c       cli-li-readwrite
cli-readonly        r       iso                 v2c       cli-readonly
cli-readwrite       rw      iso                 v2c       cli-readwrite
public              r       no-security         v1 v2c    snmp-ro
publictrap98        n/a     n/a                 v2c       snmp-trap
teguht              rwa     iso                 v2c       snmp-rwa
------------------------------------------------------------------------------
No. of Communities: 8
==============================================================================
*A:TeguhRouter#

6. snmpwalk from server NMS or other snmp tool
# snmpwalk -v2c -c teguht 10.10.10.10 sysDescr
# snmpwalk -v2c -c teguht 10.10.10.10 1.3.6.1.2.1.1

[root@TeguhLab data]# snmpwalk -v2c -c teguht 10.10.10.10 sysDescr
SNMPv2-MIB::sysDescr.0 = STRING: TiMOS-C-14.0.R7 cpm/hops64 Nokia 7750 SR Copyright (c) 2000-2017 Nokia.
All rights reserved. All use subject to applicable license agreements.
Built on Thu Jan 12 12:38:16 PST 2017 by builder in /rel14.0/b1/R7/panos/main

[root@TeguhLab data]# snmpwalk -v2c -c teguht 10.10.10.10 1.3.6.1.2.1.1
SNMPv2-MIB::sysDescr.0 = STRING: TiMOS-C-14.0.R7 cpm/hops64 Nokia 7750 SR Copyright (c) 2000-2017 Nokia.
All rights reserved. All use subject to applicable license agreements.
Built on Thu Jan 12 12:38:16 PST 2017 by builder in /rel14.0/b1/R7/panos/main

SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.6527.1.3.4
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (25653168) 2 days, 23:15:31.68
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: TeguhRouter
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 79
[root@TeguhLab data]# 


B. Enable SNMPTrap Router Alcatel Lucent

1. Configure snmptrap
# configure log snmp-trap-group 98
# trap-target "nms-all" address 10.10.10.100 snmpv2c notify-community "public"
# show log snmp-trap-group


2. Sample Output
*A:TeguhRouter# configure log snmp-trap-group 98
*A:TeguhRouter>config>log>snmp-trap-group# trap-target "nms-all" address 10.10.10.100 snmpv2c notify-community "public"
*A:TeguhRouter>config>log>snmp-trap-group# info
----------------------------------------------
            description "NMS"
            trap-target "NMS1" address 10.10.10.30 snmpv2c notify-community "publictrap98"
            trap-target "nms-all" address 10.10.10.100 snmpv2c notify-community "public"
----------------------------------------------
*A:TeguhRouter>config>log>snmp-trap-group# exit
*A:TeguhRouter#

*A:TeguhRouter# show log snmp-trap-group

===============================================================================
SNMP Trap Groups
===============================================================================
id        name
  port      address
-------------------------------------------------------------------------------
98        NMS1
  162       10.10.10.30
98        nms-all
  162       10.10.10.100
===============================================================================
*A:TeguhRouter#  

 
3. Trapviewer


No comments:

Post a Comment

Popular Posts