|
Snmp login with v1,v2c,
V3
There is 3 version of snmp :
V1 : you need a community to log in
:
<script> -C <community>
V2c : you need a community to log in
:
<script> -C <community>
-2
V3 : you need a login and password.
You can either encrypt data (AuthPriv) or not (AuthNoPriv). Authentication
is encrypted in any case : NoAuthNoPriv is not supported, and is
useless anyway : use snmpv1 in this case.
AuthNoPriv : Data is sent in clear,
login and password are encrypted.
With default protocol (md5) :
<script> -l login -x passwd
With sha protocol :
<script> -l login -x passwd -L
sha
AuthPriv : Data, login and password
are encrypted
With default protocol (md5,des) :
<script> -l login -x passwd -X
privpasswd
With md5 for logging and aes for encrypting :
<script> -l login -x passwd -X
privpasswd -L md5,aes
MIB-2
Interface :
1.3.6.1.2.1.2.2.1 : interface table
| OID |
Type |
Description |
| .1.X |
Int |
Index |
| .2.X |
string |
Description |
| .3.X |
?? |
Type : 6=ethernet,23=ppp, 24=loopback, 27=atm |
| .4.X |
|
MTU |
| .5.X |
|
Speed |
| .6.X |
|
Phys address |
| .7.X |
|
Administrative status (1=>'UP',2=>'DOWN',3=>'TESTING') |
| .8.X |
|
Operational status (cf admin status) |
| .9.X |
Counter |
Input Octets |
| .13.X |
Counter |
Output Octets |
Storages :
1.3.6.1.2.1.25.2.2.0 : system memory
1.3.6.1.2.1.25.2.3.1 : storage table
| OID |
Type |
Description |
| .1.X |
Int |
Index |
| .2.X |
OID |
Type : points on OID |
| .3.X |
string |
Description |
| .4.X |
Int |
Allocation unit |
| .5.X |
Int |
Size |
| .6.X |
Int |
Used |
| .7.X |
Counter32 |
Allocation failures |
CPU
1.3.6.1.2.1.25.3.3.1 : CPU table
| OID |
Type |
Description |
| .X.4 |
OID |
Type (hrProcessorFrwID) |
| .X.5 |
Int |
%used on 1 min (hrProcessorLoad) |
|