Download SunNet Manager 2.2.3 Programmer`s Guide

Transcript
14
This command creates an executable application in the file
Application/na.sample. Run the application:
host% Application/na.sample sysinfo
sysname = SunOS
release = 5.1
machine = sun4m
serialnumber = 1918901280
host% Application/na.sample date
weekday = Friday
month = March
day = 12
year = 1993
host%
14.2 Organize the Information and Write a Schema File
The information provided falls into two groups: a summary of memory buffer
statistics and a detailed report of statistics. From this are defined the two
groups sysinfo and date.
Within these groups attributes are defined, one for each piece of information
reported. Note data types of the data and assign types from Table 11-1 on
page 11-3. Name each data field (using no more than 64 characters) and write a
short description of each field (using no more than 1024 characters). Note any
error messages in the standalone application code.
The following is the agent schema file, sample.schema, written for this
example.
Converting an Existing Application to an Agent
14-7