[cisco] Re: mibs for cisco
Cristian Bica <[email protected]> Wed, 13 Aug 2003 18:11:45 +0300
| Newsgroups | gmane.org.user-groups.rlug.general,gmane.org.user-groups.rlug.cisco |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
so ... dupa teoria mea ....
cd /usr/local/share/snmp/mibs/
root@bcd:/usr/local/share/snmp/mibs# egrep -i "memory.*free" *
CISCO-5800-HEALTH-MON-MIB.my:-- o # of IOmem used (IO-mem
ciscoMemoryPoolFree from CISCO-MEMORY-POOL-MIB.my)
CISCO-5800-HEALTH-MON-MIB.my: ciscoMemoryPoolFree of io-mem type on
the router shelf."
CISCO-MEMORY-POOL-MIB.my: ciscoMemoryPoolFree
Gauge32,
CISCO-MEMORY-POOL-MIB.my: ciscoMemoryPoolLargestFree
Gauge32
CISCO-MEMORY-POOL-MIB.my:ciscoMemoryPoolFree OBJECT-TYPE
CISCO-MEMORY-POOL-MIB.my: ciscoMemoryPoolFree is the total amount
of memory
CISCO-MEMORY-POOL-MIB.my:ciscoMemoryPoolLargestFree OBJECT-TYPE
CISCO-MEMORY-POOL-MIB.my: ciscoMemoryPoolFree,
CISCO-MEMORY-POOL-MIB.my: ciscoMemoryPoolLargestFree
CISCO-PROCESS-MIB.my: memory that may have been returned. The
sum of freed
CISCO-PROCESS-MIB.my: memory is provided by
cpmProcExtMemFreed. This object
CISCO-PROCESS-MIB.my: memory that may have been returned. The
sum of freed
CISCO-PROCESS-MIB.my: memory is provided by
cpmProcExtMemFreedRev. This object
CISCO-SAA-APM-MIB.my: object, ciscoMemoryPoolFree.
WOW ... same old damn CISCO-PROCESS-MIB.my .... :)
de example ....
cpmProcExtMemAllocated OBJECT-TYPE
SYNTAX Gauge32
UNITS "bytes"
MAX-ACCESS read-only
STATUS deprecated
DESCRIPTION
"The sum of all the dynamically allocated memory that
this process has received from the system. This includes
memory that may have been returned. The sum of freed
memory is provided by cpmProcExtMemFreed. This object
is deprecated by cpmProcExtMemAllocatedRev."
::= { cpmProcessExtEntry 1 }
si porma ....
snmptranslate -On CISCO-PROCESS-MIB::cpmProcExtMemAllocated
.1.3.6.1.4.1.9.9.109.1.2.2.1.1
wow ... isn't that cool? :P
====================
sau varianta numaru 2 ....
our good ... old ... friend google ....
cauta cisco snmp memory utilization oid
al 5-lea link (e un reply pe o lista)
o sa gaseste o "balarie" cu 1{dot}.... la un memory usage pt un
PIX-FIREWALL ..
faci asa ..
# echo
"1{dot}3{dot}6{dot}1{dot}4{dot}1{dot}9{dot}9{dot}48{dot}1{dot}1{dot}1{dot}5{dot}1"
|sed -e "s/{dot}/\./g"
1.3.6.1.4.1.9.9.48.1.1.1.5.1
# snmptranslate 1.3.6.1.4.1.9.9.48.1.1.1.5.1
CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolUsed.1
so ... again ... have fun :)
On Wednesday 13 August 2003 17:51, you wrote:
> ok super merci, dar de ex cum rezolvi urm problema: monitorizarea
> memoriei utilizate/libere.
> Eu am zis: ma duc la cisco la mib dau search "memory" si el zice 150
> rezultate, alta metoda???
>
> C
>
> On Wed, 13 Aug 2003 17:28:54 +0300, "Cristian Bica" <[email protected]>
said:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> > io fac in felu urmator ...
> > copiez toate miburile de la cisco in /usr/local/share/snmp/mibs/
> > (sau unde ai tu miburile).
> > dau export MIBS=ALL
> > fac un snmpwalk pe orice .... o sa imi dea 3 carutze de erori ....
> > sterg toate XXX.my care imi dau erori din /whatever../mibs/ .. :)
> > (si ma rog sa nu imi trebuieasca nimic din ceea ce am sters :))
> > ....
> > porma ma uit prin *.my alea(grep-uri ... etc...) si gasesc de ex
> > ... in CISCO-PROCESS-MIB.my o variabila ... cpmCPUTotal5sec ....
> > si dau
> > snmptranslate CISCO-PROCESS-MIB::cpmCPUTotal5sec -On
> >
> > care imi zice frumos (da' nu foarte rapid pentru ca tre sa se uite
> > in toate miburile de pe sistemu local :) ) ... oid-ul
> >
> > .1.3.6.1.4.1.9.9.109.1.1.1.1.3
> > Have fun :)
> >
> > On Wednesday 13 August 2003 17:13, you wrote:
> > > aha merci fost bun, acum cu ajutorul acesta am vazut de la cisco
> > > ca e busyPer si e obsolete de catre cpmCPUTotal5sec
> > > (1.3.6.1.4.1.9.9.109.1.1.1.1.3) care si el e deprecated de catre
> > > cpmCPUTotal5secRev (1.3.6.1.4.1.9.9.109.1.1.1.1.6), care la un
> > > snmpwalk bine :)))
> > >
> > > dar cu bubu.my tot nu stiu ce sa fac :))
> > >
> > > C
> > >
> > > On Wed, 13 Aug 2003 16:49:25 +0300, "Cristian Bica"
> > > <[email protected]>
> >
> > said:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > >
> > > >
> > > > .1.3.6.1.4.1.9.2.1.56 - e cpuload 5 sec avg
> > > > .1.3.6.1.4.1.9.2.1.57 - e cpuload 1 min avg
> > > > .1.3.6.1.4.1.9.2.1.58 - e cpuload 5 min avg
> > > >
> > > > parca :)
> > > >
> > > > On Wednesday 13 August 2003 16:40, you wrote:
> > > > > scuze de intrebare idioata: ce fac cu fisierul bubu.my???
> > > > >
> > > > > eu vreau oidul ca sa il pun in bbstatus sa monitorizez
> > > > > cpu_load si nu ma prind cum obtin :PPP
> > > > >
> > > > > C
> > > > >
> > > > > On Wed, 13 Aug 2003 15:43:38 +0300, "Cristian Bica"
> > > > > <[email protected]>
> > > >
> > > > said:
> > > > > > =2D----BEGIN PGP SIGNED MESSAGE-----
> > > > > > Hash: SHA1
> > > > > >
> > > > > > On Wednesday 13 August 2003 14:44, you wrote:
> > > > > > > cum gasesc de ex care este mibul pentru a monitoriza cpu
> > > > > > > pe un router/sw, pentru vlanuri, pentru interfete
> > > > > > >
> > > > > > > la cisco pe site am gasit
> > > > > > > http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.s
> > > > > > >html dar nu am gasit 3725
> > > > > > >
> > > > > > > C
> > > > > >
> > > > > > print mib-urile alea de la cisco e un fisier
> > > > > > CISCO-PROCESS-MIB.my ...=20
> > > > > >
> > > > > > =2D --=20
> > > > > > Cristian Bica
> > > > > > =2D -------------
> > > > > > Take interest in your future.It's where you're
> > > > > > going to spend the rest of your life."
> > > > > > =2D----BEGIN PGP SIGNATURE-----
> > > > > > Version: GnuPG v1.2.2 (GNU/Linux)
> > > > > >
> > > > > > iD8DBQE/OjJ6K+0nZmbYMUERAp5GAJ4z1g2EuGcT3LCQBu9492bYi0wj/wC
> > > > > >eIsF k VD7ApaFLr7+wz4CE/fDsZKY=3D
> > > > > > =3DHQ5n
> > > > > > =2D----END PGP SIGNATURE-----
> > > >
> > > > - --
> > > >
> > > > Cristian Bica -- Network Engineer
> > > > Romania Data Systems NOC in Bucharest
> > > > T:+402 1 3010888 F: +402 1 301 0892
> > > > www.rdsnet.ro [email protected]
> > > > - -------------------------------------
> > > > Privileged/Confidential Information may be contained in this
> > > > message. If you are not the addressee indicated in this message
> > > > (or responsible for delivery of the message to such person),
> > > > you may not copy or deliver this message to anyone. In such a
> > > > case, you should destroy this message and kindly notify the
> > > > sender by reply e-mail.
> > > > -----BEGIN PGP SIGNATURE-----
> > > > Version: GnuPG v1.2.2 (GNU/Linux)
> > > >
> > > > iD8DBQE/OkHlK+0nZmbYMUERAlq7AJ9td/DQnu1njmNf2l8dZn5o7cgDhgCfRS2
> > > >v yvouBDJ/YH1Sc2Y8M0vS5V0=
> > > > =WnL2
> > > > -----END PGP SIGNATURE-----
> >
> > - --
> >
> > Cristian Bica -- Network Engineer
> > Romania Data Systems NOC in Bucharest
> > T:+402 1 3010888 F: +402 1 301 0892
> > www.rdsnet.ro [email protected]
> > - -------------------------------------
> > Privileged/Confidential Information may be contained in this
> > message. If you are not the addressee indicated in this message (or
> > responsible for delivery of the message to such person), you may
> > not copy or deliver this message to anyone. In such a case, you
> > should destroy this message and kindly notify the sender by reply
> > e-mail.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.2 (GNU/Linux)
> >
> > iD8DBQE/OksmK+0nZmbYMUERApOjAKC3eJrjT7MgckE2esfDDzUThlxAzQCfcnYX
> > EFLMLARtH0MeXyBoX77aw6M=
> > =NQzQ
> > -----END PGP SIGNATURE-----
- --
Cristian Bica -- Network Engineer
Romania Data Systems NOC in Bucharest
T:+402 1 3010888 F: +402 1 301 0892
www.rdsnet.ro [email protected]
- -------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver
this message to anyone. In such a case, you should destroy this message
and kindly notify the sender by reply e-mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/OlUxK+0nZmbYMUERAlMRAKDdXSm3SXVUqJnZqRtFbkhCOkbf3gCfdrju
1CiDICVjpgqW2pzBPJHlrx0=
=7XPF
-----END PGP SIGNATURE-----