You can add Juniper Ethernet Switch entities using the Add Entity UI or using the cloud agent command line interface (
omcli) with the appropriate JSON files.
Step 1: Prepare Juniper Ethernet Switch for monitoring.
To enable monitoring, HTTP and SNMPv1/v2c/v3 are needed.
If SNMPv1/v2 is used, you must provide SNMP community string that has been used earlier in Juniper Switch configuration along with IP address of agent which will be used for Juniper Switch monitoring.
If SNMPv3 is used, in addition to SNMPv3 user, you must provide the auth method (SHA or MD5) and auth-password if auth is used, and priv method (only DES supported) and priv-password if priv used. You must configure everything manually in Juniper Switch. Read only access is sufficient for Juniper Switch monitoring.
Step 2: Decide how you want to add the Juniper Ethernet Switch.
You can add Juniper Ethernet Switch entities using one of two ways:
- Add them from UI
- Use the agent's
omcli add_entitycommand with the appropriate JSON files
Adding Entities from the UI
- From the Management Cloud main menu, select Administration, Discovery, and then Add Entity. The Add Entity page displays.
- Select the Juniper Ethernet Switch Entity Type.
- Enter the following UI properties.
Juniper Ethernet Switch UI Fields
- Entity Name: Name of your Juniper Ethernet Switch in Oracle Management Cloud.
- Dispatch URL: snmp://<Fully qualified host name or IP address of Juniper Ethernet Switch>
- SNMP Port: Port where Juniper Ethernet Switch listens for SNMP requests - 161 by default (optional)
- SNMP Timeout: Timeout for SNMP requests in seconds - 30 secs by default (optional)
- Cloud Agent: Cloud agent monitoring Juniper Ethernet Switch.
Choose the credential JSON file according to what SNMP credentials you'd like to use - SNMP v2c or SNMP v3.
- Community String: SNMPv2c community string.
- Username: SNMPv3 username.
- Authorization Password: Password used for authentication
- Authorization Protocol: Protocol used for authentication. (MD5 or SHA)
- Privacy Password: password used for encryption
See Add Entities from the Console for detailed instructions on using the Add Entity UI.
omcli and the Appropriate JSON Files
- Download and extract the required JSON file(s) from the master JSON zip file. See the table below for the specific JSON files you'll need.
- Edit the file(s) and specify the requisite properties shown below.
Juniper Ethernet Switch JSON Files and Properties
Credential File: omc_juniper_eth_switch_sample.json
- name: Your Juniper Switch entity name.
- displayName: Your Juniper Switch entity display name.
- timezoneRegion: Time zone of your entity. It is recommended that you use the long values IANA-maintained TZ database time zones. For example: America/New_York
- host_name: Under “value”, provide fully qualified host name or IP address of Juniper Switch
- omc_dispatch_url: Under “value”, following the string snmp://, provide the fully qualified hostname or IP address of Juniper Switch.
- omc_snmp_port: Under “value”, provide your SNMP port, default is 161.
- omc_snmp_timeout: Under “value”, provide the timeout for SNMP requests in seconds, 10 by default.
- omc_snmp_version: Under “value”, provide the SNMP version used to monitor Juniper Switch, 2c by default.
Use this credential file if you have configured your switch with SNMPv1/v2.
- COMMUNITY: Use this credential file if you have configured your switch with SNMPv1/v2.
Use this credential file if you have configured your switch with SNMPv3
- authUser: Use this credential file if you have configured your switch with SNMPv3
Under “value”, within the square brackets, provide provide SNMPv3 user name.
- authPwd: Under “value”, within the square brackets, provide the auth password or empty out the field.
- authProtocol: Under “value”, within the square brackets, provide the auth-method (SHA or MD5).
- privPwd: Under “value”, within the square brackets, provide the priv method password, if priv is used. Only the DES priv method is supported.
Do not remove the square brackets.
- Add the entity using
omcli add_entity agent DEFINITION_FILE [-credential_file CREDENTIAL_FILE [-encryption_method_gpg]]
- Verify the status of the newly added entity.
omcli status_entity agent DEFINITION_FILE
Step 3: (Optional but recommended) Set up alerts.
To enable lights-out monitoring, you can set up alert rules to generate alerts and send notifications if your entities have performance issues.See Set Up Alert Rules and Set Up Alert Thresholds and Notifications.