Re: IP Address & System Up Time MIB Variable

2007-07-03 Thread Dave Shield
On 03/07/07, Sharad Chandra <[EMAIL PROTECTED]> wrote:
> $ snmpwalk -v2c -c public localhost sysUpTime
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (95049246) 11 days,
> 0:01:32.46

Note that this is the length of time that the *SNMP agent* has been running,
not the time that the system as a whole has been up.

Dave

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IP Address & System Up Time MIB Variable

2007-07-03 Thread Sharad Chandra
Hi,

I am not sure about IP address, try this

$ snmpwalk -v2c -c public localhost sysUpTime
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (95049246) 11 days, 
0:01:32.46

$ snmpwalk -v2c -c public localhost ifTable
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: bfe0
IF-MIB::ifDescr.2 = STRING: plip0
.
.
.
Sharad Chandra


On Tuesday 03 July 2007 12:44 am, Uday Sorte wrote:
> Hi Guys,
>
>
> Are there any MIB variables as a part of standard MIB included with
> net-snmp for reading the system up time (uptime) and system ip address.
>
> or
>
> Is there any way I can read these parameters via SNMP without implementing
> my own MIB for these parameters.
>
> Thanks in Advance,
> Uday
>
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: IP Address & System Up Time MIB Variable

2007-07-02 Thread Dave Shield
On 02/07/07, Uday Sorte <[EMAIL PROTECTED]> wrote:
> Are there any MIB variables as a part of standard MIB included with net-snmp
> for reading the system up time (uptime)

HOST-RESOURCES-MIB::hrSystemUptime.0

> and system ip address.

   This is the index to the IP-MIB::ipAddressTable

Remember that a given system may well have more than one IP address.

Dave

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users