public class SNMPConfFileCreate extends Object implements SNMPPluginConstants
| Modifier and Type | Field and Description |
|---|---|
static String |
UTF_8 |
DEFAULT_SNMP_ACCESS_MODE_READ_ONLY, DEFAULT_SNMP_ACCESS_MODE_READ_WRITE, DEFAULT_SNMP_AUTH_VALUE_AUTHNOPRIV, DEFAULT_SNMP_AUTH_VALUE_AUTHPRIV, DEFAULT_SNMP_AUTH_VALUE_NOAUTHNOPRIV, DEFAULT_SNMP_AUTHENTICATION_AUTHNOPRIV, DEFAULT_SNMP_AUTHENTICATION_AUTHPRIV, DEFAULT_SNMP_AUTHENTICATION_NOAUTHNOPRIV, DEFAULT_SNMP_COMMUNITY_BASED, DEFAULT_SNMP_TRAP_DISABLE, DEFAULT_SNMP_TRAP_ENABLE, DEFAULT_SNMP_TRAP_VALUE_VERSION_1, DEFAULT_SNMP_TRAP_VALUE_VERSION_2C, DEFAULT_SNMP_TRAP_VERSION_1, DEFAULT_SNMP_TRAP_VERSION_2C, DEFAULT_SNMP_USER_BASED_COMM, FIELD_ACCESS_MODE_USERCOMMUNITY, FIELD_ADMIN_CONTACT, FIELD_AUTH_MODE_SNMP_REQUEST, FIELD_AUTH_MODE_USERCOMMUNITY, FIELD_AUTH_PASS_USERCOMMUNITY, FIELD_ENABLE_TRAPS, FIELD_PRIV_KEY_PASS_USERCOMMUNITY, FIELD_READ_ONLY_COMMUNITY, FIELD_READ_WRITE_COMMUNITY, FIELD_SNMP_CONFIGURE, FIELD_SNMP_PORT, FIELD_SNMP_TRAP_COMMUNITY, FIELD_SNMP_TRAP_PORT, FIELD_SYS_LOC, FIELD_SYS_RECEIVE_TRAPS, FIELD_TRAP_VERSION, FIELD_USER_NAME_USERCOMMUNITY| Constructor and Description |
|---|
SNMPConfFileCreate() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureSNMP(String arhome,
File armonitorFile,
int snmp_cfg_value,
int snmp_port_int,
String arserverName) |
void |
createArsnmpdConfiguration(File arsnmpdfile,
File armonitor,
String sys_loc_str,
String admin_contact_str,
int snmp_port_int,
String auth_mode_req_str,
String read_only_community_str,
String read_write_community_str,
String user_name_usercomm_str,
String access_mode_usercomm_str,
String auth_mode_usercomm_str,
String auth_pass_usercomm_str,
String priv_key_pass_str,
String enable_traps_str,
String trap_version_str,
String sys_receive_traps_str,
String snmp_trap_community_str,
int snmp_trap_port_int) |
void |
createEntrySNMP(File arsnmpdFile,
File armonitorFile,
File snmpdFile,
String arsnmpdstr,
String arserverName,
com.bmc.arsys.api.Entry entry) |
static boolean |
createFile(File file) |
void |
createSNMPDConfiguration(File snmpdfile,
String auth_mode_req_str,
String user_name_usercomm_str,
String auth_mode_usercomm_str,
String auth_pass_usercomm_str,
String priv_key_pass_str) |
boolean |
readArMonitorforConfig(File armonitorFile) |
String |
readArMonitorforPort(File armonitorFile) |
Properties |
readArSNMPD(File arsnmpdFile) |
List<String> |
readLines(File file,
String charsetName) |
static void |
writeLines(List<String> lines,
File outputFile) |
public static final String UTF_8
public void createArsnmpdConfiguration(File arsnmpdfile, File armonitor, String sys_loc_str, String admin_contact_str, int snmp_port_int, String auth_mode_req_str, String read_only_community_str, String read_write_community_str, String user_name_usercomm_str, String access_mode_usercomm_str, String auth_mode_usercomm_str, String auth_pass_usercomm_str, String priv_key_pass_str, String enable_traps_str, String trap_version_str, String sys_receive_traps_str, String snmp_trap_community_str, int snmp_trap_port_int) throws Exception
Exceptionpublic void createEntrySNMP(File arsnmpdFile, File armonitorFile, File snmpdFile, String arsnmpdstr, String arserverName, com.bmc.arsys.api.Entry entry) throws com.bmc.arsys.api.ARException
com.bmc.arsys.api.ARExceptionpublic void createSNMPDConfiguration(File snmpdfile, String auth_mode_req_str, String user_name_usercomm_str, String auth_mode_usercomm_str, String auth_pass_usercomm_str, String priv_key_pass_str) throws Exception
Exceptionpublic void configureSNMP(String arhome, File armonitorFile, int snmp_cfg_value, int snmp_port_int, String arserverName) throws Exception
Exceptionpublic String readArMonitorforPort(File armonitorFile) throws Exception
Exceptionpublic boolean readArMonitorforConfig(File armonitorFile) throws Exception
Exceptionpublic Properties readArSNMPD(File arsnmpdFile) throws Exception
Exceptionpublic static void writeLines(List<String> lines, File outputFile) throws IOException
IOExceptionpublic static boolean createFile(File file) throws IOException
IOExceptionpublic List<String> readLines(File file, String charsetName) throws IOException
IOException? Copyright 2013 BMC Software, Inc.