On 26 January 2011 12:23, Egor <[email protected]> wrote:
> There are 2 data type: scalar and table. So, scalar is simple some variable,
> table can contain another scalars.
Yes.
> Is there some important difference(access speed, allocated memory) or it's
> just made to improve logical understanding of structure?
Whether you use scalars or tables depends on what information you are
trying to report.
The way to think about this is to mentally ask yourself the question
"What is the value of X" (where X is the thing you're trying to report
or manage).
If there can only ever be one answer
("How long has this computer been turned on?")
then you should use a scalar
If there could be multiple answers
("What programs are running on this computer?")
then you should use a table
> Can I don't use Table ever, just make good struct using only scalars ?
No - there are certain circumstances in which you *should* use a table.
For example, you couldn't sensible use scalar objects to report information
relating to the programs running on the computer. You'd have to use a
table for that.
But there's no point in having a table for the uptime. or the name of the
computer. There's only one such value, so it would use a scalar.
OK?
Dave
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders