EasyManua.ls Logo

Oce PRISMAproduction - Querying MIB Leaf Elements Using the Command Snmpget

Oce PRISMAproduction
344 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PRISMA SNMP Interface PRISMAproduction Network Functions
224 A29247-X2-X-8-7670
7.2.1 Querying MIB Leaf Elements Using the Command snmpget
The command syntax is as follows:
snmpget [ options... ] entity_addr community variable [ variable ]
...
The requested MIB element is to be identified by the NameForm or its object identifier. The
parameter "community" indicates an SNMP community that has been set up on the server.
The SNMP server is the system on which the OPS PRISMA is installed. There are also a
lot of options, but normally no option is needed.
For more information on the syntax see the help text, when typing snmpget without any
parameters or type
man snmpget
To find out the value of the object "svrProductName" on the local host, for example, enter
the following Caldera Linux command at the terminal. "svrProductName" is the identifying
NameForm of the object.
! snmpget localhost public svrProductName.0
or
! snmpget localhost public .1.3.6.1.4.1.1552.102.104.1.1.1.1.0
The following output is displayed on the terminal:
" enterprises.oce.prisma.prismaProduction.psmib.server.serverGen-
eral.svrProductName.0 = "OPS PRISMA"
localhost is used as the entity_addr in the above command; the name of the com-
munity is public.
As can be seen from the Object Identifier Tree (see figure), the NumberForm of the object
identifier of "svrProductName" has the value
.1.3.6.1.4.1.1552.102.104.1.1.1.1 .
An "0" is appended to this object identifier when the snmpget command is called. This
specifies the first instance of the "svrProductName" object ("variable").
The snmpget command supports the NameForm as well as the NumberForm of object
identifiers. The numbers of the main ISO standard object identifier nodes are translated into
their name forms (e.g. node .1.3.6.1.4.1 has the ISO name enterprises). Other
numbers are translated according the MIB definition. For this reason, the object is desig-
nated by a - permissible - combination of the name and number forms of its object identifier:
"prisma.104.1.1.1.1.0".
Entering snmpget with the option "-On" displays the NumberForm of the object identifier
instead of the NameForm.

Table of Contents

Other manuals for Oce PRISMAproduction