The OS version is not listed in the Node Details for Juniper (JUNOS) devices. System OID of 126.96.36.199.4.1.2636.
Juniper OS Poller and general walk through for creating a new poller using Device Studio.
When using this poller, it will overwrite the standard Orion polling for the node details section with what is created in the Device Studio.
** Note ** Please make sure that you have the latest MIB database before following the steps below.
Create the Poller:
- From the Web Console, go to: Settings > Manage Pollers
- Click Create New Poller.
- Define the general parameters:
For the JUNOS poller, I want to use Node Details
Name the poller
Select a test node
Set Tags for searching
Give a Description
- Click Next on the bottom right.
We are going to concentrate on the two Primary fields needed to get the OS and define the DataSource.
- Start by adding the system OID.
a. Click Define Data Source
b. Click Cancel if the Use a Constant Value pops up
c. Click Browse OIDs
The OID for this for an RFC Compliant Device is 188.8.131.52.184.108.40.206
d. Put it in the Search bar, press the Magnifying glass to start the search.
- Select the box next to the sysobjectID(2) and the results will appear on the right if it is supported by the device.
- Click Submit.
- Go back to the Data Source for SysobjectID.
- Mark the radio button for the SysobjectID and click, “Yes, the data source is reasonable” to add to the poller.
Now the system Object for the device is displayed to the right and the Datasource is listed:
For the software version:
The OID for 220.127.116.11.18.104.22.168.3.1.2 will pull a table that includes the JUNOS version. However, you cannot use tables for this feature.
Any other OIDs (public or private) where ot found where the software version was able to be queried other than the description. There can be a lot of details in the description and there is already a field for that. The only needed detail is the version.
In order to do this:
- Query the sysDescr OID 22.214.171.124.126.96.36.199.
- Use a Regular Expression to pull just the JUNOS.
- Use the same approach as above to define the data source but use 188.8.131.52.184.108.40.206.
You will get something like this as a return:
If Say yes this is reasonable I will get this:
This may not be reasonable for your needs and you just need the JUNOS 12.3.3R6.6.
- Go back to the Data Source for software version.
- Select the SysDescr line and click Add Calculated Value.
- Select the function of RegEx.
This will bring up:
Note the two Arrows
The RegEx formula is encapsulated in the (,). Inside the (,) the coma separates the Input and the Regular Expression.
- Select the in by placing the cursor to the left of the coma in the parentheses and click the select input.
Not all devices are going to have the same JUNOS versions, but it will show that they have the same format in the description.
- To work around many different combinations of letters and number and a dot(.) I came up with this JUNOS [a-z A-Z 0-9 . ]* so this will match and sequence of number and letters + the dot that follows JUNOS.
And will get a return of:
- Add this and see the result:
- Move to Discovery settings (Click Next).
- If you do not want this to be used in devices where Juniper devices are discovered as they are not unique devices (Provided all OIDS match), add a node as a test and it will not automatically pick up the Poller assignment.
- Click Next and Submit.
- Once this is created, go back and add more values and the page will look like the following:
- First the ones that can be derived straight from the RFC 1213 MIB
- Contact - 220.127.116.11.18.104.22.168
- Location - 22.214.171.124.126.96.36.199
- SysName- 188.8.131.52.184.108.40.206
- Description- 220.127.116.11.18.104.22.168
- Machine type - I am using the Juniper OID of 22.214.171.124.4.1.26126.96.36.199
- Vendor - Since this is based on Juniper already, one can directly add the "Juniper Networks" or parse it out of the Description like we did with Software Version earlier. In this case the Vendor will always be Juniper
There, now it should be all completed with the exception of Software image and I found no information in this.
Assigning the Poller to a Node
- Once the process of creating has been submitted, the web page will return to the Manage Pollers page.
- Select the poller created and click Assign or click the link above in the Dialogue box stating: Do you want to assign it to existing nodes?
The selection should be based on the vendor. Do a scan and the result will be similar to the following:
- Enable the Poller.
- After the devices poll, the information should be updated.
Note: For the ones that did not update, you will need to select the list resources. Once it completes, submit it and the device should update on the poll.