Page 2 of 3

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 12:34 pm
by Mike
hi,

Output of SNMPWALK :

snmpwalk -H 10.187.210.13 -c wipro -v2c mib-2.interfaces Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1|yes|true|0|no|false)
excludeRequested (1|yes|true|0|no|false)
printStatistics (1|yes|true|0|no|false)
dontCheckOrdering (1|yes|true|0|no|false)
timeResults (1|yes|true|0|no|false)
In snmp.conf and snmp.local.conf:
alias NAME TRANSPORT_DEFINITION
doDebugging (1|0)
debugTokens token[,token...]
logTimestamp (1|yes|true|0|no|false)
mibdirs [mib-dirs|+mib-dirs|-mib-dirs]
mibs [mib-tokens|+mib-tokens]
mibfile mibfile-to-read
showMibErrors (1|yes|true|0|no|false)
commentToEOL (1|yes|true|0|no|false)
strictCommentTerm (1|yes|true|0|no|false)
mibAllowUnderline (1|yes|true|0|no|false)
mibWarningLevel integerValue
mibReplaceWithLatest (1|yes|true|0|no|false)
printNumericEnums (1|yes|true|0|no|false)
printNumericOids (1|yes|true|0|no|false)
escapeQuotes (1|yes|true|0|no|false)
dontBreakdownOids (1|yes|true|0|no|false)
quickPrinting (1|yes|true|0|no|false)
numericTimeticks (1|yes|true|0|no|false)
oidOutputFormat integerValue
suffixPrinting integerValue
extendedIndex (1|yes|true|0|no|false)
printHexText (1|yes|true|0|no|false)
printValueOnly (1|yes|true|0|no|false)
dontPrintUnits (1|yes|true|0|no|false)
hexOutputLength integerValue
dumpPacket (1|yes|true|0|no|false)
reverseEncodeBER (1|yes|true|0|no|false)
defaultPort integerValue
defCommunity string
noTokenWarnings (1|yes|true|0|no|false)
noRangeCheck (1|yes|true|0|no|false)
persistentDir string
tempFilePattern string
noDisplayHint (1|yes|true|0|no|false)
16bitIDs (1|yes|true|0|no|false)
clientaddr string
serverSendBuf integerValue
serverRecvBuf integerValue
clientSendBuf integerValue
clientRecvBuf integerValue
noPersistentLoad (1|yes|true|0|no|false)
noPersistentSave (1|yes|true|0|no|false)
noContextEngineIDDiscovery (1|yes|true|0|no|false)
defDomain application domain
defTarget application domain target
defSecurityModel string
defSecurityName string
defContext string
defPassphrase string
defAuthPassphrase string
defPrivPassphrase string
defAuthMasterKey string
defPrivMasterKey string
defAuthLocalizedKey string
defPrivLocalizedKey string
defVersion 1|2c|3
defAuthType MD5|SHA
defPrivType DES|AES
defSecurityLevel noAuthNoPriv|authNoPriv|authPriv
In snmpapp.conf and snmpapp.local.conf:
defDomain application domain
defTarget application domain target
engineID string
engineIDType num
engineIDNic string

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 1:04 pm
by abrist
I don't see an ifoperstatus name in that list. Check with the vendor, if the oid is non-standard you will need to get the mib files or at least a reference sheet for the device.

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 1:21 pm
by Mike
Hello,

It's a cisco device , Still i need to take the MIB's ?

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 1:34 pm
by abrist
Maybe, the walk should have returned many more lines than that. Do you have reference documentation for the device?

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 1:38 pm
by Mike
hello ,

Can you send me the exact command to run for SNMPWALK and SNMPGET? till that time i';; send you the o/p of both the command.


I have mailed the client to send the details.

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 1:55 pm
by abrist
Has this device been locked down?
Do a full walk:

Code: Select all

snmpwalk -v2c -c wipro 10.187.210.13 
snmpwalk -v1 -c wipro 10.187.210.13 
Then limit it for the ports:

Code: Select all

snmpwalk -v2c -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8
snmpwalk -v1 -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8
No do a get on that OID:

Code: Select all

snmpget -v1 -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 2:12 pm
by Mike
Hello,
There are two cisco switches which we are monitoring
one is Core switch and second is access switch

10.187.210.3 - cisco 6513 - Core switch

10.187.210.13 - cisco 3560 - access switch



Here's the output :


snmpwalk -v2c -c wipro 10.187.210.13
SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree)

----------------------------------------------------------------------------------------------------------------

snmpwalk -v1 -c wipro 10.187.210.13
End of MIB

--------------------------------------------------------------------
snmpwalk -v2c -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
IF-MIB::ifOperStatus = No more variables left in this MIB View (It is past the end of the MIB tree)

------------------------------------------------------------------------------------------------------------------------
snmpwalk -v1 -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
End of MIB

--------------------------------------------------------------------------------------------------------------------------
snmpget -v1 -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifOperStatu

Re: Switch Monitoring

Posted: Wed Jul 24, 2013 4:11 pm
by abrist
Well, you may have mib collisions or incomplete mibs. Run the following translate and post the results:

Code: Select all

 snmptranslate -m ALL ifOperStatus

Re: Switch Monitoring

Posted: Thu Jul 25, 2013 12:42 pm
by Mike
Hello,


Here is the output :



# snmptranslate -m ALL ifOperStatus
ifOperStatus: Unknown Object Identifier (Sub-id not found: (top) -> ifOperStatus)

Re: Switch Monitoring

Posted: Thu Jul 25, 2013 2:08 pm
by abrist
Apologies, try:

Code: Select all

snmptranslate -mALL 1.3.6.1.2.1.2.2.1.8