com.jpragma.snmp.agent
Class Mib2System

java.lang.Object
  extended by com.jpragma.snmp.agent.Mib2System

public class Mib2System
extends java.lang.Object

Describes RFC 1213 "System" SNMP variables.
OID value: 1.3.6.1.2.1.1

Author:
Isaac Levin

Constructor Summary
Mib2System()
           
 
Method Summary
 java.lang.String getSysContact()
          OID value: 1.3.6.1.2.1.1.4.
 java.lang.String getSysDescr()
          OID value: 1.3.6.1.2.1.1.1.
 java.lang.String getSysLocation()
          OID value: 1.3.6.1.2.1.1.6.
 java.lang.String getSysName()
          OID value: 1.3.6.1.2.1.1.5.
 java.lang.String getSysObjectId()
          OID value: 1.3.6.1.2.1.1.2.
 byte getSysServices()
          1.3.6.1.2.1.1.7 - sysServices.
 long getSysUpTime()
          OID value: 1.3.6.1.2.1.1.3.
 boolean isHasApplicationsService()
           
 boolean isHasDatalinkService()
           
 boolean isHasEndToEndService()
           
 boolean isHasInternetService()
           
 boolean isHasPhysicalService()
           
 void setHasApplicationsService(boolean hasApplicationsService)
           
 void setHasDatalinkService(boolean hasDatalinkService)
           
 void setHasEndToEndService(boolean hasEndToEndService)
           
 void setHasInternetService(boolean hasInternetService)
           
 void setHasPhysicalService(boolean hasPhysicalService)
           
 void setSysContact(java.lang.String sysContact)
           
 void setSysDescr(java.lang.String sysDescr)
           
 void setSysLocation(java.lang.String sysLocation)
           
 void setSysName(java.lang.String sysName)
           
 void setSysObjectId(java.lang.String sysObjectId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mib2System

public Mib2System()
Method Detail

getSysDescr

public java.lang.String getSysDescr()
OID value: 1.3.6.1.2.1.1.1.

Returns:
A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters.

setSysDescr

public void setSysDescr(java.lang.String sysDescr)
Parameters:
sysDescr - sets sysDescr
See Also:
getSysDescr()

getSysObjectId

public java.lang.String getSysObjectId()
OID value: 1.3.6.1.2.1.1.2.

Returns:
The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining `what kind of box' is being managed. For example, if vendor `JPragma, Inc.' was assigned the subtree 1.3.6.1.4.1.28824, it could assign the identifier 1.3.6.1.4.1.28824.1.1 to its `JPragma collaboration server'.

setSysObjectId

public void setSysObjectId(java.lang.String sysObjectId)
Parameters:
sysObjectId - sets sysObjectId
See Also:
getSysObjectId()

getSysUpTime

public long getSysUpTime()
OID value: 1.3.6.1.2.1.1.3.

Returns:
The time (in hundredth of a second) since the JVM was started.

getSysContact

public java.lang.String getSysContact()
OID value: 1.3.6.1.2.1.1.4.

Returns:
The textual identification of the contact person for this managed node, together with information on how to contact this person.

setSysContact

public void setSysContact(java.lang.String sysContact)
Parameters:
sysContact - sets sysContact
See Also:
getSysContact()

getSysName

public java.lang.String getSysName()
OID value: 1.3.6.1.2.1.1.5.

Returns:
An administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If not set, returns InetAddress.getLocalHost().getCanonicalHostName();

setSysName

public void setSysName(java.lang.String sysName)
Parameters:
sysName - sets sysName
See Also:
getSysName()

getSysLocation

public java.lang.String getSysLocation()
OID value: 1.3.6.1.2.1.1.6.

Returns:
The physical location of this node (e.g., `telephone closet, 3rd floor').

setSysLocation

public void setSysLocation(java.lang.String sysLocation)
Parameters:
sysLocation - sets sysLocation
See Also:
getSysLocation()

isHasApplicationsService

public boolean isHasApplicationsService()

setHasApplicationsService

public void setHasApplicationsService(boolean hasApplicationsService)

isHasDatalinkService

public boolean isHasDatalinkService()

setHasDatalinkService

public void setHasDatalinkService(boolean hasDatalinkService)

isHasEndToEndService

public boolean isHasEndToEndService()

setHasEndToEndService

public void setHasEndToEndService(boolean hasEndToEndService)

isHasInternetService

public boolean isHasInternetService()

setHasInternetService

public void setHasInternetService(boolean hasInternetService)

isHasPhysicalService

public boolean isHasPhysicalService()

setHasPhysicalService

public void setHasPhysicalService(boolean hasPhysicalService)

getSysServices

public byte getSysServices()
1.3.6.1.2.1.1.7 - sysServices.

Returns:
A value which indicates the set of services that this entity primarily offers. The value is a sum. This sum initially takes the value zero, Then, for each layer, L, in the range 1 through 7, that this node performs transactions for, 2 raised to (L - 1) is added to the sum. For example, a node which performs primarily routing functions would have a value of 4 (2^(3-1)). In contrast, a node which is a host offering application services would have a value of 72 (2^(4-1) + 2^(7-1)). Note that in the context of the Internet suite of protocols, values should be calculated accordingly: layer functionality 1 physical (e.g., repeaters) 2 datalink/subnetwork (e.g., bridges) 3 internet (e.g., IP gateways) 4 end-to-end (e.g., IP hosts) 7 applications (e.g., mail relays) For systems including OSI protocols, layers 5 and 6 may also be counted.