Use the add command to add rows to the rmonWbemSysTable and rmonWbemCredTable MIB tables.
The add command reads a configuration file containing details about the systems and credentials entries. This file uses an .ini style format where each section specifies a system or credentials entry. Because section names must be unique, the term _<n> is appended with <n> starting from 1. Each section contains variable and value assignments for the configurable attributes of the respective MIB table.
Example: A sample configuration file (rmonwatch.cf)
[System_1] SystemName = sys01-01 RowStatus = active ConfigSet = default Credentials = test MaxInstances = 100 [Credentials_1] Credentials = test RowStatus = active UserName = Administrator Password = IE7vse8zkBzurAwz588OvyTpc9v
The Password attribute of a credentials entry must be specified in encrypted form. Use the CA SystemEDGE se_enc utility to encrypt a password as follows:
se_enc -s -i in.txt -o out.txt
Put the password to be encrypted into in.txt (do not add any new lines). After calling the command, copy the encrypted password from out.txt and use it as the value for the Password attribute.
The add command uses the following syntax:
rmonwatch [options] add configfile
rmonwatch uses the following options:
Displays the program version number and exits.
Displays the rmonwatch help
(Optional) Specifies the CA SystemEDGE host running the RM AIM.
Default: localhost
(Optional) Specifies the CA SystemEDGE SNMP port.
Default: 161
(Optional) Specifies the SNMP read/write community string for SNMP version 1 and 2c.
Default: public
Example: Using the add command to add table rows defined in rmonwatch.cf
rmonwatch -c admin add rmonwatch.cf RMONWBEM AIM Watch Program, version 1.0.0 ### Processing Credentials entry 'test' E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.12.1.3.4.116.101.115.116 -s Administrator 1.3.6.1.4.1.546.16.22.12.1.3.4.116.101.115.116 Administrator E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.12.1.4.4.116.101.115.116 -s IE7vse8zkBzurAwz588OvyTpc9v= 1.3.6.1.4.1.546.16.22.12.1.4.4.116.101.115.116 IE7vse8zkBzurAwz588OvyTpc9v= E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.12.1.2.4.116.101.115.116 -i 1 1.3.6.1.4.1.546.16.22.12.1.2.4.116.101.115.116 1 ### Processing System entry ' sys01-01' E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.11.1.3.8.115.121.115.48.49.45.48.49 -s "default" 1.3.6.1.4.1.546.16.22.11.1.3.8.115.121.115.48.49.45.48.49 default E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.11.1.4.8.115.121.115.48.49.45.48.49 -s "test" 1.3.6.1.4.1.546.16.22.11.1.4.8.115.121.115.48.49.45.48.49 test E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.11.1.5.8.115.121.115.48.49.45.48.49 -i 1 1.3.6.1.4.1.546.16.22.11.1.5.8.115.121.115.48.49.45.48.49 1 E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.11.1.6.8.115.121.115.48.49.45.48.49 -i 100 1.3.6.1.4.1.546.16.22.11.1.6.8.115.121.115.48.49.45.48.49 100 E:\sysedge\bin\snmpset -h localhost -p 161 -v 1 -c admin -m 0 -t 5 -r 3 -o 1.3.6.1.4.1.546.16.22.11.1.2.8.115.121.115.48.49.45.48.49 -i 1 1.3.6.1.4.1.546.16.22.11.1.2.8.115.121.115.48.49.45.48.49 1
Copyright © 2013 CA. All rights reserved. |
|